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

Re: [sc-users] sending synth parameters with patterns



easy.

e = \basicsub;
f = \oboe;
b = [60, 72, 71, 67, 69, 71, 72, 60, 69, 67];
c = [2, 2, 1, 0.5, 0.5, 1, 1, 2, 2, 3];

r = Pbind(*[
    \instrument, e,
    \midinote, Pseq(b, 1),
    \dur, Pseq(c, 1)
	]++a.variants[\oboe]
).play;



30 dec 2013 kl. 19:49 skrev Philip Galanter <list@xxxxxxxxxxxxxxxxxx>:

> Hi Fredrik
>  
> OK, I tried this and *as is* it seems to work. However, I have to admit I don't really understand what it's doing. 
> 
> I tried adding note and duration lists and can't get past apparent syntax errors. How would I write the Pbind to do the equivalent of this, except with your method of invoking the variants?
> 
> e = \basicsub;
> f = \oboe;
> b = [60, 72, 71, 67, 69, 71, 72, 60, 69, 67];
> c = [2, 2, 1, 0.5, 0.5, 1, 1, 2, 2, 3];
> 
> r = Pbind(                              // note \oboe is missing here obviously
>     \instrument, e,
>     \midinote, Pseq(b, 1),
>     \dur, Pseq(c, 1)
> ).play;
> 
> If I can get that to work then everything else falls into place. (The rest of the work is in the creation of patches, and the creation of note and duration lists.)
> 
> thanks!
> 
> Phil

  #|
     fredrikolofsson.com     musicalfieldsforever.com
  |#


_______________________________________________
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/