An Event responds to a play
message by evaluating ~play in the event, and the default behaviour of ~play is determined by the value of ~type.
⧉ ✔
The collection of eventTypes can be readily extended using *addEventType :
⧉ ✔
NOTE: this documentation is incomplete.
note Instantiate a synth on the server, with specified arguments, and later to free it. The choice of SynthDef is specified using the \instrument key. This event type is what Event.default
returns.
(degree: [0, 5, 7, 11]).play;
Actually plays this event type:
(type: \note, degree: [0, 5, 7, 11], instrument: \default).play;
set used to set parameters of some already-running node(s).
⧉ ✔
(See also: note in Pmono helpfile)
group creates a new group optional parameters:
~id node ID, or node object ~group outer group id or object ~addAction / ~lag / ~timingOffset determine how and when the group is created
Example:
⧉ ✔
midi send note parameters to midi device parameters:
~midicmd A Symbol, for the MIDI command to issue ~midiout A MIDIOut object ~chan The MIDI channel number (0-15)
See Pattern Guide 08: Event Types and Parameters: MIDI output for details on available midicmds.
on play synth, ~id must be specified off release synth (or free if no gate) kill free synth rest do nothing for a specified amount of time composite perform any number of event types, given as ~types
⧉ ✔
bus write ~array to control buses starting at ~out audioBus allocate ~channels consecutive audio buses controlBus allocate ~channels consecutive control buses alloc allocate ~bufnum with ~numframes and ~numchannels allocRead load a file from ~path, starting at ~firstFileFrame, reading ~numFrames sample frames cue cue a file for DiskIn, with ~bufferSize frames free free ~bufnum gen send ~gencmd to ~bufnum load load ~filename starting at ~frame into ~bufnum read table load ~amps directly into a buffer sine1 generate a buffer from ~amps sine2 generate a buffer from ~freqs, ~amps sine3 generate a buffer from ~freqs, ~amps, ~phases cheby generate a waveshape buffer from ~amps setProperties sends setter messages to ~receiver for each key in ~args that has a nonNil value in the Event. tree creates a tree of groups. ~tree can be an array of nodeIDs, and may contain associations to further nested arrays. phrase instead of playing a single synth from a SynthDef with ~instrument, it looks up a Pdef and plays a cluster of sounds.
monoNote used by Pmono monoSet used by Pmono monoOff used by Pmono