I am working on synching up audio from a multiplayer game setup. I already have pd recording audio on three separate audio tracks (each player's speech, the radio speech, and the game audio). This is done for each player.
What I would like to do is add to this audio file a fourth track, which will have events triggered by the game. I would simply like to place a single sample with a maximum value when an OSC event arrives, and write 0's (or the minimum value) otherwise. This way, the fourth track does not act as an audio track, but instead the computer can use it to synch together all of the different players' audio tracks offline using it as a data source.
Unfortunately, I'm a little at a loss as to how to do this.
My biggest problem is that I don't understand quite how [writesf~] works. How is it synching up the audio tracks? Does it keep them all synched, writing 0s if one incoming track has no data, or are they each written separately? If anyone has any insight into this, I'd appreciate it!
-Zach