[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] building a pattern based on values from another independent pattern
hi,
i am trying to write a melody pattern which picks notes from an independently running pattern of chords - something like this:
Pdef(\chords, Pbind(
\dur, 4.0,
\degrees, Pseq([[0, 2, 4], [-2, 0, 2]], inf)
));
Pdef(\melody, Pbind(
\instrument, \lead,
\scale, Scale.mixolydian,
\root, (-1*12) + 5,
\degree, Pseq([0, 1, 2], inf).collect { |i| /* get the i:th value of the current chord */ },
\dur, Pseq([0.5, 0.25, 0.25, 0.25], inf),
\amp, 0.1
));
so in \melody i would like to somehow access the current \degrees list from \chords. what would be a good way to achieve this?
kind regards,
miranda
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/