three samples crossfade

Nov 3, 2010 at 10:18pm

three samples crossfade

Hi all,

I want to crossfade between three looping samples.
I have tried with groove and a matrix, and it seemed to work well, the problem is each sample is very long (20-30 min), and i can’t reserve so much ram for them (groove loads to ram, isn’t it?)…
So i started from scratch (as you will see) to have a working and (ridiculously) simple patch.
It works with play~ but loops horribly, because there is not crossfade between end of the loop and its beginning.
Do you have any idea about how I could improve this terrible patch? *_*

– Pasted Max Patch, click to expand. –
Nov 3, 2010 at 11:15pm

Its not that terrible, and if you listen to the result (I didn’t) you could get an idea how to improve it…;-)
If you jump for each file to a supposed position, you get clicks and jumps if your assumption is wrong (roughly 33%). Instead, just let the levels move from where they are. Simply get rid of the part before and including the comma in the messages which drive the lines.
The crossfades are not equal power crossfades, but that might be fine for your application.
The sfplay~ object does know a loop message. No need for a feedback to get them started again…

Thats my observation on first sight…



You must be logged in to reply to this topic.