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

Re: [sc-users] Drum patterns with patterns?



On Jul 23, 2009, at 6:07 PM, Nathaniel Virgo wrote:

Hi,

That's handy - I didn't know about it. 

But as far as I can see it's not able to help in the situation where you don't want a beat at the beginning of a bar.  One still has to add a beat at time zero with freq=\rest, or else use Plag.

I confess, I don't see this as a major limitation. Typically drum parts are bar-oriented.

Or, another approach - say you want the notes to start on beat 1 (relative to 0 = barline).

p = Pbind(
\degree, Pwhite(0, 7, inf),
// Pseq(...) minus first note's timepoint
// that is, make the first timepoint 0 always
\dur, Pdelta(Pseq(#[1, 2, 3], inf) - 1, 4)
).play(quant: [-1, 1]);

p.stop;

So, it is able to do it, with a little creativity.

hjh


: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman