File tree Expand file tree Collapse file tree 1 file changed +23
-4
lines changed Expand file tree Collapse file tree 1 file changed +23
-4
lines changed Original file line number Diff line number Diff line change 1
1
-- tutorial part 1: understanding rhythmic sequences
2
2
--
3
3
4
- -- modify cps (cycles per second)
5
-
6
4
-- lets start off with a standard beat
7
5
d1 $ sound "bd ~ bd ~"
8
6
-- here we have 4 beats per cycle (measure) and each instrument gets the same time per beat
@@ -37,8 +35,29 @@ d1 $ sound "808bd:3 ! ! !"
37
35
-- we can divide subdivisions out to repeate on a slower cycle
38
36
d1 $ sound "808bd:3 [808lc 808ht 808cy 808sd]/2"
39
37
40
- -- TODO angle brackets
38
+ -- we can use angle brackets to make patterns with more variations
39
+ -- this alternates between "bd hh" and "bd can" on successive loops
40
+ d1 $ sound "bd <hh can>"
41
+
42
+ -- this can get complicated very quickly!
43
+ d1 $ sound "<[bd, hh*2]*3 <[can*2 sn] [hh*4 hh*8]>>"
44
+
45
+ -- Euclidean rhythm
46
+ -- fit n sounds in m beats
47
+ -- http://cgm.cs.mcgill.ca/~godfried/publications/banff.pdf
48
+ d1 $ sound "bd(3,8)"
49
+ -- equivalent to "bd ~ ~ bd ~ ~ bd ~" (Cuban tresillo)
50
+
51
+ d1 $ sound "bd(5,8)"
52
+ -- equivalent to "bd ~ bd bd ~ bd bd ~" (Cuban cinquillo)
53
+
54
+ d1 $ sound "hh(7,12)"
55
+ -- Mpre rhythm of the Ashanti people
56
+
57
+ -- modify cps (cycles per second)
58
+ cps 0.5
41
59
42
- -- TODO Bjorklund patterns
60
+ -- faster!
61
+ cps 2.0
43
62
44
63
hush
You can’t perform that action at this time.
0 commit comments