-
Notifications
You must be signed in to change notification settings - Fork 1
/
memories.gs
566 lines (520 loc) · 9.42 KB
/
memories.gs
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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
"std/std.gs" require
"title: c64-memories
original author: smt (1994)"puts
12 : ticks_per_row ;
480 frame
####### bass #######
{
120 volume
20 pulse
30 sustain
15 decay
0 panning
} : init_bass ;
[
{ play C_3 pitch } { init_bass } +
{}
{ [C_3 0 10] m_pitch_slide }
{}
] : bass0 ;
[
{
{ play As2 pitch 100 volume m_none } { init_bass } +
{ play C_3 pitch }
{ play As2 pitch 50 volume }
{ play C_2 pitch 100 volume }
{ play C_3 pitch }
{ play C_2 pitch }
{ play C_3 pitch 50 volume }
{ play C_3 pitch 100 volume }
{ play C_2 pitch }
{ play C_3 pitch 50 volume }
{ play C_3 pitch 100 volume }
{ stop }
{ play As1 pitch }
{ play C_2 pitch }
{ stop }
{ play C_3 pitch }
} 2 *
;
{ stop }
{ play As2 pitch 100 volume }
{ play C_3 pitch }
{ play As2 pitch 50 volume }
{ play C_2 pitch 100 volume }
{ play C_3 pitch }
{ play C_2 pitch }
{ play C_3 pitch 50 volume }
{ play C_3 pitch 100 volume }
{ play C_2 pitch }
{ play C_3 pitch 50 volume }
{ play C_3 pitch 100 volume }
{ stop }
{ play As1 pitch }
{ play C_2 pitch }
{ stop }
{ play C_3 pitch }
{ play As2 pitch 100 volume }
{ play C_3 pitch }
{ play As2 pitch 50 volume }
{ play C_2 pitch 100 volume }
{ play C_3 pitch }
{ play C_2 pitch }
{ play C_3 pitch 50 volume }
{ play C_3 pitch 100 volume }
{ play Ds1 pitch }
{ play C_3 pitch 50 volume }
{ play Ds2 pitch 100 volume }
{ stop }
{ play F_2 pitch }
{ play F_2 pitch }
{ stop }
{ stop }
] : bass1 ;
[
{
{ play Gs2 pitch 100 volume m_none } { init_bass } +
{ play As2 pitch }
{ play Gs2 pitch 50 volume }
{ play As1 pitch 100 volume }
{ play As2 pitch }
{ play As1 pitch }
{ play As2 pitch 50 volume }
{ play As2 pitch 100 volume }
{ play As1 pitch }
{ play As2 pitch 50 volume }
{ play As2 pitch 100 volume }
{ stop }
{ play Gs1 pitch }
{ play As1 pitch }
{ stop }
{ play As2 pitch }
} 2 *
;
{ stop }
{ play Gs2 pitch 100 volume }
{ play As2 pitch }
{ play Gs2 pitch 50 volume }
{ play As1 pitch 100 volume }
{ play As2 pitch }
{ play As1 pitch }
{ play As2 pitch 50 volume }
{ play As2 pitch 100 volume }
{ play As1 pitch }
{ play As2 pitch 50 volume }
{ play As2 pitch 100 volume }
{ stop }
{ play Gs1 pitch }
{ play As1 pitch }
{ stop }
{ play As2 pitch }
{ play Gs2 pitch 100 volume }
{ play As2 pitch }
{ play Gs2 pitch 50 volume }
{ play As1 pitch 100 volume }
{ play As2 pitch }
{ play As1 pitch }
{ play As2 pitch 50 volume }
{ play As2 pitch 100 volume }
{ play Cs1 pitch }
{ play As2 pitch 50 volume }
{ play Cs2 pitch 100 volume }
{ stop }
{ play Ds2 pitch }
{ play Ds2 pitch }
{ stop }
{ stop }
] : bass2 ;
[
bass2 ~
{;} 16 *
{ play Gs2 pitch 100 volume }
{ play As2 pitch }
{}
{ play Gs2 pitch 32 volume }
{ play As2 pitch }
{}
{ play Gs2 pitch 16 volume }
{ play As2 pitch }
{}
{ play Gs2 pitch 8 volume }
{ play As2 pitch }
{}
{}
{}
{}
{ stop }
] : bass3 ;
####### chord #######
{
0 wave
30 pulse
60 volume
25 release
10 panning
} : init_chord ;
[
{
{} { init_chord } +
{}
{ play [C_5 Ds5 G_5] m_arpeggio }
{ stop }
{}
{ play [C_5 Ds5 G_5] m_arpeggio }
{ stop }
{}
{ play [C_5 Ds5 Gs5] m_arpeggio }
{ stop }
{}
{ play [As4 D_5 F_5] m_arpeggio }
{ stop }
{}
{ play [C_5 Ds5 G_5] m_arpeggio }
{ stop }
{}
{}
{ play [C_5 Ds5 G_5] m_arpeggio }
{ stop }
{}
{ play [C_5 Ds5 G_5] m_arpeggio }
{ stop }
{}
{ play [C_5 Ds5 G_5] m_arpeggio }
{ stop }
{}
{ play [C_5 Ds5 Gs5] m_arpeggio }
{ stop }
{}
{ play [C_5 Ds5 G_5] m_arpeggio }
{ stop }
} 2 *
;;
{ play [C_5 Ds5 As5] m_arpeggio }
{ stop }
] : chord1 ;
[
{
{} { init_chord } +
{}
{ play [As4 Cs5 F_5] m_arpeggio }
{ stop }
{}
{ play [As4 Cs5 F_5] m_arpeggio }
{ stop }
{}
{ play [As4 Cs5 Fs5] m_arpeggio }
{ stop }
{}
{ play [Gs4 C_5 Ds5] m_arpeggio }
{ stop }
{}
{ play [As4 Cs5 F_5] m_arpeggio }
{ stop }
{}
{}
{ play [As4 Cs5 F_5] m_arpeggio }
{ stop }
{}
{ play [As4 Cs5 F_5] m_arpeggio }
{ stop }
{}
{ play [As4 Cs5 F_5] m_arpeggio }
{ stop }
{}
{ play [As4 Cs5 Fs5] m_arpeggio }
{ stop }
{}
{ play [As4 Cs5 F_5] m_arpeggio }
{ stop }
} 2 *
;;
{ play [As4 Cs5 Gs5] m_arpeggio }
{ stop }
] : chord2 ;
[
chord2 ~
{;} 16 *
{{}} 16 *
] : chord3 ;
####### lead #######
{
1 wave
1 pulse
20 decay
70 sustain
-7 panning
30 release
} : init_lead ;
[
{ play [D_5 Ds5 1] m_pitch_slide 100 volume } { init_lead } +
{}
{ D_5 pitch m_none 30 volume }
{ play D_5 pitch 100 volume }
{ [D_5 6 100] m_vibrato }
{ [D_5 0 4] m_pitch_slide }
{ play C_5 pitch m_none }
{ D_5 pitch 30 volume }
{}
{ play Ds5 pitch 100 volume }
{ [Ds5 6 100] m_vibrato }
{ [Ds5 0 2] m_pitch_slide }
{ play D_5 pitch m_none }
{ Ds5 pitch 30 volume }
{ play G_4 pitch 100 volume}
{ D_5 pitch 30 volume }
{ play Ds5 pitch 100 volume }
{ [Ds5 0 2] m_pitch_slide }
{ play D_5 pitch m_none }
{ play C_5 pitch }
{}
{ D_5 pitch 30 volume }
{ play G_4 pitch 100 volume }
{ [G_4 6 100] m_vibrato }
{ [G_4 0 3] m_pitch_slide }
{ play D_5 pitch m_none }
{}
{ G_4 pitch 30 volume }
{ play Ds5 pitch 100 volume }
{ [Ds5 F_5 2] m_pitch_slide }
{ play F_5 pitch m_none }
{ Ds5 pitch 30 volume }
{ play Ds5 pitch 100 volume }
{ play D_5 pitch }
{ play C_5 pitch }
{ play Ds5 pitch }
{ play D_5 pitch }
{ play G_4 pitch }
{ play Ds5 pitch }
{ play D_5 pitch }
{ play C_5 pitch }
{ play Ds5 pitch }
{ play D_5 pitch }
{ play G_4 pitch }
{ play Ds5 pitch }
{ play D_5 pitch }
{ play Ds5 pitch }
{ play F_5 pitch }
{ play [F_5 G_5 3] m_pitch_slide }
{}
{ F_5 pitch 30 volume m_none }
{ play [F_5 G_5 3] m_pitch_slide 100 volume }
{}
{ F_5 pitch 30 volume m_none }
{ play [F_5 G_5 3] m_pitch_slide 100 volume }
{}
{ F_5 pitch 30 volume m_none }
{ play [F_5 G_5 3] m_pitch_slide 100 volume }
{}
{ F_5 pitch 30 volume m_none }
{ play Ds5 pitch 100 volume }
{ G_5 pitch 30 volume }
{ play D_5 pitch 100 volume }
{ Ds5 pitch 30 volume }
] : lead1 ;
[
{ play [C_5 Cs5 1] m_pitch_slide 100 volume } { init_lead } +
{}
{ C_5 pitch m_none 30 volume }
{ play C_5 pitch 100 volume }
{ [C_5 6 100] m_vibrato }
{ [C_5 F_5 8] m_pitch_slide }
{ play F_5 pitch m_none }
{ C_5 pitch 30 volume }
{}
{ play Fs5 pitch 100 volume }
{ [Fs5 6 100] m_vibrato }
{ [Fs5 0 2] m_pitch_slide }
{ play F_5 pitch m_none }
{ Fs5 pitch 30 volume }
{ play Ds5 pitch 100 volume}
{ F_5 pitch 30 volume }
{ play F_5 pitch 100 volume }
{ [F_5 Fs5 2] m_pitch_slide }
{ play Fs5 pitch m_none }
{ play F_5 pitch }
{}
{ Fs5 pitch 30 volume }
{ play Cs5 pitch 100 volume }
{ [Cs5 6 100] m_vibrato }
{ [Cs5 0 3] m_pitch_slide }
{ play C_5 pitch m_none }
{}
{ Cs5 pitch 30 volume }
{ play Cs5 pitch 100 volume }
{ [Cs5 Ds5 2] m_pitch_slide }
{ play Ds5 pitch m_none }
{ Cs5 pitch 30 volume }
{ play F_5 pitch 100 volume }
{ play Cs5 pitch }
{ play C_5 pitch }
{ play F_5 pitch }
{ play Cs5 pitch }
{ play As4 pitch }
{ play F_5 pitch }
{ play Cs5 pitch }
{ play C_5 pitch }
{ play F_5 pitch }
{ play Cs5 pitch }
{ play As4 pitch }
{ play F_5 pitch }
{ play Cs5 pitch }
{ play C_5 pitch }
{ play As4 pitch }
{ play [C_5 Cs5 1] m_pitch_slide }
{}
{ C_5 pitch 30 volume m_none }
{ play [C_5 Cs5 1] m_pitch_slide 100 volume }
{}
{ C_5 pitch 30 volume m_none }
{ play [C_5 Cs5 1] m_pitch_slide 100 volume }
{}
{ C_5 pitch 30 volume m_none }
{ play [C_5 Cs5 1] m_pitch_slide 100 volume }
{}
{ C_5 pitch 30 volume m_none }
{ play C_5 pitch 100 volume }
{ Cs5 pitch 30 volume }
{ play As4 pitch 100 volume }
{ C_5 pitch 30 volume }
] : lead2 ;
[
lead2 ~
{;} 8 *
{ [Cs5 As4 10] m_pitch_slide }
{ [As4 10 100] m_vibrato }
{}
{}
{ stop }
{}
{}
{}
] : lead3 ;
####### echo #######
{
init_lead
15 panning
} : init_echo ;
{
{
`"100 volume"/"50 volume"*~
`"30 volume"/"15 volume"*~
`"init_lead"/"init_echo"*~
} % [{} {}] \ +
} : make_echo ;
lead1 make_echo : echo1 ;
lead2 make_echo : echo2 ;
lead3 make_echo : echo3 ;
####### drum #######
{
[
{ 30 sustain
30 decay
5 release
-5 panning
play
3 wave G_5 pitch }
{ 3 wave C_5 pitch }
{ 0 wave C_3 pitch }
{ 0 wave G_2 pitch }
{ 0 wave E_2 pitch }
{ 0 wave C_2 pitch }
{ 0 wave B_1 pitch }
{ 0 wave A_1 pitch }
{ 0 wave G_1 pitch stop }
{ 3 wave C_6 pitch }
] m_do 100 volume
} : beat ;
{
[
{ 30 sustain
40 decay
19 release
20 panning
play
3 wave C_7 pitch }
{}
{ 0 wave G_3 pitch }
{ 0 wave F_3 pitch }
{ 0 wave E_3 pitch }
{ 0 wave D_3 pitch }
{ 3 wave C_8 pitch }
{ stop }
] m_do 100 volume
} : snare ;
[
{ snare }
{ beat }
{ snare }
{ snare
patterns(;:patterns; # evil hack
pattern_count(:pattern_count;
}
] : drum0 ;
[
{
{
{ beat }
{ beat }
{}
{}
{ snare }
{}
{ beat }
{ beat }
{}
{ beat }
{}
{ beat }
{ snare }
{}
{ beat }
{}
} 2 *
;
{ snare }
} 2 *
{;} 7 *
{ snare }
{}
{ beat }
{ snare }
{}
{ snare }
{ snare }
] : drum1 ;
[
drum1 ~
{;} 16 *
{ beat }
{}
{}
{ beat 50 volume }
{}
{}
{ beat 25 volume }
{}
{}
{ beat 12 volume }
{}
{}
{ snare }
{}
{ snare }
{ snare }
] : drum2 ;
####### patterns #######
[
# [ lead1 echo1 ]
# [ lead2 echo2 ]
# [ lead1 echo1 ]
# [ lead3 echo3 ]
[ bass0 drum0 _ _ _ ]
[ bass1 drum1 chord1 _ _ ]
[ bass2 drum1 chord2 _ _ ]
[ bass1 drum1 chord1 _ _ ]
[ bass3 drum2 chord3 _ _ ]
[ bass1 drum1 chord1 lead1 echo1 ]
[ bass2 drum1 chord2 lead2 echo2 ]
[ bass1 drum1 chord1 lead1 echo1 ]
[ bass3 drum2 chord3 lead3 echo3 ]
] : patterns ;