hackclub / sprig

🍃 Learn to code by making games in a JavaScript web-based game editor.
https://sprig.hackclub.com
MIT License
909 stars 1.11k forks source link

Add white noise "waveform" for a percussive sound #283

Closed leomcelroy closed 12 months ago

csgeeek commented 2 years ago

Hey @leomcelroy , I am interested to work on this issue. Can you please give me some details and resources to get started?

leomcelroy commented 2 years ago

Great to hear you are interested! The idea is to add a sound that is more percussive to the current waveforms. White noise can be perceived this way. It'll need to be treated differently from other sounds as it won't have a pitch associated with it. One thing that may prevent us from ultimately integrating it into the editor fully is we also have to generate the sound on the Sprig devices itself.

Here is a resource to generating noise in JS: https://noisehack.com/generate-noise-web-audio-api/

leomcelroy commented 2 years ago

It'll be like the drums in chrome song maker: https://musiclab.chromeexperiments.com/Song-Maker/

grymmy commented 12 months ago

@leomcelroy I do not anticipate us working on this for the foreseeable future, especially as it's sat here for over a year. I am closing it due to inactivity, if you feel strongly about reopening it, please do so w/ comment.