I have a short wave file (length is 4 beats) that I need to play as a loop and that will be heard for about 16 bars at occasional points in the song.
I'm going to have to feed our drummer with a click derived from this loop so that he can make sure that the band is always playing at the right speed for when the loop is audible.
I know I can use sfplay~ to play the wave file and I could use the seek message to start and end it (the actual loop is a few samples less than the actual wavefile) and retrigger that seek message from the bang that's generated each time the wave file plays.
The problem is that I need to generate a click that triggers every beat, not every 4 beats and I'm wondering how best to do that.
The "obvious" solution that comes to my mind is to have four sfplay~ objects each of which has a seek message with 1 beat's worth of sample start/end time and then daisy chain them using the "end of play" bang that comes out (and using that bang to generate a click), but this seems quite kludgy.
I'm wondering if anyone knows of a cleaner solution for this.