Difference between revisions of "Multi-user Tidal"

From TidalCycles userbase
Jump to: navigation, search
Line 3: Line 3:
 
This page however is about how to use tidal with a 'traditional' editor on multiple laptops, and have them sync.
 
This page however is about how to use tidal with a 'traditional' editor on multiple laptops, and have them sync.
  
= Using network time =
+
* [[Network tempo sharing]]
 
 
== Step 1: sync computer clocks ==
 
 
 
Ensure that the system clocks of all the computers are already in sync. This can be done by making sure the computers are syncing with a network clock via system settings, but this isn't ideal. Under the hood that uses 'ntpd', which is designed for slowly bringing computers into synchrony over the internet, not for quickly getting computers in sync locally.
 
 
 
Instead, using [https://github.com/ptpd/ptpd ptpd] is recommended. However, this seems to be only available for linux and mac os, not windows.
 
 
 
== Step 2: start tidal on one of the computers ==
 
 
 
Nominate one computer as the 'clock server' and start tidal there. You will need to know the network address of this computer on the local network. You should be able to find this in your system settings.
 
 
 
== Step 3: sync the other computers to the 'clock server' ==
 
 
 
Change your tidal [[Configuration|boot configuration]] on the other computers to set the <source inline>cTempoAddr</source>. option to the ip address of the clock server. For example, if the clock server had the ip address '192.168.0.10', your startTidal line would look something like this:
 
 
 
<source>
 
tidal <- startTidal (superdirtTarget {oLatency = 0.02}) (defaultConfig {cFrameTimespan = 1/20, cTempoAddr = "192.168.0.10"})
 
</source>
 
 
 
Once that's done, start tidal on the other computers
 
 
 
= Step 4: set the cps =
 
 
 
Use <source inline>setcps</source> on one of the computers to get all the computers in sync. E.g. <source inline>setcps 1.1</source>.
 
 
 
= Step 5: adjust latency =
 
 
 
You will probably find that your computers are still 'out of phase', i.e. running at the same cps, but with an offset. Set the cps low (e.g. <source inline>setcps 0.25</source>), run a simple pattern on the clock server (<source inline>d1 $ s "cp"</source>) and one of the other computers, and use [[nudge]] to find the offset (<source inline>d1 $ s "cp" # nudge 0.05</source>).
 
 
 
Once you know the right offset you can make it permanent by adding it to the [[Configuration|oLatency value in your configuration]]. As long as you use the same audio device and so on, you shouldn't have to adjust it again.
 
 
 
If you find you have to nudge backwards (e.g. <source inline>d1 $ s "cp" # nudge (-0.05)</source>) this will only work up to a certain point. It's better to add latency to the clock server in that case.
 

Revision as of 14:49, 17 April 2019

There are different ways to use Tidal with your friends. For example using the Troop multi-user editor for a etherpad/google docs like experience, or via the web-based Extramuros and Estuary.

This page however is about how to use tidal with a 'traditional' editor on multiple laptops, and have them sync.