[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Strange behavior of event type 'phrase'?
Thanks James for your reply.
I think that even now there is a problem with the 'recursionLevel' key.
(
Pdef(\x,
Pbind(
\freq, Pseq([ 400, 300, 600 ] ),
\dur, Pseq( [0.1, 0.2, 0.3]),
\amp, 0.4
)
)
)
// O.k if 'recursionLevel' is nil or 0,
// but is this the wright behavior if 'recursionLevel' > 0 ?
( instrument: \x, type: \phrase, recursionLevel: nil ).play;
( instrument: \x, type: \phrase, recursionLevel: 0 ).play;
( instrument: \x, type: \phrase, recursionLevel: 1 ).play;
Something that puzzled me is the 'protoEvent' arg of Pattern's
'play' method ( or is the 'protoEvent' arg of EventStreamPlayer ? )
in the line
pat.play(thisThread.clock, outerEvent, 0.0);
near the end of 'phraseEventFunction'.
E.x.
a = Pbind(\freq, 300, \dur, Pseq([0.2, 0.3, 0.4]) );
a.play( protoEvent: ( freq: 700 ) ); // doesn't override freq
// instead, it acts as parentEvent
a.play( protoEvent: ( freq: 700, detune: 10 ) );