play audio files following tempo

Lorenzo Sattin's icon

Hi guys,

I need to play a sequence of audio files following tempo. All files are at 72bpm. While a file is in playback and looping, when I decide to skip to the next file it has to start only when the previous file finished the bar; so the following audio file has to start at the first beat of the next bar and not immediately when i press the message play.

Thank you

Source Audio's icon

Calculate Bar to miliseconds length, and use that at the sfplay~ sync output as a grid
for the "play next" bang.
Need help for that ? BPM is beats per minute, so how long is one bar ( for example 6/8) with 72 bpm ?
Difficult part is having the bar bang.
Insert [%~ 1000 ], [delta~], [>~ 0], [edge~] and You have a bang every 1000 ms.
Bar bang needs to go thru gate which closes itself after passing one bang out.

AND that would work on one sfplay~ which has all the files preloaded in cues

If You are still stuck then ask again here , I will post the whole patch...