-
Notifications
You must be signed in to change notification settings - Fork 3
/
CkalcJoyofCoding.ini
268 lines (230 loc) · 6.95 KB
/
CkalcJoyofCoding.ini
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
[midi]
# midi options of the device to use
port: 2
#IAC driver loopback:
#noteon_id: 144
#M-audio midi controller:
#noteon_id: 154
#noteoff_id: 128
#pedal_id: 186
#pedal_midi_sostenuto: 7
# Generic (almost all manufacturers):
noteon_id: 144
noteoff_id: 128
pedal_id: 176
pedal_midi_sostenuto: 66
#pedal_midi_sostenuto: 67
#Casio keyboard:
#pedal_midi_sostenuto: 96
[Hello World]
# simple alphanumeric & commands 1-1 mapping used Hello World module
# midinumber : alphanumeric or command mapping
22: .tempo
23: .play
25: e
32: enter
33: sc-evaluate
39: v
42: u
44: b
49: =
50: ~
51: +
52: *
53: /
54: -
56: space
57: 0
58: space
59: 2
60: 3
61: w
62: p
63: s
64: n
65: d
66: i
67: m
68: b
70: n
71: t
73: o
86: g
88: n
89: d
90: a
91: k
92: h
93: l
95: backspace
96: o
97: c
98: r
105: .
108: down
toggle: 107
[shortcuts]
# first key that remains presses, second key
eval: shift, enter
[shortcuts mapping]
[Motippets]
# simple alphanumeric & commands 1-1 mapping used in Motippets module and evaluation shortcut
66: motippetssc-evaluate
[Motippets register division]
# midi note register limits (21 <= mid_low is low register, between mid_low and mid_hi is mid register, > mid_hi is hi)
mid_low: 62
mid_hi: 68
[chordal main motifs midi]
motif_1: 59, 62, 66, 60, 64, 67, 62, 69, 66
motif_2: 64, 67, 71
[melodic main motifs midi]
motif_3: 45, 47, 48, 49
[chordal conditional motifs midi]
conditional_1: 36, 31, 29, 26, 28, 35, 38, 33, 24, 26, 31, 28, 33, 21, 23, 29
[melodic conditional motifs midi]
conditional_2: 49, 45, 48, 49, 43
conditional_3: 97, 93, 96, 97, 91
[chordal conditional results motifs midi]
conditional_result_1: 21,22,23
conditional_result_2: 23,24,25
[melodic conditional results motifs midi]
conditional_result_3: 68,74,74,63,69
conditional_result_4: 99, 92, 90, 89, 92, 94
conditional_result_5: 26,23,23
[melodic mini motifs]
ta-ta-ta-ta: 67, 67, 67, 63
mini_motif_1: 35, 35, 35, 40
mini_motif_2: 95,95,95,88
[chordal mini motifs]
mini_motif_9: 62, 65, 66
[snippets code output]
# motif_name : code output
# (in this case supercollider)
# (duplicate names won't work!)
motif_1: osc().osc()
motif_2: ~snippet2 = Ndef(\acc, {|note=500, amp=0.2, cut=200, bw=0.5, fx=0.1| BPF.ar(Resonz.ar(SinOsc.ar([note.lag(1), note.lag(2)*3/2, note*2, note.lag(1.5)*4/3]), (note*LFTri.kr(fx).range(1/2, 8))+80, bw), 600, 0.8) * amp.lag(0.5)}).play(0,2);
ta-ta-ta-ta: c = Ckalculator.new("vi", "xa", "whi");
mini_motif_2: Ndef(\acc).map(\fx, Ndef(\krm2_3)); ~tremoloH2;
mini_motif_1: Ndef(\acc).map(\note, Ndef(\krm2_1)); ~tremoloM2;
#conditionals
conditional_1: setting up a conditional: IF number of \nnotes played is more than 100 in...
conditional_2: setting up an ONGOING conditional: \nIF range is more than...
conditional_3: setting up an ONGOING conditional: \nIF range is less than...
# motif name : code, flag [osc | reset | gomb], [osc address | motif_name to reset], optional flag [grab_value | a value], optional flag [random1 | random2]
conditional_result_1_comment: if true -> stop ~snippet2, if false -> nothing
conditional_result_1_true: ~snippet2.stop;, reset, motif_2
conditional_result_1_false: //nothing
conditional_result_2_comment: if true -> stop ~snippet1, if false -> nothing
conditional_result_2_true: ~snippet1.stop(20);, reset, motif_1
conditional_result_2_false: //nothing
conditional_result_3_comment: if true -> play gong sound!, if false -> play gong sound!
conditional_result_3_true: ~gong.play, osc, gong, grab_value, random2
conditional_result_3_false: ~gong.play, osc, gong, grab_value, random2
conditional_result_4_comment: Activate self-destruct mechanism
conditional_result_4_true: ~stop.all;, gomb
conditional_result_4_false: //nothing
conditional_result_5_comment: if true -> if true -> play huygens sample, if false -> play huygens sample
conditional_result_5_true: ~huygens.stuk(), osc, huygens, grab_value, random1
conditional_result_5_false: ~huygens.stuk(), osc, huygens, grab_value, random1
[snippets code output callback]
# motif_name : code output
# (code to be evaluated after the normal code output, for example: for unmapping)
# (duplicate names won't work!)
mini_motif_2: ~map_rhythm = false; Ndef(\piano_fx).set(\rate, ~tremoloL1.linlin(1, 16, 1/2, 18));
mini_motif_1: Ndef(\acc).set(\fx, ~tremoloM2.linlin(1, 16, 0, 15));
[snippets special flags]
[motif counter]
playlimit: 1
[snippets for tremolos]
mini_motif_1: ~tremoloM2 =
mini_motif_2: ~tremoloH2 =
[conditionals settings]
#name : type [note_count, range_more_than, range_less_than], [perpetual (true | false): 1 | 0], optional settings [totalnotes, ]
conditional_1: note_count, 0, 100
conditional_2: range_more_than, 1
conditional_3: range_less_than, 1
# make volume,
[motippets display settings]
#motif_name : display column id
motif_1: 1
motif_2: 2
mini_motif_1: 1
mini_motif_2: 2
[motippets random limits]
# name : bottom limit, upper limits.
random: 10, 45
random1: 1, 80
random2: -2, 10
#NOTE: random2 multiplies by a value extracted from the function where it is used
[ckalculator]
shift: off
wrong_note_tolerance: 1
[lambda]
# lambda function : midi number mapped to the function
evaluate_function: 59
identity_midi: 23
select_first_midi: 0
select_second_midi: 0
successor_midi: 83, 95
predecessor_midi: 0
add_midi: 107
subtract_midi: 71
mult_midi: 0
division_midi: 0
greater_than_midi: 47
equality_midi: 35
less_than_midi: 0
[articulation]
# articulation name : threshold in seconds
chord: 0.02
staccato: 0.35
sostenuto: 0.8
[ar]
dot: 22
create: 24
select: 26
nextt: 28
#transform works as rootshift in FokkerFokk
transform: 32
shape: 34
# i think this doesnt exist shift_root: 32
clear: 30
generation: 36
store_collection: -1
transpositon_even: +6
transposition_odd: -6
# transform random limits (min, max)
transform_x: -1.5, 1.5
transform_y: -1, 1
transform_z: -1, 1
transform_r1: -45, 45
transform_r2: 0, 360
transform_r3: -45, 45
# server options are: local or leave blank
server:
channel: nl
#[easter eggs]
1: hello
17: today's date
9: Average number of times we pkill scsynth in a CK session
11: Number of lambda functions in our CKalculator
40: CodeKlavier has had 40 + performances
#91: Years since lambda calculus was invented
127: Years since the moving picture was invented
285: CK followers on facebook - you should like us now!
#763: Days since CodeKlavier's first public performance
1700: The piano has been around since then
1903: Alonzo Church was born
1910: The first volume of Principia Mathematica by Russel and White was published in this year
1912: The second volume of Principia Mathematica by Russel and White was published in this year.
1913: The third volume of Principia Mathematica by Russel and White was published in this year.
1930: Year lambda calculus was first introduced by Alonso Church
1960: Year that lambda calculus gained place in computer science and linguistics
1966: Year this building was open
1982: Felipe was born
1986: Anne was born
1990: Haskell first appeared
1995: JavaScript was invented by Brendan Eich
1999: Erlang was founded
2009: Idris appeared
2011: Year Felipe and Anne met during their studies at CVA