Part of the Composer's Tool Kit (CTK) system. See Ctk for more details.
CtkScore enables rendering Scores with CTK objects. Examples below show how to populate an instance of CtkScore. The CtkScore can then be rendered in non-real-time (NRT), played or saved as a file. See also Non-Realtime Synthesis (NRT).
Crete new instance of a CtkScore. Any number of initial events may be passed in at creation time.
... events |
Events are instances of CtkNote, CtkGroup, CtkBuffer, CtkEvent, CtkControl or another CtkScore. |
Add events to the score. Any number of events may be added.
... events |
Events are instances of CtkNote, CtkGroup, CtkBuffer, CtkEvent, CtkControl or another CtkScore. |
Renders the CtkScore in non-real-time (NRT) mode
path |
The output file path. |
duration |
The duration of the score. This defaults to 'nil' which will render the entire CtkScore. |
sampleRate |
The sample rate of the output file. |
headerFormat | |
sampleFormat | |
options |
An instance of ServerOptions. This is useful e.g. for specifying number of channels in the output file: |
action |
A function to be evaluated once the NRT server has finished rendering its score. |
inputFilePath |
An optional path for an input soundfile. |
oscFilePath |
An optional path to which the binary OSC file will be written. |
Plays this instance of CtkScore in real-time (RT) on the server.
server |
The sever on which to play the score. |
clock |
An optional clock and quant to be used as a tempo base. |
quant | |
startPoint | |
endPoint |
the Score that is created as part of CtkScore.
Make a copy of this score
a copy of this score
Set an offset for this score, useful whem mergin multiple scores
duration |
Offset in seconds |
Saves the Score associated with this instance of CtkScore.
path |
'path' to save to |
An array of all events in the CtkScore.