Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced Control of Oscillators to Allow for procedurally Generated Sounds #29

Open
frastlin opened this issue Jul 9, 2017 · 1 comment

Comments

@frastlin
Copy link

frastlin commented Jul 9, 2017

Hello,
Currently, there doesn’t appear to be any advanced way of controlling oscillators.
What I would like is some way of adding an ADSR envelope to a sound as well as adding several Oscillators into one sound.
What I would like to do is create a library of sound effects and synth sounds that are generated in the web browser, similar to:
http://webaudioapi.com/samples/procedural/
and
https://googlechrome.github.io/web-audio-samples/samples/audio/wavetable-synth.html
Currently libraries like tone.js:
https://tonejs.github.io/
Allow for very advanced control of sounds and may even have a library of synths already created, but there is no way of combining those sounds with 3D audio or loaded/sample sounds from a recorded track.
Howler JS:
https://howlerjs.com/
Allows for very advanced control of loaded/sampled sounds, even allowing for sprite manipulation so one can load one large sound file rather than many smaller files.
The problem is there is 0 support currently for generating sounds in the web browser.

Sono has really advanced loaded sound capabilities and also allows for basic manipulation of generated sounds.
What I would like to see is the ability to procedurally generate sounds and wrap them in a sono object so I can treat them Similarly to loaded sounds.

Allowing for sound generation would open the door to using procedural sound in games and other applications that need panning, effects and 3D positioning for both loaded and generated sounds. One could create music that changes depending on what the player does. There could also be a host of different gunshots made very quickly and easily rather than needing to find a group of R15 shot sounds and loading them.
To my knowledge, there is no sound library that allows for both of these things together. Sono is the closest with allowing basic Oscillators along with the loaded sounds.
Thank you,

@ianmcgregor
Copy link
Contributor

Hi @frastlin, thanks for the detailed post. I agree this would be a great direction to go in.

Am I right in thinking the first things needed would be envelopes and sound object support for multiple oscillators?

What would be the ideal API in your view for creating a procedural sound, and setting and updating the oscillators and envelope?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants