Scales and Patterns

November 19, 2009 at 1:22 am (Uncategorized)

Pseq plays the degree in the order you’ve written it.
Prand chooses notes from the scale given at random.

(
Pbind(
\scale, [0,2,4,5,7,9,11],
\degree, 1,
\dur,1/2).play
)

\scale – major scale
\degree – its basically which octave it’s playing
\dur – tempo

other scales are:

Dorian: T S T T T S T
0 2 3 5 7 9 10 12

Phrygian: S T T T S T T
0 1 3 5 7 8 10 12

Lydian: T T T S T T S
0 2 4 6 7 9 11 12

Aeolian: T S T T S T T
0 2 3 5 7 8 10 12

Locrian: S T T S T T T
0 1 3 5 6 8 10 12

//Pseq
(Pdef(\a,
Pbind(
\scale, [0,2,4,5,7,9,11],
\degree,Pseq([6,3,1,5]-1,inf),
\dur,1/4
).play
)

//so what is doing here is play the major scale infinitely in these degrees with a tempo of 1/4

//randomise
(
Pdef(\b,
Pbind(
\scale, [0,2,4,5,7,9,11],
\degree, Prand ([6,3,1,5,4]-1, inf),
\dur,1/4)
).play
)

//transposition
(
Pdef(\b,
Pbind(
\scale, [0,2,4,5,7,9,11],
\degree, Prand ([6,3,1,5,4]-1, inf),
\ctranspose,1,
\dur,1/4)
).play
)

//play only 4 times
(
Pdef(\f,
Pbind(
\scale, [0,2,4,5,7,9,11],
\degree, Pseq ([6,3,1,5,4]-1, 4),
\dur,1/4)
).play
)

//for changing things together use this:
(Pdef(\a).play ++(\b)).play

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.