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

CtkNoteObject : Object
ExtensionExtension

A supporting class for note prototyping system
Source: CTK.sc
Subclasses: CtkSynthDef
 

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

CtkNoteObject.new(synthdef, server)

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.

Inherited class methods

Instance Methods

.note(starttime: 0.0, duration, addAction: 0, target: 1, server)

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(post: true)

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.

Inherited instance methods

Undocumented instance methods

.add

.buildControls

.createBuffer

.load( ... servers)

.new(starttime: 0.0, duration, addAction: 0, target: 1, server)

.noMaps

.playFunc(server, val, nrt: false, path, playButton, durBox, paramDict, nChans)

.send( ... servers)

.server

.synthdef

.synthdefname

.tester(server)

Examples

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