Hi Mathieu, i was having the same problem untill i added a .gain for each SndBuf Like this: .2 => buf1.gain; // buf1 being the name you gave your 1st SndBuf .2 => buf2.gain; Etc... If you have 10 different samples being played at the same time you have to reduce the gain to at least 1/10th of 1 being 0.1. Hope this helps. Kind regards, Herman
Op 27 feb. 2020 om 20:48 heeft Matthew.Noone <matthew.no...@ul.ie<mailto:matthew.no...@ul.ie>> het volgende geschreven: Hi, I'm just wondering the best way to avoid clipping when using multiple SndBuf files in code? I'm making a composition using machine.add script and there is a lot clipping when the new scripts come in. Is the best thing to add Envelopes in the individual codes? Or is there some better way? Thanks, M Dr. Matthew James Noone Sarode Artist & Irish Research Council Postdoctoral Fellow Irish World Academy of Music and Dance University of Limerick _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu<mailto:chuck-users@lists.cs.princeton.edu> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users