[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] Pbind dependency on TempoClock.default and mute in EventStreamPlayer



(1)

Pbind.new.play(TempoClock(2))

fails because NotePlayer uses TempoClock.default
rather than passed in clock

should be schedAbs if using default or much better to
just use passed in clock

Pbind(\player, NoteDurPlayer.new).play(TempoClock(2))

no failure but then no release because

a=Synth(\default).play(s)

requires 
a.set(\gate, 0.0)

which is not sent by NotePlayer, so NP only suitable
for own defined SynthDefs with fixed play times
in the envelopes

possible solution-

add 
~tempoclock = TempoClock.default

property to prototype Event and pass through current
clock in EventStreamPlayer (or as function argument)

so playEvent in NotePlayer can do 

~tempoclock.sched(dur, { 
			server.sendBundle(lag, [15, id, \gate, 0]); //15 ==
n_set
		});

We used to have a \tempo property in SC2...

(2)

Is there a reason that EventStreamPlayer-mute use the
muteCount variable? If you accidentally call mute or
unmute twice, you lose toggling ability- muteCount=1;
and muteCount=0 would be sufficient surely? 



________________________________________________________________________
Download Yahoo! Messenger now for a chance to win Live At Knebworth DVDs
http://www.yahoo.co.uk/robbiewilliams