Looping samples via play fn?


#1

hi
i would like to loop raw files using the play fn object. how would i best do this?

i've tried using the lfo/square object to trigger the files and this kind of works. but the problem is how to set the lfo-frequency to the actual length of the sample?

is there an easier way to do the looping?

(the samples i'll be using could be long. so i'm not sure if i can load them into a table)

many thanks for the help.

bests
c


Loop sample wave/play
#2

i tried a few avenues, in the moment without luck.

right now i've tried to modify the play fn object through making a custom version of it which has a donePlaying flag at a 3rd output. but for some reason it's not compiling. the compile process just stops after uploading the soundfile. there's no error message.

here the patchtest sd loop.axp (5.2 KB)

any help would be appreciated.

bests
c


#3

managed to do this now with a custom made object. and figured out the error messages. here the files:play fn stereo done.axo (2.7 KB)
for this to work you would need to copy the file: streamer.h to the path of the object. the streamer.h file is found in axoloti-factory/objects/wave/streamer.h.

bests
c