Csound Csound-dev Csound-tekno Search About

[Cs-dev] Synked playback and recording

Date2015-04-03 09:36
FromAnders Genell
Subject[Cs-dev] Synked playback and recording
AttachmentsNone  None  
Hi all!

The recent discussions about low latency streaming and about realtime rendering to file, and the idea of having a "virtual clock" to sync to as complement to a sound card reminded me of an idea I had long ago. I then found someone else had the same idea before me: syncing streams using NTP. (http://snarfed.org/synchronizing_mp3_playback).

Now I am thinking that something like this might be used in a csound context. 

I see two possibilities. One is to be able to start csound playback at a certain system clock time, so that a "master" csound can start synced playback on one or several "slave" csound. A use case could be a concert with multiple live-coding performers or an installation of a bunch of raspberry pis equipped with sound/light/motion sensors affecting both local and global orchestras, hidden in strategic places in a park where the audience makes the music by milling around between sound spots. 

The other possibility would be to have something like "word clock over tcp/ip" where slave machines sync their audio to the sound card clock of the master. I suppose there are all kinds of issues with making this work due to various network delays, but could one perhaps use the NTP-idea to say "here is your clock signal, and this bit here should match up with NTP-time so and so"

I myself would really like to be able to use a bunch of Pi:s as wirelessly synced recorders, to be able to record events from different positions simultaneously. 


Impossible? Possible? In csound 8? 9?

Regards,
Anders