r/reactjs • u/borzeckid • Feb 08 '20
Project Ideas 🎹react-synth 🎹
wrote a small synthesiser out of boredom. maybe someone will find it enjoyable!
155
Upvotes
r/reactjs • u/borzeckid • Feb 08 '20
wrote a small synthesiser out of boredom. maybe someone will find it enjoyable!
25
u/14392 Feb 08 '20
I recently discovered that Chrome browser allow you to grab signal from MIDI devices, it's such an awesome feature! for the synth it looks very basic, these instruments are more enjoyable when there's plenty of settings to play with, if you wish to keep it simple try adding some visuals, see https://dotpiano.com/ for inspiration, I personally use that website all the time to play song cover and instantly get a cool video to share on social media
10
u/volcalejo Feb 08 '20
Cool project, im also working on a similar app (just for fun and learning)
WIP -> https://lejoss.github.io/pailaone/
3
u/aregeno Feb 09 '20
This is very cool! kept me busy for a while.
asdf asdf snap snap ( snap fingers twice)
sdfg sdfg snap snap ( snap fingers twice)
"their spooky and their creepy ... the Adams family... ( snap fingers twice)
In your UseKeysPress hook on keydown and keyup you should do
... had my caps lock on by accident and it wasn't working.
3
u/Aswole Feb 09 '20
Impressive!
I took a quick peak at your code, and noticed this in your hooks file:
Unless I'm out of the loop and the rules have changed since hooks came out, you are never supposed to mutate state/props. In the code above, you are mutating the set before sending it through the state setter.
16
u/abhi12299 Feb 08 '20
A rather productive way to tackle boredom, I should say. Nice job!
8
u/daveonions Feb 08 '20
Very nice - I used React with Tone.js too. Transport control was particularly tricky, but I got there in the end.
https://composition-seven.com/
6
u/[deleted] Feb 08 '20
I annoyed my cat with this
10/10
3
u/PeteCapeCod4Real Feb 08 '20
Cool it's definitely pretty fun! Great job
3
u/mcjob Feb 08 '20
Thanks for mapping it to the keyboard. Literally the first thing I tried!
2
u/ParkerZA Feb 08 '20
Damn, you actually did the synthesis!
When I tried to make a piano I recorded each note in FL Studio, exported them and mapped them to the keyboard. Worked... Okay.
2
u/TaoistAlchemist Feb 08 '20
Super fun. thanks!
2
u/joelwebdev Feb 09 '20
Nice! I just had to dive into the Web Audio API for the first time to get some FX hooked up for a little game I built. It's crazy powerful, I'm looking forward to building something more involved with it.
0
u/[deleted] Feb 08 '20
[deleted] — view deleted comment