News for hackers. Stuff that matters.
Re:Drum Synthesis in JavaScript by TheRealPomax on Wednesday July 28, 2021 @09:24PM (#27991775)
Wait, why is there no "play with it here" github.io page? This shouldn't require anyone to build anything just to play with it? O_o
Re:Drum Synthesis in JavaScript by trypwire on Thursday July 29, 2021 @08:19AM (#27995564)
It's coming ;)
Re:Drum Synthesis in JavaScript by alfiedotwtf on Wednesday July 28, 2021 @06:43PM (#27990697)
Awesome stuff!

Drum synthesis is one of those rabbit holes where you can obsess for a long time, when instead you can find good enough sounds quickly and should probably just use them!

I wonder how many collective hours people have burned in trying to synthesize the 909. Here's one cool video of getting it in Reaktor (https://m.youtube.com/watch?v=A_AWH3SgM84)... way cool as a project, but the ROI if everyone did it lol.

I've been using all my spare hours the past week spinning on trying to synthesis the snare used in the original Amen Break using Modo Drum to no avail. Like I said... Rabbit hole and I should probably just use samples like everyone else :(

Re:Drum Synthesis in JavaScript by scarecrowbob on Wednesday July 28, 2021 @08:30PM (#27991435)
Really depends on your end goal.

I've spent a lot of time synthesizing drums I could have sampled, but I'm a lot faster and more precise at synthesizing whatever I need now.

If you just want to make the air shake, a quick way is to turn on the radio :D

Re:Drum Synthesis in JavaScript by alfiedotwtf on Wednesday July 28, 2021 @11:34PM (#27992512)
The kick, I'm fine. Getting the 909 snare on the Rytm is impossible for me, and hitting the original Amen Break kit's snare on MODO Drum is proving difficult (and yes, I've brought the tempo back to the original bpm) but still not close :(
Re:Drum Synthesis in JavaScript by trypwire on Wednesday July 28, 2021 @07:14PM (#27990962)
Thanks! Oh yea, such a rabbit hole.

I started trying to synthesize a snare as part of this library and blog post and got lost in the weeds so quickly. I ended up skipping it for now but will surely come back to it eventually

Re:Drum Synthesis in JavaScript by alfiedotwtf on Wednesday July 28, 2021 @07:55PM (#27991214)
Time consuming, but fun no doubt :)

I've been wondering if machine learning or metaheuristics could be used to get close to an input sound. I've been toying with this idea using MIDI CC with a Rytm.

Re:Drum Synthesis in JavaScript by fab1an on Wednesday July 28, 2021 @05:06PM (#27989717)
This is cool. If the author is reading this: consider adding some sound files to your post?
Re:Drum Synthesis in JavaScript by leviathant on Wednesday July 28, 2021 @05:15PM (#27989817)
Not the author, but here's something I put together about 8 years ago using the web audio API to synthesize analog drum sounds, specifically modeled from the Boss DR-110: https://www.bitrotten.com/dr110/webaudio/

(See also https://github.com/leviathant/BossDR110/tree/feature/synthes...)

Re:Drum Synthesis in JavaScript by atum47 on Wednesday July 28, 2021 @07:50PM (#27991185)
This looks great, I'm definitely going to try it again when I'm on the desktop
Re:Drum Synthesis in JavaScript by trypwire on Wednesday July 28, 2021 @07:15PM (#27990971)
Awesome! Thanks for sharing
Re:Drum Synthesis in JavaScript by trypwire on Wednesday July 28, 2021 @07:13PM (#27990948)
Thanks, and yes I totally agree (OP here). I looked into it for a brief minute: I'm using Ghost Blog to host my articles and I didn't see an easy way to attach the media there directly. The available options seemed to involve embedding a Souncloud link or so, which was enough to deter me at the time.

If anyone has ideas for simple audio clip sharing in a Ghost blog, I'd love to hear

Re:Drum Synthesis in JavaScript by ipsum2 on Thursday July 29, 2021 @12:10AM (#27992690)
Record an audio file, convert it to video with a static image, upload to YouTube.
Re:Drum Synthesis in JavaScript by kumarharsh on Thursday July 29, 2021 @12:19AM (#27992744)
You can embed Codepens with a play button too, which would be cooler as a demo
Re:Drum Synthesis in JavaScript by atum47 on Wednesday July 28, 2021 @07:52PM (#27991198)
I fiddle with creating sounds in JavaScript a bit, but I just went as far as creating sounds fx for a game (pretty simple ones). I want to try and work with it a little bit more in the future.

Great article, definitely inspiring.

Re:Drum Synthesis in JavaScript by skybrian on Wednesday July 28, 2021 @05:24PM (#27989925)
Neat! I'd like to see something similar for a harmonica. Has it been done?
Re:Drum Synthesis in JavaScript by alfiedotwtf on Wednesday July 28, 2021 @06:45PM (#27990727)
Here's someone building a harmonica using FM synthesis: https://m.youtube.com/watch?v=bZ0X_-k9cwo
Re:Drum Synthesis in JavaScript by CyberDildonics on Wednesday July 28, 2021 @11:54PM (#27992624)
That sounds like terrible cheap midi and nothing like a harmonica
Re:Drum Synthesis in JavaScript by ushakov on Wednesday July 28, 2021 @09:45PM (#27991905)
hey Nick, have you tried Faust?

https://faust.grame.fr/

Re:Drum Synthesis in JavaScript by trypwire on Thursday July 29, 2021 @08:21AM (#27995576)
I have indeed! I've used Faust quite a bit over the past few years, and it was very much an inspiration for Elementary. In general I wanted a tool that meant I could think and work on my dsp in the same way that I think and work on my UI, and with the same language even.
Re:Drum Synthesis in JavaScript by valdiorn on Thursday July 29, 2021 @11:22AM (#27997604)
really cool, but needs demos, or at least audio clips.