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

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



I've just spent quite sometime programing beats in SC, I tend not to use
patterns but arrays and probabilities. 

i.e

~spaff = [0,0,0.5,0.2,1,0,0.2,0.4,0.5]

n = 16

Routine{n.do { |i|

~snare = ~spaff[i%spaff.size];

case{~snare.coin}{Synth(\bigFATAMENSNARE,[\vel,~snare,\dec,~snare])};

(1/4).wait


   }}.play



also look at the convertRhythm class for making interesting wait times. 

P


Nathaniel Virgo wrote:
> 
> Hi,
> 
> I was wondering if anyone has any hints for programming drum patterns in
> SuperCollider? I'm particularly interested in Pattern-based methods.
> 
> The reason I tend to find it tricky is that with Patterns you have to
> enter
> the duration of each note in a sequence rather than the beat on which the
> note occurs.  This means that if you want, for example, a snare pattern
> that
> has hits on beats 2 and 4 of a bar, you either have to enter a note on
> beat
> 1 that has a freq of \rest, or else you have to use Plag to offset the
> snare
> pattern.  Neither of these is very convenient and both tend to mean that
> it's quite hard to read what the code is doing.
> 
> Ideally what I want is a way to enter patterns where you enter the time of
> each note instead of its duration.  So for a basic snare pattern you'd
> enter
> something like
> 
> PTimeBind(
>   \instrument, \snare,
>   \time, Pseq([1,3])
> )
> 
> Times 1 and 3 correspond to beats 2 and 4 since time starts at 0 instead
> of
> 1.  This would create a single bar that can be triggered repeatedly using
> Pspawn(er).
> 
> Is there a way of doing this that I've missed?
> 
> Nathaniel
> 
> 

-- 
View this message in context: http://n2.nabble.com/Drum-patterns-with-patterns--tp3311763p3314607.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.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/