-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Is there a programmatic way to control the volume of individual tracks? #34
Comments
Yeah, that's right. May be it could be a future feature to add. For now you can change the track volume by changing the gain property on a track object: |
@Willena Awesome, thanks! Yup, from my explorations that was the only way to get it to update the track gain. Will roll with that for now, but it would be super cool to update in real-time the same way the master settings can be emitted and changed |
@Willena Actually, it IS possible! Just looked into the src: https://github.com/naomiaro/waveform-playlist/blob/master/src/Playlist.js#L218 and in my code I did: (sorry its contextual, but i basically just get the
no need for the |
Aha! Did this event miss the README? Some of the events previously I had not written in the docs, and had just used them myself. I'll have to update that. Glad you like the lib! |
@naomiaro All good, I should have looked in the I might have a few more questions in the following days, but this is great and does what I need it re: gain setting of tracks, so I'll close this! (Unless you want to keep it open until you update the docs) Cheers! |
Yeah I'll close it when I update the docs, @alexander-daniel thanks! |
I'm try to write my own UI for the individual track controls. I can emit easily to adjust master volume, but it seems like the track volumes are a bit tougher to get access to.
Any ideas?
By the way, thanks for the awesome module, this thing is the best!
The text was updated successfully, but these errors were encountered: