EuroClockIn:
Filter:
EuroCollider/Classes (extension) | EuroCollider

EuroClockIn
ExtensionExtension

Allows to sync SuperCollider by eurorack clock

Description

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

Class Methods

.new

Arguments:

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.

Instance Methods

.clock

Access to the TempoClock with the tempo from the eurorack.

.timeStamps

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.

.clear

Will free associated resources on the server and stop the updating procedure of the clock.

Examples