Ability to use a Tone.js instance within EnvelopePlugin #3525
corysimmons
started this conversation in
Ideas
Replies: 1 comment
-
The way the Envelope plugin is currently implemented, it's just a change of volume over time using the regular volume control of the HTMLMediaElement. If you want to use it in a Web Audio context with a library like Tone.js, you could theoretically use the draggable controls and their data points to configure your envelope audio nodes (I assume they are implemented as custom audio worklet nodes in Tone.js), then connect the wavesurfer audio output (via a MediaElementSourceNode) to a gain node and parametrize its gain with the envelopes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
EnvelopePlugin only allows you to ramp in/out volume.
It would be amazing if it could also ramp in/out Tone.js effects.
Beta Was this translation helpful? Give feedback.
All reactions