-
Notifications
You must be signed in to change notification settings - Fork 1
/
in_c.py
78 lines (59 loc) · 1.61 KB
/
in_c.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Find the in C tune here : http://aleatoric.backporchrevolution.com/wp-content/uploads/2009/01/inc_score.gif
# Now for the 53 different patterns, all converted in FoxDot language
# There is 53 different patterns. I have only two characters with letter first for naming players, consequently here is my enum :
'''
1 becomes p1
10 becomes q0
11 becomes q1
20 becomes r0
30 becomes s0
40 becomes t0
50 becomes u0
and so on
'''
# The score does not mention any time signature nor tempo so I'll consider we're set like this, feel free to change whatever :
Clock.bpm = 120
Clock.meter = (4,4)
# Root and scale, in the original set it's a C major but we have full possibility of experimenting something else
Root.default.set(0)
Scale.default.set("major")
# Pattern list :
p1.degree = 0
p1.dur = 1
p1.oct = (5,4)
p2.degree = P[0,1,0]
p2.dur = P[1/2,1/2,1]
p2.oct = P[(5,4),4,4]
p3.degree = P[0,1,0]
p3.dur = 1/2
p3.oct = 6
p4.degree = P[-3,0,1,2]
p4.dur = P[rest(1/2),1/2,1/2,1/2]
p4.oct = 6
p5.degree = P[0,1,2,-3]
p5.dur = P[1/2,1/2,1/2,rest(1/2)]
p5.oct = 6
p6.degree = 5
p6.dur = 4 # this is a full bar, changes with Clock.meter
p6.oct = 6
p7.degree = P[[-3]*4,[5]*3,[-3]*5]
p7.dur = P[[rest(1)]*3,rest(1/2),[1/4]*2,1/2,rest(1/2),[rest(1)]*4]
p7.oct = 5
p8.degree = P[2,0,0]
p8.dur = P[6,4,4]
p8.oct = 6
p9.degree = P[4,2,[-3]*4]
p9.dur = P[[1/4]*2,rest(1/2),[rest(1)]*4]
p9.oct = 6
q0.degree = P[4,2]
q0.dur = 1/2
q0.oct = 6
q1.degree =
q1.dur = 1/4
q1.oct = 6
q2.degree = P[2,3,5,6]
q2.dur = P[1/2,1/2,4,1]
q3.degree = P[4,2,2,1,2,15.5,2,2]
q3.dur = P[1/4,3/4,1/4,1/4,1/2,rest(3/4),1/4,3]
q4.degree = P[5,4,2,1.5]
q4.dur = 4