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
Problem with mixing simultaneous sources #5
Comments
Hi You're clipping. Just turn the gain down in the AudioPerformer with the mixGain property, which sets mixing loss in decibels. ie audioPerformer.mixGain = -12 ... would let you mix any 4 sources without clipping. That's a new SW3 feature. |
Hey, i found that changing audioPermorfer.mixGain help to solve the problem, but i will like to know if there is a function that calculate the correct value of the mixGain, because it is not the same if the number of mixed notes change. |
That's not an easy problem to solve generally in real-time. Best to set your mix conservatively or provide a user control. If you have a final, rendered sample that you want to be amplified to full scale, you can use sample.normalize(), but you can't use that in a real-time signal chain. |
Thank you :) |
Hello, thanks by SW3, I am studing the new version of SW, and i am very happy with SW3.
I have found a problem with mixing simultaneous sources, for example:
The result have some noise, and do not work well, i whish to know how to solve this problem, do i have something wrong in my code?
Thanks by help, :)
The text was updated successfully, but these errors were encountered: