spiffyscore

Check-in [e425f3d6c2]
Login

Check-in [e425f3d6c2]

Overview
Comment:Now generates scores until it makes one 50 notes ling
Timelines: family | ancestors | descendants | both | ply
Files: files | file ages | folders
SHA1: e425f3d6c2e12718d60fc1734a6e09973f8480f0
User & Date: spiffytech@gmail.com on 2010-11-12 20:30:17
Other Links: branch diff | manifest | tags
Context
2010-11-13
00:12
Now handles chords check-in: 5aa14570f1 user: spiffytech@gmail.com tags: ply
2010-11-12
20:30
Now generates scores until it makes one 50 notes ling check-in: e425f3d6c2 user: spiffytech@gmail.com tags: ply
20:27
Added a few grammars, added G# to csound note conversion list check-in: 3cd7a5dcd0 user: spiffytech@gmail.com tags: ply
Changes

Modified cfg.py from [14f13b1d15] to [d8090f9de3].

9
10
11
12
13
14
15

16

17
18
19
20
21
22
23
24
25
grammars = {
    "u": ["I V I IV u", "I IV", "I VII IV"  , "e"],
    "e": [""],
}


def main():

    score = "u u u"

    key = "G#"
    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









>
|
>
|
|







9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
grammars = {
    "u": ["I V I IV u", "I IV", "I VII IV"  , "e"],
    "e": [""],
}


def main():
    key = "G#"
    score = ""
    while len(score.split()) < 50:
        score = "u u u"
        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


Modified test.sco from [3aef217c82] to [9253ead855].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15






































f1  0   256 10  1 0 3   ; sine wave function table
i2 0.000000 2 7000 8.08 9.08 0 6
i2 0.250000 2 7000 8.07 8.07 0 6
i2 0.500000 2 7000 8.01 8.01 0 6
i2 0.750000 2 7000 9.08 8.08 0 6
i2 1.000000 2 7000 8.03 8.03 0 6
i2 1.250000 2 7000 8.08 8.08 0 6
i2 1.500000 2 7000 9.01 8.01 0 6
i2 1.750000 2 7000 9.08 8.08 0 6
i2 2.000000 2 7000 9.03 9.03 0 6
i2 2.250000 2 7000 9.08 9.08 0 6
i2 2.500000 2 7000 8.01 9.01 0 6
i2 2.750000 2 7000 8.08 9.08 0 6
i2 3.000000 2 7000 8.07 9.07 0 6
i2 3.250000 2 7000 8.01 8.01 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
f1  0   256 10  1 0 3   ; sine wave function table
i2 0.000000 2 7000 8.08 8.08 0 6
i2 0.250000 2 7000 9.03 9.03 0 6
i2 0.500000 2 7000 9.08 8.08 0 6
i2 0.750000 2 7000 8.01 9.01 0 6
i2 1.000000 2 7000 8.08 8.08 0 6
i2 1.250000 2 7000 9.03 9.03 0 6
i2 1.500000 2 7000 9.08 9.08 0 6
i2 1.750000 2 7000 9.01 9.01 0 6
i2 2.000000 2 7000 8.08 9.08 0 6
i2 2.250000 2 7000 8.03 9.03 0 6
i2 2.500000 2 7000 9.08 9.08 0 6
i2 2.750000 2 7000 8.01 8.01 0 6
i2 3.000000 2 7000 9.08 9.08 0 6
i2 3.250000 2 7000 8.03 8.03 0 6
i2 3.500000 2 7000 8.08 8.08 0 6
i2 3.750000 2 7000 9.01 9.01 0 6
i2 4.000000 2 7000 9.08 9.08 0 6
i2 4.250000 2 7000 8.03 9.03 0 6
i2 4.500000 2 7000 8.08 9.08 0 6
i2 4.750000 2 7000 8.01 9.01 0 6
i2 5.000000 2 7000 8.08 8.08 0 6
i2 5.250000 2 7000 8.03 9.03 0 6
i2 5.500000 2 7000 9.08 8.08 0 6
i2 5.750000 2 7000 9.01 9.01 0 6
i2 6.000000 2 7000 8.08 8.08 0 6
i2 6.250000 2 7000 9.03 8.03 0 6
i2 6.500000 2 7000 8.08 8.08 0 6
i2 6.750000 2 7000 8.01 9.01 0 6
i2 7.000000 2 7000 8.08 9.08 0 6
i2 7.250000 2 7000 9.03 8.03 0 6
i2 7.500000 2 7000 8.08 9.08 0 6
i2 7.750000 2 7000 8.01 9.01 0 6
i2 8.000000 2 7000 8.08 8.08 0 6
i2 8.250000 2 7000 8.03 8.03 0 6
i2 8.500000 2 7000 9.08 8.08 0 6
i2 8.750000 2 7000 9.01 9.01 0 6
i2 9.000000 2 7000 9.08 9.08 0 6
i2 9.250000 2 7000 9.03 8.03 0 6
i2 9.500000 2 7000 9.08 9.08 0 6
i2 9.750000 2 7000 8.01 8.01 0 6
i2 10.000000 2 7000 8.08 8.08 0 6
i2 10.250000 2 7000 8.03 9.03 0 6
i2 10.500000 2 7000 8.08 9.08 0 6
i2 10.750000 2 7000 8.01 9.01 0 6
i2 11.000000 2 7000 8.08 8.08 0 6
i2 11.250000 2 7000 8.03 9.03 0 6
i2 11.500000 2 7000 8.08 9.08 0 6
i2 11.750000 2 7000 9.01 8.01 0 6
i2 12.000000 2 7000 8.08 8.08 0 6
i2 12.250000 2 7000 9.03 8.03 0 6
i2 12.500000 2 7000 8.08 8.08 0 6
i2 12.750000 2 7000 9.01 9.01 0 6