-
Pproto provide a proto event for an event stream superclass: Pattern *new(makeFunction, patternOrPatternArray, cleanupFunction) Pproto uses the makeFunction to allocate resources (buffers, buses, groups) and create a protoEvent that makes t ...
-
... licit way. Any pattern can be played on a MixerChannel: aMixer.play(aPattern) . Pproto: Allocating other resources for the duration of a pattern It's also possible to load sound file or wavetable buffers or play synths as part of the prepar ...
-
... event. Pfxb allocates a separate bus and group for the effect and the pattern. Pproto(makeFunction, pattern, cleanupFunc): Allocate resources on the server and add references to them into the event prototype used to play 'pattern'. When th ...
-
... d you are responsible for freeing objects created this way in the cleanupFunc. (Pproto is another way; see PG_06f_Server_Control .) ( SynthDef ( \playbuf , { |bufnum, start, dur = 1, amp = 0.2, out| var sig = PlayBuf .ar(1, bufnum, BufRateS ...
-
... is responsible for (re)loading any resources (buffers, effects etc.). Pfset or Pproto may be useful. A Summary of Pattern classes Below are brief examples for most of the classes derived from Pattern. These examples all rely on the pattern ...
-
... eAction: 2) }.play; // remove buffer EventTypesWithCleanup .cleanup(b); See the Pproto example in PG_06f_Server_Control , showing how these can be used to clean up server objects at the end of a pattern. audioBus: Allocate an audio bus inde ...