Show HN: I built a little online drum machine using 808 style samples
peel.fm
peel.fm
I really love it, here are some minor improvement points:
- 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?
- volume per channel feels off. Putting the slider halfway already results in nearly inaudible contribution from that sample. Consider changing the "slope" of the volume slider?
- the BPM slider is a bit on the small side. Consider making it wider for finer control?
- the window at default zoom level (100%, 1080p resolution) doesn't fill the screen. Works perfect on 125% setting. Consider filling the entire screen so that the button sizes etc. are maximized?
Amazing to play around with.
This is a common mistake [0], even popular applications like the Netflix player get it wrong
Some more feedback:
- The blue indicator is 4 ticks behind the playback
- It would be nice to have more options for where the sounds can appear, like bars 3 and 4
- When I enable a track, I expect any notes that have already passed to have been skipped, but some (kick, cymbal) will start playing halfway through the track even after the note has long passed.
It's a free, fully fledged DAW in the browser, they emulate the most iconic Roland devices like the 808, 909 and 303
Looks like the author implemented a server-side storage with tiny hash. Why not the data itself as base64? That would make it real serverless!
Instead I went with a S3 based storage solution — still pretty simple, not managing any servers or databases manually.
Unless you plan to forever update your credit card on AWS, it can be better to develop without cloud and use one or more url shorteners to share (socials do it anyway).
A minor suggestion for your export format is to switch from an "array of structs" to a "struct of arrays" layout:
For example, change this:
"steps": [{"isOn":true, "repeat":"1:2"}, {"isOn":false}, {"isOn":false}, {"isOn":false}, ...]
To this: "steps": {"repeat": ["1:2",null,null,null,...], "isOn":[true,false,false,false,...]}
It's not necessarily more compact, but you can iterate over all of the collections with a single index.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't typically how you want this to work. You can always use the volume control if you really want to get that effect.
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.
Now we need more instruments and collab editing and you have fruity loops online :)
Collaborative real-time audio/video/midi platform that supports VST-like web plugins (the WebAudio Module 2, or WAM2, standard)
Just moving the cowbell creates another interesting rhythm: https://peel.fm/bc80cbc
Edit: Correct link
Have you tried Tone.js vs Howler? Any thoughts?
I want to build some other browser based audio/synth tools. I'll have dig into Tone.js more for one of those, thanks. I'm re-learning to code with these projects, but the goal is to build a multiplayer web-based modular synth.
I am working on building a web based modular synth I can sequence with/use to sequence my real life modular synth.
I want to be able to live stream my real life synth patches and allow people to mess with some CV paramaters in the browser.
Where can I follow your work?
This is really neat! the kick some sweet distortion when you put an accent on it and have it layered with some other samples.
I'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.
(the producer is from detroit, the track name is not)
/random
Banana is underrepresented contributor to technological growth.
See also https://www.converttobananas.com/
Nice work, fun and the repeats system is cool
It'd be cool if there was some kind of "randomize" function to just make a random beat. Maybe not truly random, just something with the basic drums and maybe within some set of constraints.
The banana tapping in rhythm is a great little touch. Fruity!
Here’s a house one. https://peel.fm/abe44a8
I'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: https://youtu.be/vKNZqM0d-xo. Can anyone figure out how to program that?
I'm having too much fun with this. Thanks!
Here are some suggestions / wishes:
- Can you add a decay slider to each channel? That shouldn't be hard. It could change the sound & 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.
Do you make music yourself?
Really fun to drop the kick & cowbell for a few bars then bring them back in.
Super clean and fun, thanks for sharing!
One request would be to raise the max tempo so half time could be programmed allowing 32 steps per bar.
oh, and maybe a "song" playlist which allowed you to paste multiple links in a list?
1: https://peel.fm/1e0025f (from my phone)
Fun way to take a 10-minute break in the middle of the day.
Drummer here. Well someone who plays drums, but doesn't play too much these days. This is wonderful and very fun. I now shared this with everyone I know who has children.
Here is my composition.
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.
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.
The (...) button next to "Your jam" -> Clear does the job for me
And 'random' button too.
https://www.attackmagazine.com/features/interview/roger-linn...
as previously discussed on HN (https://news.ycombinator.com/item?id=34425861).
Beautiful and simple interface, dark mode would be cool. Appreciate you making this and sharing, thanks.
Tested on Chrome and Firefox for Android, identically awful on both.
An example of a smooth and beautiful mobile experience for this sort of thing: https://tones.fm - synth not drums, same principle though.
Are you planning to open source it?
i would suggest adding more rings and tunes, and maybe an equlizer to make more complex beats
Nice that this version allows saving/sharing.