[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Pmono-nodeID
nods - a node ID
can fish it with a Pfunc.
not the best buuut =)
x
On Dec 20, 2007 12:50 PM, newton armstrong
<newton.armstrong@xxxxxxxxxxxxx> wrote:
> On Dec 20, 2007, at 12:55 PM, James Harkins wrote:
>
> > Just curious, why?
>
> i have a fairly evolved pluggable mapping system for connecting
> external controls to synth parameters, and i'd like to run this in
> parallel to Pmono. it would work just as well if i was able to
> retrieve the nodeID from the Event, but when i do this:
>
> a = Pmono(\default).asStream;
> a.next(Event.new.postln).play;
>
> the 'id' key doesn't show up at the first event.
>
>
> >
> > You could always change this
> >
> > id = server.nextNodeID;
> >
> > to
> >
> > id = ~id ?? { server.nextNodeID };
>
> yeah, that works. thanks.
>
> >
> > But for non-mono patterns this could break so I'm not sure it could
> > be recommended as a general change.
>
> it would only need to be changed in playerEvent:monoNote, so that
> wouldn't effect non-mono patterns. but perhaps it's still a little
> untidy, and inconsistent with other node events.
>
> _______________________________________________
> sc-users mailing list
> sc-users@xxxxxxxxxxxxxxx
> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>