spiffyscore

Check-in [00f4ddc9f3]
Login

Check-in [00f4ddc9f3]

Overview
Comment:Now prints score file header (function table), so I can just >> to foo.sco
Timelines: family | ancestors | descendants | both | ply
Files: files | file ages | folders
SHA1: 00f4ddc9f3f301d29ddb32b0e6541b56f4653e27
User & Date: spiffytech@gmail.com on 2010-11-12 20:23:05
Other Links: branch diff | manifest | tags
Context
2010-11-12
20:27
Added a few grammars, added G# to csound note conversion list check-in: 3cd7a5dcd0 user: spiffytech@gmail.com tags: ply
20:23
Now prints score file header (function table), so I can just >> to foo.sco check-in: 00f4ddc9f3 user: spiffytech@gmail.com tags: ply
20:12
Moved all logic into neat, orderly functions. Now prints only the csound score portion. check-in: 6a17d4d36a user: spiffytech@gmail.com tags: ply
Changes

Modified cfg.py from [4cae783255] to [e38fca44a4].

14
15
16
17
18
19
20

21
22
23
24
25
26
27

def main():
    score = "u u u"
    key = "C"
    score = generate_score(score)
    score = keyify_score(score, key)
    score = generate_csound_score(score)

    for line in score:
        print line


def make_scale(key):
    notes = ["A", "A#", "B", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#"]
    scale = [key]







>







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

def main():
    score = "u u u"
    key = "C"
    score = generate_score(score)
    score = keyify_score(score, key)
    score = generate_csound_score(score)
    print "f1  0   256 10  1 0 3   ; sine wave function table"
    for line in score:
        print line


def make_scale(key):
    notes = ["A", "A#", "B", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#"]
    scale = [key]

Modified test.sco from [acb8a904c1] to [9469105036].

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
f1  0   256 10  1 0 3   ; sine wave function table

i2 0.000000 2 7000 8.00 9.00 0 6
i2 0.250000 2 7000 8.07 8.07 0 6
i2 0.500000 2 7000 9.00 8.00 0 6
i2 0.750000 2 7000 8.05 9.05 0 6
i2 1.000000 2 7000 8.00 9.00 0 6
i2 1.250000 2 7000 9.07 9.07 0 6
i2 1.500000 2 7000 9.00 9.00 0 6
i2 1.750000 2 7000 8.05 9.05 0 6
i2 2.000000 2 7000 9.00 8.00 0 6
i2 2.250000 2 7000 8.07 9.07 0 6
i2 2.500000 2 7000 8.00 8.00 0 6
i2 2.750000 2 7000 9.05 9.05 0 6
i2 3.000000 2 7000 8.00 8.00 0 6
i2 3.250000 2 7000 8.07 9.07 0 6
i2 3.500000 2 7000 9.00 9.00 0 6
i2 3.750000 2 7000 8.05 9.05 0 6
i2 4.000000 2 7000 8.00 9.00 0 6
i2 4.250000 2 7000 9.07 9.07 0 6
i2 4.500000 2 7000 9.00 9.00 0 6
i2 4.750000 2 7000 8.05 8.05 0 6
i2 5.000000 2 7000 9.00 8.00 0 6
i2 5.250000 2 7000 8.07 8.07 0 6
i2 5.500000 2 7000 8.00 9.00 0 6
i2 5.750000 2 7000 9.05 9.05 0 6
i2 6.000000 2 7000 9.00 9.00 0 6
i2 6.250000 2 7000 9.07 9.07 0 6
i2 6.500000 2 7000 9.00 8.00 0 6
i2 6.750000 2 7000 8.05 8.05 0 6
i2 7.000000 2 7000 9.00 9.00 0 6
i2 7.250000 2 7000 8.07 9.07 0 6
i2 7.500000 2 7000 8.00 8.00 0 6
i2 7.750000 2 7000 9.05 8.05 0 6
i2 8.000000 2 7000 9.00 8.00 0 6
i2 8.250000 2 7000 8.07 8.07 0 6
i2 8.500000 2 7000 9.00 9.00 0 6
i2 8.750000 2 7000 8.05 9.05 0 6

<
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|

|


|
|
|
|
|
|
|
|
|
|

<
<
<
<
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




f1  0   256 10  1 0 3   ; sine wave function table

i2 0.000000 2 7000 8.00 8.00 0 6
i2 0.250000 2 7000 8.07 9.07 0 6
i2 0.500000 2 7000 8.00 9.00 0 6
i2 0.750000 2 7000 8.05 8.05 0 6
i2 1.000000 2 7000 8.00 9.00 0 6
i2 1.250000 2 7000 9.07 8.07 0 6
i2 1.500000 2 7000 9.00 8.00 0 6
i2 1.750000 2 7000 9.05 8.05 0 6
i2 2.000000 2 7000 8.00 8.00 0 6
i2 2.250000 2 7000 9.07 9.07 0 6
i2 2.500000 2 7000 8.00 9.00 0 6
i2 2.750000 2 7000 8.05 9.05 0 6
i2 3.000000 2 7000 9.00 8.00 0 6
i2 3.250000 2 7000 8.07 8.07 0 6
i2 3.500000 2 7000 8.00 9.00 0 6
i2 3.750000 2 7000 9.05 9.05 0 6
i2 4.000000 2 7000 9.00 8.00 0 6
i2 4.250000 2 7000 9.07 9.07 0 6
i2 4.500000 2 7000 8.00 9.00 0 6
i2 4.750000 2 7000 8.05 8.05 0 6
i2 5.000000 2 7000 9.00 8.00 0 6
i2 5.250000 2 7000 9.07 9.07 0 6
i2 5.500000 2 7000 9.00 8.00 0 6
i2 5.750000 2 7000 8.05 8.05 0 6
i2 6.000000 2 7000 9.00 8.00 0 6
i2 6.250000 2 7000 8.07 8.07 0 6
i2 6.500000 2 7000 8.00 9.00 0 6
i2 6.750000 2 7000 9.05 9.05 0 6
i2 7.000000 2 7000 8.00 8.00 0 6
i2 7.250000 2 7000 9.07 9.07 0 6
i2 7.500000 2 7000 8.00 9.00 0 6
i2 7.750000 2 7000 9.05 8.05 0 6