-
Notifications
You must be signed in to change notification settings - Fork 130
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
Effects don't stop when removed #1
Comments
It's indeed an error. The effect should stop modifying the source. Nice catch! |
OK, glad it's been captured then. I was wondering if I was overlooking something and should have been setting the wetMix down to zero before removing the effect. |
Should be fixed now. Thanks for the heads up :) |
The current fix kills the sound also, I'm not sure if that's intended or not. After I've removed an effect and hear nothing, I can |
You're right. This commit should take care of this. Let me know if you have further issues. |
Yeah, this is still with issues. I'm using stems, and so my |
Interesting, could you maybe send me a URL or jsfiddle, jsbin or something similar? |
I'll try and make a simple demo to highlight this. Later this week probably. |
small example. http://webui.lt/pz_fx_test/examples/effects_on_off.html In this test, you can fairly easily get the streams out of sync, but I couldn't replicate the sound completely dying and never returning. Where I was seeing that, I also had an analyser node wired in on each I can also upload the test to the repo, that way it can be tested locally. |
Indeed. This is a separate bug which is also evidenced in other areas of the library. Thanks for the catch. I have filed #9 to tackle it. |
hey im still having trouble removing effects they stay loaded to the audio file. i got the latest version still doesn't work. here is a link to the code https://github.com/shinedark/samplerdj |
Hey @shinedark, Took a look at your repo, looks pretty cool :) I think the issue in your case might be the usage of jQuery's
sampler._aud.addEffect(dubDelay);
A workaround for your project is to make sure that you only add the effect once. A future discussion topic might be:
I hope this makes sense. |
thank you that fixed my problem |
When removing an effect from a sound, I'd have expected the effect to stop, but instead the effect carries on modifying the source. You can see that the EffectsNode has been removed, it's not that removeEffect is doing nothing, just that it's not cancelling the effect that's been added.
I'd offer up sample code, but following the first example in the Effects section highlights the issue.
Is the above expected behaviour?
The text was updated successfully, but these errors were encountered: