sfplay~ wont reverse.

mcQ's icon

im making a sample/drum machine and a neccessity is start/end/pitch controls of the samples, among other things. and in the online reference of sfplay~, it says that a speed input of -1 will reverse the sample, and its not doing this. so im using the groove~ object to do this, which it does. but im not sure if its possible to use groove and have an end point control on it. so 2 questions arise.
1. why wont sfplay~ play the sample in reverse when theres a negative value for the pitch input.
2. is there a way to control a samples end point in groove~ without turning on looping.

Christopher Dobrian's icon
Roman Thilenius's icon

use buffer~ and play~

pdelges's icon

sfplay~ can play backwards when a negative speed is used. But you need to preload the file with the bidirectionnal-flag set. Check the preload message in sfplay~ 's documentation for more information.

But for this kind of project, I'd use buffer~ too.

p