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.
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.
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: