Allows to use a trigger signal from eurorack as a TempoClock in SuperCollider, therefore allowing to sync SuperCollider according to your modular.
Assuming the trigger signal is connected to input 6 (including 0!) of your soundcard it is as simple as
trigIn |
SoundIn bus number where the trigger signal is arriving. |
mean |
Number of points to consider for calculating the current tempo. More points provide higher stability while at the same time may take a longer time to a new tempo if the trigger rate is changed. |
threshold |
Which amplitude is necessary in order to account as a trigger. |
Access to the TempoClock with the tempo from the eurorack.
Collected time stamps where a trigger was measured. This will only hold the n last values where n is the mean number set during init.
Will free associated resources on the server and stop the updating procedure of the clock.