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

Re: [sc-users] proxyspace <-> patterns question



Hiho,

On Thursday 05 March 2009 11:18:05 Julian Rohrhuber wrote:
> the pattern does not know what arguments to send.
> so add:
>
> \args, [\trig, \freq]

hmm...
my intuition was that it should just send whichever arguments I give it. After 
all the node will just ignore it if it doesn't understand it.
Seems like a reasonable thing to do, when using the \set type.

> another way to set a node proxy with a pattern is with the role of \set
>
> ~oufplay2[2] = Pbindef( \p4);
>
> then the right args are derived implicitly.

ok, I'll try that out.

> also you may want to use a t_trig (then you get a trigger control,
> and don't have to reset the control each second time).

yes, yes, I did that, but as I was debugging to try to find the problem I 
tried all kinds of variants.

sincerely,
Marije

>
> >Hiho,
> >
> >I have this in a ProxySpace:
> >
> >~bufplay2 = { |rate=0.1, freq= 100, trig=1, dur = 1, amp=5 |
> > amp*EnvGen.kr( Env.asr, trig, timeScale: dur ) * RLPF.ar( PlayBuf.ar( 2,
> > b.bufnum, rate, loop: 1 ), freq, 0.3 )};
> >
> >~bufplay2.play;
> >
> >// triggers the envelope as expected:
> >~bufplay2.set( \trig, 1 )
> >
> >~bufplay2.set( \trig, 0 )
> >
> >// but attempting to set trig from a pattern does not seem to work:
> >
> >Pbindef( \p4, \type, \set );
> >Pbindef( \p4 ).play;
> >Pbindef( \p4, \id, ~bufplay2.group.nodeID );
> >Pbindef( \p4, \rate, 0.8 );
> >Pbindef( \p4, \dur, Pseq( [ 1, 3, 2 ]*0.4, inf ) );
> >Pbindef( \p4, \freq, Pseq( [ 200, 100, 150 ]*4, inf ) );
> >Pbindef( \p4, \trig, Pseq( [1,0], inf) );
> >
> >
> >What am I missing here?
> >
> >
> >sincerely,
> >Marije
> >
> >_______________________________________________
> >sc-users mailing list
> >
> >info (subscription, etc.):
> >http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> >archive: https://listarc.bham.ac.uk/marchives/sc-users/
> >search: https://listarc.bham.ac.uk/lists/sc-users/search/



_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/