buffer~ or sfplay~ -- which is more cpu efficienct?

kampana's icon

hi,

i'm writing a patch in which i need to have about 20-30 samples, about 30sec to 1min each, simultaneously looping. which object would be best to use for that purpose in terms of saving CPU consumption?

thanks,
K.

goodparleyandorfing's icon

[sfplay~] reads from disk whereas [buffer~] loads samples into memory. so [sfplay~] is less cpu hungry but also slower to read from, and the contents are less manipulable. if you only need to loop them then probably use [sfplay~], but it depends on your computer

kampana's icon

thank you.