CtkNoteObject:
Filter:
Ctk/Classes (extension) | Libraries > CTK

CtkNoteObject
ExtensionExtension

A supporting class for note prototyping system
 

Description

Part of the Composer's Tool Kit (CTK) system. See Ctk for more details.

CtkSynthDef and CtkProtoNotes are the two prototyping classes for creating instances of CtkNote.

In general, you will not need to create instances of CtkNoteObj. CtkProtoNotes will do it for you. The main purpose of this class is the creation of new instances of CtkNote based on a CtkNoteObject prototype.

Class Methods

.new

Create a new instance of a note object. Used internally by CtkSynthDef or CtkProtoNotes.

Arguments:

synthdef

An instance of SynthDef to base the new instance on.

server

An instance of Server.

Instance Methods

.note

Arguments:

starttime

In NRT or CtkScore rendering mode, the starttime of an CtkNote event. In real-time mode, this parameter will schedule the event for starttime seconds in the future.

duration

If not nil, schedules the release of an CtkNote (works in both real-time and non-real-time).

addAction

A symbol (\head, \tail, \before, \after or \replace) or an addAction id (see Server Command Reference: /s_new for a more in-depth description)

target

A node ID (synth or group) or an instance of CtkGroup or CtkNote

server

The server to execute the node on. Defaults to Server.default for real-time performance.

.args

Get a list of controls and defaults

Arguments:

post

If 'post' is true, post a list of controls and defaults to the post window.

Returns:

The Dictionary containing the argument names as keys and default values.

Examples

NOTE: The following is just for reference. Usually you'd want to use CtkSynthDef or CtkProtoNotes instead.