i've some 8 second samples to be played from an array.
some of them makes clicks at every loop cycle
I've tried to add one ore two samples for not to read from the first part of the array,
but i couldnt avoid the problem.
i've also tried to apply a [cos] wave to read smootly the beginning and the end of
the array(like in the help patch B9 loop.smooth) but because of the lenght
of the sample(as I think) the ramp up and ramp down of the amplitude is too
obvious to be ignored.
any ideas?
-
Avoid clicks playing arrays
-
what type of sounds are they? it sounds to me like you're using synth or bass, cos it's easy to get clicks with that.
are you looping the entire 8 seconds of each sample, or is there some overlap at the end?
if you have some overlap, then you can make two seperate tabread4~ or tabplay~ objects, and alternate between them...allowing you to do a crossfade-style ramp up on one sample at the same time as the ramp down on the other. experiment for the best length here, but i found a short ramp up was fine for the incoming sample, and a longer ramp down on the outgoing sample worked best.
there are also options which involve fft and whatever, but it's gonna take less cpu just to do 2 tabread~ objects -
bass sample.
and there isnt any overlap,cause I want the same sample to be looped several
times ,and also the other samples must to be started right after the one before.
thanks anyway -
if you're looping the samples perfectly, then it sounds like your samples may have clicks in them...
have you checked them in a sound editor by zooming in on the start and end of the waveform to make sure it is at zero?