-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.py
More file actions
58 lines (40 loc) · 810 Bytes
/
notes.py
File metadata and controls
58 lines (40 loc) · 810 Bytes
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 4 16:57:15 2020
@author: medusa
"""
class node():
def __init__(self, label, lchild, rchild):
self.label=label
self.lchild=lchild
self.rchild=rchild
C=["C"]
Df=["BD"]
D=["D"]
Ef=["Eb"]
E=["E"]
F=["F"]
Gf=["Gb"]
G=["G"]
Af=["Ab"]
A=["A"]
Bf=["Ab"]
B=["B"]
notes=[C,Df,D,Ef,E,F,Gf,G,Af,A,Bf,B]
monad=node("C")
dyad=node("Df",monad,triad)
pentad=node("E")
Quad=node("Ef",triad,pentad)
triad=node("D",dyad,Quad)
hexad=node("F")
octad=node("G")
septad=node("Gb",hexad,octad)
twelvetad=("B")
tentad=node("A",ninetad,eleventad)
eleventad=("Bb",tentad,twelvetad)
ninetad=node("Ab",septad,eleventad)
#A->[Ab,Bb] 1 iteration/level
#Gb->[F,G] 2 iterations/levels
#Bb->[A,B]
five=