TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: I built a little online drum machine using 808 style samples

353 pointsby berkcebiover 2 years ago

55 comments

itcrowdover 2 years ago
Fantastic, had a lot of fun poking around this little machine.<p>I really love it, here are some minor improvement points:<p>- when right-clicking, the intended functionality of selecting the appropriate rhythm works only half the time or so. The other half is the browser modal showing normal right-click action. Consider doing long-press to change rhythm?<p>- volume per channel feels off. Putting the slider halfway already results in nearly inaudible contribution from that sample. Consider changing the &quot;slope&quot; of the volume slider?<p>- the BPM slider is a bit on the small side. Consider making it wider for finer control?<p>- the window at default zoom level (100%, 1080p resolution) doesn&#x27;t fill the screen. Works perfect on 125% setting. Consider filling the entire screen so that the button sizes etc. are maximized?<p>Amazing to play around with.
评论 #34801683 未加载
评论 #34802031 未加载
评论 #34796433 未加载
评论 #34801948 未加载
atentatenover 2 years ago
As someone who was into making electronic music back before Fruity Loops and Hammerhead—-a time when one coveted actual hardware, but was always searching and dreaming about software drum machines because they were cheaper or free, I always find it amazing that we can do this in the browser. I always love seeing cool projects like this come about.
评论 #34802614 未加载
评论 #34797106 未加载
评论 #34797649 未加载
评论 #34801573 未加载
painted-nowover 2 years ago
Here is my loop :-) <a href="https:&#x2F;&#x2F;peel.fm&#x2F;e431e31" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;e431e31</a>
评论 #34797569 未加载
评论 #34798753 未加载
评论 #34799964 未加载
评论 #34803460 未加载
评论 #34798921 未加载
hoosiereeover 2 years ago
Cute and fun! The toe-tapping banana is a nice touch.<p>A minor suggestion for your export format is to switch from an &quot;array of structs&quot; to a &quot;struct of arrays&quot; layout:<p>For example, change this:<p><pre><code> &quot;steps&quot;: [{&quot;isOn&quot;:true, &quot;repeat&quot;:&quot;1:2&quot;}, {&quot;isOn&quot;:false}, {&quot;isOn&quot;:false}, {&quot;isOn&quot;:false}, ...] </code></pre> To this:<p><pre><code> &quot;steps&quot;: {&quot;repeat&quot;: [&quot;1:2&quot;,null,null,null,...], &quot;isOn&quot;:[true,false,false,false,...]} </code></pre> It&#x27;s not necessarily more compact, but you can iterate over all of the collections with a single index.
s1monover 2 years ago
I would highly recommend enabling click and drag to &quot;paint&quot; notes. As it is right now, if I want 16 closed hats, I have to move, click, 16 times. I&#x27;d rather drag to paint based on whatever state of the note I start on.<p>The mutes on the left would be better if they mute the notes, not the sounds. Muting and then enabling can end up playing the tail of some of the longer sounds. This isn&#x27;t typically how you want this to work. You can always use the volume control if you really want to get that effect.<p>It would be nice to get some of the tone controls of the real 808, and the swing is pretty important too..... At some point though, I wonder what your goal is since there are so many apps and web versions of X0X style drum machines these days.<p><a href="https:&#x2F;&#x2F;io808.com" rel="nofollow">https:&#x2F;&#x2F;io808.com</a><p><a href="https:&#x2F;&#x2F;roland50.studio" rel="nofollow">https:&#x2F;&#x2F;roland50.studio</a><p><a href="https:&#x2F;&#x2F;drumbit.app" rel="nofollow">https:&#x2F;&#x2F;drumbit.app</a><p><a href="https:&#x2F;&#x2F;www.onemotion.com&#x2F;drum-machine&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.onemotion.com&#x2F;drum-machine&#x2F;</a><p><a href="https:&#x2F;&#x2F;hiphopmakers.com&#x2F;best-free-drum-machine-online" rel="nofollow">https:&#x2F;&#x2F;hiphopmakers.com&#x2F;best-free-drum-machine-online</a>
评论 #34800283 未加载
评论 #34800664 未加载
vernon99over 2 years ago
Very cool, here&#x27;s my loop :) <a href="https:&#x2F;&#x2F;peel.fm&#x2F;f3148e6" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;f3148e6</a><p>Now we need more instruments and collab editing and you have fruity loops online :)
评论 #34797012 未加载
评论 #34801537 未加载
patchorangover 2 years ago
Woah, I made almost the same thing the other week <a href="https:&#x2F;&#x2F;beatmaker.adammenz.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;beatmaker.adammenz.com&#x2F;</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;patchorang&#x2F;drummachine">https:&#x2F;&#x2F;github.com&#x2F;patchorang&#x2F;drummachine</a>
评论 #34796516 未加载
parabylover 2 years ago
A little detroit techno vibe? <a href="https:&#x2F;&#x2F;peel.fm&#x2F;15f0762" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;15f0762</a><p>This is really neat! the kick some <i>sweet</i> distortion when you put an accent on it and have it layered with some other samples.<p>I&#x27;ve been using the Volca Drum recently and an idea from that which I imagine would be relatively simple to add to this would be a divide step option - allowing for double-time hats and the like. It would make a great addition to this fun little drum machine.
评论 #34798008 未加载
评论 #34798308 未加载
alphabet9000over 2 years ago
nice, the banana tapping to the bpm was a nice touch<p><a href="https:&#x2F;&#x2F;peel.fm&#x2F;1dd2e8a" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;1dd2e8a</a>
评论 #34796151 未加载
评论 #34799176 未加载
kenfehlingover 2 years ago
I really like the &quot;1st of 2 bars&quot;, etc. options. It&#x27;s a nice UI to make a more complex beat in a smaller space.<p>It&#x27;d be cool if there was some kind of &quot;randomize&quot; function to just make a random beat. Maybe not truly random, just something with the basic drums and maybe within some set of constraints.
评论 #34803818 未加载
davepeckover 2 years ago
Fun. Always love playing with toys like this. A little d&#x27;n&#x27;b loop: <a href="https:&#x2F;&#x2F;peel.fm&#x2F;c275e61" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;c275e61</a><p>The banana tapping in rhythm is a great little touch. Fruity!
评论 #34801086 未加载
评论 #34797502 未加载
webscalistover 2 years ago
<a href="https:&#x2F;&#x2F;peel.fm&#x2F;e38d7e2" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;e38d7e2</a><p><a href="https:&#x2F;&#x2F;peel.fm&#x2F;61eb568" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;61eb568</a>
评论 #34801829 未加载
RigelKentaurusover 2 years ago
Awesome, I loved this! I have been using it for my guitar practice.<p>I&#x27;m trying to create the drum track for the starting part of Blue rondo a la turk by Dave Brubeck. Not sure how I can tell you but one quick listen will suffice: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;vKNZqM0d-xo" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;vKNZqM0d-xo</a>. Can anyone figure out how to program that?
评论 #34799351 未加载
评论 #34799354 未加载
danccover 2 years ago
<a href="https:&#x2F;&#x2F;peel.fm&#x2F;0eeddb0" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;0eeddb0</a><p>I&#x27;m having too much fun with this. Thanks!
gitgudover 2 years ago
Nice! Reminds me of these little <i>Teenage Engineering</i> machines, which have a similar UX but are a the size of a calculator. A lot of fun to mess around with<p><a href="https:&#x2F;&#x2F;teenage.engineering&#x2F;products&#x2F;po" rel="nofollow">https:&#x2F;&#x2F;teenage.engineering&#x2F;products&#x2F;po</a>
elwellover 2 years ago
<a href="https:&#x2F;&#x2F;peel.fm&#x2F;2d38f70" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;2d38f70</a>
make2over 2 years ago
Nice job! and thanks for sharing..<p>Here are some suggestions &#x2F; wishes:<p>- Can you add a decay slider to each channel? That shouldn&#x27;t be hard. It could change the sound &amp; balance of the set by a lot. - Also panning is very useful.. - The repeat every n bars is a very nice touch. Trig conditions are out of the question i guess. - A random button would be lots of fun and make users stick around more. It could have a percentage parameter, too. Could be used as a starting template each time you reload or revisit the page. - The sliders could be a bit wider, especially the one for tempo.<p>Do you make music yourself?
zoklet-enjoyerover 2 years ago
This is really fun! Thanks for sharing. I&#x27;m going to sample my loop into my sp404 and add some effects <a href="https:&#x2F;&#x2F;peel.fm&#x2F;356c797" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;356c797</a>
评论 #34799364 未加载
srcreighover 2 years ago
<a href="https:&#x2F;&#x2F;peel.fm&#x2F;5a69bff" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;5a69bff</a><p>Really fun to drop the kick &amp; cowbell for a few bars then bring them back in.
consumer451over 2 years ago
here is a quick sketch: <a href="https:&#x2F;&#x2F;peel.fm&#x2F;b02789c" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;b02789c</a> variation <a href="https:&#x2F;&#x2F;peel.fm&#x2F;e854bbc" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;e854bbc</a><p>Super clean and fun, thanks for sharing!<p>One request would be to raise the max tempo so half time could be programmed allowing 32 steps per bar.<p>oh, and maybe a &quot;song&quot; playlist which allowed you to paste multiple links in a list?
grvdrmover 2 years ago
I made three so far!<p>1: <a href="https:&#x2F;&#x2F;peel.fm&#x2F;1e0025f" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;1e0025f</a> (from my phone)<p>2: <a href="https:&#x2F;&#x2F;peel.fm&#x2F;ecafb25" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;ecafb25</a><p>3: <a href="https:&#x2F;&#x2F;peel.fm&#x2F;1bfd07f" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;1bfd07f</a><p>Fun way to take a 10-minute break in the middle of the day.
bambaxover 2 years ago
Great! Here&#x27;s my try <a href="https:&#x2F;&#x2F;peel.fm&#x2F;53fa418" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;53fa418</a>
giancaItaover 2 years ago
That&#x27;s cool! I&#x27;ve built something similar some months ago, in Vue.js - If you double click on the pads you&#x27;ll get a stronger beat, useful for accent. Please check it out: <a href="https:&#x2F;&#x2F;www.fachords.com&#x2F;drum-machine-tool" rel="nofollow">https:&#x2F;&#x2F;www.fachords.com&#x2F;drum-machine-tool</a>
xwjover 2 years ago
Mambo? Super intuitive interface!<p><a href="https:&#x2F;&#x2F;peel.fm&#x2F;23ffd9c" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;23ffd9c</a>
kingsloiover 2 years ago
Awesome job! I&#x27;ve bookmarked it for future use, can&#x27;t wait to fill the time before meetings start to jam out!
moshegramovskyover 2 years ago
Thank you for making this!!!<p>Drummer here. Well someone who plays drums, but doesn&#x27;t play too much these days. This is wonderful and very fun. I now shared this with everyone I know who has children.<p>Here is my composition.<p><a href="https:&#x2F;&#x2F;peel.fm&#x2F;68acc69" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;68acc69</a>
Archer6621over 2 years ago
Very nice! I like the idea that allows you to make notes skip certain bars, keeps the UI compact instead of having to show all the bars.<p>It would be nice if you could place notes while dragging the mouse instead of having to click all the time, and a clear button would also be cool.
cronixover 2 years ago
Nice job! A few suggestions: volume control per note (possibly a popup to avoid slider clutter) and the ability to add additional patterns and then sequence them with copy&#x2F;paste between patterns so you don&#x27;t have to recreate each one from scratch.
评论 #34796391 未加载
eajakobsenover 2 years ago
Looks great and works great! A reset button would be nice to undo the horrible mess I made.<p>A minor note, when I load the page I get console warnings about an Audio Context being prevented from starting automatically, but once I click play everything works perfectly fine.
评论 #34796246 未加载
评论 #34796186 未加载
评论 #34796046 未加载
anon1094over 2 years ago
Great job! Projects like these were what fascinated me with front-end web development in the first place. :)<p><a href="https:&#x2F;&#x2F;peel.fm&#x2F;12e9f28" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;12e9f28</a>
tagyroover 2 years ago
Love the small detail of the banana tapping, when the song is playing.
Anonioover 2 years ago
Would love to have more bars available! anyway here&#x27;s what I made <a href="https:&#x2F;&#x2F;peel.fm&#x2F;01bdaea" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;01bdaea</a>
hayley-pattonover 2 years ago
At half speed you can fit two bars (at eighth-note resolution): <a href="https:&#x2F;&#x2F;peel.fm&#x2F;e4b8d7c" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;e4b8d7c</a>
LosMykeover 2 years ago
Can’t get audio to work on iPad (could be human error).<p>Beautiful and simple interface, dark mode would be cool. Appreciate you making this and sharing, thanks.
评论 #34796688 未加载
spoonfeeder006over 2 years ago
Oh man this is soo cool<p><a href="https:&#x2F;&#x2F;peel.fm&#x2F;c33c29a" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;c33c29a</a>
jstr_over 2 years ago
I had way too much fun with this during my backlog refinement meeting. Amazing project, well done!
mattgreenrocksover 2 years ago
Love it. Hope you add more samples :)
kblevover 2 years ago
It&#x27;s really cool that I place the dots just randomly, and the rythm still sounds good.
tumidpandoraover 2 years ago
Fun tool, love how the banana peel logo stars to foot tap soon as the track&#x27;s playing
srcreighover 2 years ago
There’s some sub bass in the kick, don’t miss out by listening on phone speakers
mobinovover 2 years ago
Nice idea but this is terrible to use on mobile, the buttons are tiny.<p>Tested on Chrome and Firefox for Android, identically awful on both.<p>An example of a smooth and beautiful mobile experience for this sort of thing: <a href="https:&#x2F;&#x2F;tones.fm" rel="nofollow">https:&#x2F;&#x2F;tones.fm</a> - synth not drums, same principle though.
评论 #34799184 未加载
ibzover 2 years ago
Good stuff!<p>Are you planning to open source it?
评论 #34797118 未加载
评论 #34796988 未加载
automatomover 2 years ago
Very nice! I love a good drum sampler and this was fun to play with.
janglezzover 2 years ago
the banana tapping its foot to the beat is a nice touch.
oklover 2 years ago
Your &quot;Rim Shot&quot; sounds like a sidestick.
评论 #34820585 未加载
make2over 2 years ago
here&#x27;s mine <a href="https:&#x2F;&#x2F;peel.fm&#x2F;08d1221" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;08d1221</a>
hougaardover 2 years ago
Lo and Hi tom samples seem to be switched?
ghkth0987over 2 years ago
wow this was fun<p>i would suggest adding more rings and tunes, and maybe an equlizer to make more complex beats
maartnover 2 years ago
How to get to the second bar?
jdkeeover 2 years ago
Can we chain multiple loops?
nickybuzzover 2 years ago
This is awesome.
matt3210over 2 years ago
dang! Very nice!
PaulDavisThe1stover 2 years ago
The &quot;official&quot; Roland browser-based 808: <a href="https:&#x2F;&#x2F;roland50.studio&#x2F;" rel="nofollow">https:&#x2F;&#x2F;roland50.studio&#x2F;</a> along with the rest of the &quot;classic&quot; Roland instruments.<p>Nice that this version allows saving&#x2F;sharing.
评论 #34799363 未加载
tobychover 2 years ago
In the Air Tonight: <a href="https:&#x2F;&#x2F;peel.fm&#x2F;985d7e0" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;985d7e0</a>
评论 #34798311 未加载
sublinearover 2 years ago
<a href="https:&#x2F;&#x2F;peel.fm&#x2F;7173aba" rel="nofollow">https:&#x2F;&#x2F;peel.fm&#x2F;7173aba</a>
评论 #34802037 未加载
评论 #34798305 未加载