Pmono:
Filter:
Classes | Streams-Patterns-Events > Patterns > Event

Pmono : Pattern : AbstractFunction : Object

monophonic event stream
Source: Patterns.sc
Subclasses: PmonoArtic

Description

Plays one instance of a Synth. The pattern pairs define changes in that one synth's controls. This node is created when entering a Pmono, and released when the Pmono terminates. There is just one node for the duration of the entire pattern, and it will sustain through each event. If a monophonic phrase requires staccato notes or re-articulation between some notes, see PmonoArtic.

If event[\id] is not nil, Pmono simply directs its pattern changes to that node and does not create an extra synth.

Class Methods

Inherited class methods

Undocumented class methods

Pmono.new(name ... pairs)

Instance Methods

Inherited instance methods

Undocumented instance methods

.embedInStream(inevent)

.patternpairs

.patternpairs = value

.spec

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/Instr/instrSupport.sc

.synthName

.synthName = value

Examples

A related approach

A related approach is to instantiate a Synth yourself and then set its values by using an Event whose "type" is \set, as illustrated here. The user is responsible for ensuring proper synchronization between Synth creation and pattern execution.

For more details on the \set event type, see its description in Chapter 8, Event Types and Parameters of the Practical Guide To Patterns.

SynthDef variant support

SynthDefs allow alternate sets of default values to be defined (see "Variants" in SynthDef help). Most event patterns, such as Pbind, specify the variant using the variant key in the output events. (Note that variants are always optional.) In Pmono, the mechanism is different because the SynthDef name, including variant suffix, must be known before evaluating the first event. So, the variant suffix is provided in the first Pmono argument: