-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
55 lines (45 loc) · 1.07 KB
/
README
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
Counter Point
=======
This project contains my ongoing research of applying machine learning conepts to species counter point exercises.
Usage
-------------
lilypond is required to output results in score and midi format
When the script is executed, the user will be automatically requested to input a cantus firmus. The format is midi note numbers. An example cantus firmus in the key of C is:
<pre>
60, 64, 65, 67, 64, 69, 67, 64, 65, 64, 62, 60
</pre>
To start a search:
<pre>
x = depth_first_tree_search(problem)
</pre>
To see the terminal node:
<pre>
x
</pre>
To see the path to this node, which will be a complete cantus firmus exercise:
<pre>
x.path()
</pre>
To create pdf output and .midi file
<pre>
x.Output(x)
</pre>
for i in x.path(): print(i)
<pre>
node cantus counter interval
| | / /
| | / /
\ | / /
\ | | /
\ | / /
\ | | /
| | | |
+==========================
< node 0,0,0,0>
< node 1,1,25,24>
< node 2,2,14,12>
< node 3,3,12,9>
< node 4,4,16,12>
< node 5,5,14,9>
< node 6,6,18,12>
</pre