ScoreClock simplifies NRT synthesis by capturing OSC messages and timings of anything sent to the default server, and returns a Score object that can then be rendered to file or played back.
2011 Jonatan Liljedahl
Start capturing. This must be called once before the code that you want to capture.
Create a Score object by running all items scheduled on this clock, capturing OSC messages and timings.
maxTime |
The maximum duration in seconds of the score. |
padding |
Add this many seconds of padding after the last activity. |
A new Score object.
A global default ScoreClock, similar to TempoClock.default. ScoreClock has classmethods that redirects to the default clock, so you can use simply ScoreClock
.
Create a new individual ScoreClock, mainly useful when there is need to run serveral clocks with different tempo.
tmp |
Tempo in beats per second. |
Even if you create several ScoreClocks, they all capture to a global score object.
The current score object. You can add events manually to this if you want.
It works on Pbinds, Routines, etc:
You can create individual ScoreClocks with different tempo: