Keeps a reference to a stream that can be replaced while playing. Multiple streams are thus handled without creating dependencies.
create a new instance with a pattern (the source). the pattern should be a value pattern (see Pdefn).
for event pattern proxy, see: EventPatternProxy. instead of a pattern, a function can be passed in, creating a routine.
a default source, if none is given. the default is 1.0 (it is not 0.0 in order to make it safe for durations)
set the default quantization value for the class. (default: nil)
a default return value, if no source is given. the default is 1.0 (it is not 0.0 in order to make it safe for durations). This is used in -endless.
Return a Stream from this pattern. One pattern proxy can be used to produce any number of independent streams.
The inval is passed into all substreams and can be used to control how they behave from the outside.
See Object: -streamArg for explanation.
set the source. If a quantization is given, schedule this change to the next beat
set the source to nil
set or get the quantization value
provide a condition under which the pattern is switched when a new one is inserted. the stream value and a count is passed into the function. the methods count_(n) simply counts up to n and switches the pattern then
just like any pattern, embeds itself in stream
provide a default environment for the proxy. If given, it is used as an environment for the routine function. When set for the first time, the routine pattern is rebuilt.
set arguments in the environment. If there is none, it is created and the pattern is rebuilt.
returns a Prout that plays the proxy endlessly, replacing nil with a default value (1). This allows to create streams that idle on until a new pattern is inserted.