-
Notifications
You must be signed in to change notification settings - Fork 3
/
notes.txt
156 lines (117 loc) · 3.31 KB
/
notes.txt
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
x:> preview
f 1 0 8192 10 1
i 1 0 0.25 0.5 343.0 1.0 # p6 is pan
i 1 + 0.25 0.5 343.0 0.5
i 1 + 0.25 0.5 512.0 0.222
i 1 + 0.25 0.5 512.0 0.1
i 2 + 0.25 0.6 7.06 1.0
i 2 + 0.25 0.6 7.06 0.5
i 2 + 0.25 0.6 6.06 0.222
i 2 + 0.25 0.6 6.06 0.1
# auto-reads from pbpaste
:> pfunc(i, 1, 6, 1.0 - x), sco_align
f 1 0 8192 10 1
i 1 0 0.25 0.5 7.00 0.0 # p6 is pan
i 1 + 0.25 0.5 7.00 0.5
i 1 + 0.25 0.5 8.00 0.778
i 1 + 0.25 0.5 8.00 0.9
i 2 + 0.25 0.6 7.06 1.0
i 2 + 0.25 0.6 7.06 0.5
i 2 + 0.25 0.6 6.06 0.222
i 2 + 0.25 0.6 6.06 0.1
# pbcopy the last buffer command
:> set
csd/
__init__py
orc/
sco/
__init__.py # block.py
event.py
element.py
csd.get_score(csd_file)
csd.get_orchestra(csd_file)
csd.get_orchestra_flags(csd_file)
csd.get_lead(csd_text) # Before <cs>
csd.get_trail(csd_text) # after </cs>
csd.sco.align(score)
csd.sco.swap(score, a, b)
csd.sco.sort(score)
csd.sco.event.get()
csd.sco.event.get_pfield_list()
csd.sco.event.insert()
csd.sco.event.number_of_pfields()
csd.sco.event.push()
csd.sco.event.pop()
csd.sco.event.remove()
csd.sco.event.sanitize()
csd.sco.event.set()
csd.sco.event.split()
csd.sco.event.tokenize()
csd.sco.element.type_(token)
readme.txt
_doc_source/
tests/
demo/
csd/
__init__py
get_score(csd_file)
get_orchestra(csd_file)
get_orchestra_flags(csd_file)
get_lead(csd_text) # Before <cs>
get_trail(csd_text) # after </cs>
orc/
sco/
__init__.py
align(score, statement=1, pfields=1, comments=2, min_width=1,
set_other_field_widths[(pfield, pad_amount), (...)])
swap(score, a, b)
insert()
remove()
push()
pop()
sort(score)
event/
__init__.py
get()
get_pfield_list()
insert()
number_of_pfields()
push()
pop()
remove()
sanitize()
set()
split()
swap()
tokenize()
element/
__init__.py
type_(token)
evaluate(expression)
expression/
__init__.py
evaluate(expression)
csd.sco
pop(). Does it refer to the last event, or the last pfield in each
event? Would we really need a pop? Considering it can already be done
somewhat easily with regular python.
score_list = score.splitlines()
score = '\n'.join(score_list[0, len(score_list) - 1)
First conclusion, should refer to the pfields. Though what would regular
python look like applied to pfields?
score_list = score.splitlines()
new_score = []
for event in score_list:
new_score.append(csd.sco.event.pop(event)[0])
score = '\n'.join(new_score)
Note: The above code should be considered pseudo-code.
# NOTES
'''
event_list = []
event_list = to_list_form(' /*a*/i1 0 1')
['i', '1', '0', '1'], [['/*a*/', 1], [' ', 0]]
['i', '1', '0', '1'], [[1, '/*a*/'], [0, ' ']]
['i', '1', '0', '1'], [{1:'/*a*/'}, {0:' '}]
['event', ['i', '1', '0', '1'], [{1:'/*a*/'}, {0:' '}]]
Class this?
'''