Open eonarheim opened 7 years ago
I believe I've got a solid understanding of how to implement a bezier curve in general, but where would it be best to put the code? Since play
is a Promise
, it seems hard to have any aspect of the sound change while the sound is playing.
HTMLAudioElement
seems to at least have an ontimeupdate
event listener that could be useful, but I couldn't find any such function for AudioBufferSourceNode
This issue hasn't had any recent activity lately and is being marked as stale automatically.
Context
It would be super cool to change the volume and other properties of a sound over time while it is playing. Perhaps other properties could also be controlled, like pitch, or anything else web audio supports.
Proposal
Potentially add a
ex.Sound.playWith(profile: ISoundProfile)
that takes a ISoundProfile to describe how the sound should change over time.