forked from frantic0/tidal-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
callandresponse.tidal
642 lines (408 loc) · 13.4 KB
/
callandresponse.tidal
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
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
-- stut / stut'
-- weave
-- smash
-- jux'
-- seqP seqPLoop
-- ur'
d1 $ sound "bd"
-- A TidalCycles workbook
-- Call and Response workshop run by Alex McLean
-- Adapted from work by Lucy Cheesman, Richard Eason, and Alexandra Cardenas
-- CC BY-SA 4.0 - https://creativecommons.org/licenses/by-sa/4.0/
-- Suggestions and edits/patches welcome
-- Make a sound
d1 $ crush "6 4 3 5*2 1 3 2 4" # sound "arpy"
# vowel "a i o"
d2 $ sound "bd [sn sn:2, arpy*3] [cp off newnotes newnotes:3]/1.5 sn:2"
d3 $ sound "{sn sn:2*2 cp, arpy arpy:2}"
d1 $ (pure now) <~ (do {x <- slow (12 * 12) $ run 12; jux ((pure $ x/12) <~) $ sound "cp ! ! ~ cp ! ~ cp ~ cp ! ~"})
d1 $ sound "bd"
# room 0.2
# size 0.5
# speed 4
# orbit 0
d2 $ sound "arpy"
# orbit 1
# delay 0.4
# delaytime 0.4
# delayfeedback 0.9
d1 $ sound "superpiano"
# speed 2
d1 $ sound "superpiano" # speed 2
d1 $ sound "bd*13"
# pan saw
d1 $ sound "arpy*3" # speed "2 1 2 1 4 1"
d1 $ sound "superpiano"
# speed 2
d1 $ sound "superpiano"
# speed 2
# speed (saw + 0.5)
d2 $ sound "bd*3"
http://192.168.1.91:8000/index8.html
gabba
hush
now
cps (1)
hush
-- Stop making a sound
v $ fast 4 "{orange grey purple, blue red}"
d1 $ silence
-- Make a different sound
d1 $ sound "drum:1"
-- Where are these sounds coming from?
-- In SuperCollider ..
-- File > Open user support directory > downloaded-quarks > Dirt-Samples
-- Make a step sequence
cps 0.8
d1 $ sound "bd mt cp lt bd bd bd bd"
d2 $ sound "arpy arpy arpy"
d1 silence
-- Add rests
d1 $ sound "bd ~ sn:2 ~ ~ bd sn:2 ~"
-- You're changing a cycle with a fixed duration -- the longer the
-- sequence, the faster it runs
d1 $ sound "bd ~ sn:2 ~ ~ bd sn:2 ~ bd bd bd bd bd bd bd bd"
-- Play more than one cycle at once with d1 .. d9
d2 $ sound "~ arpy:3"
-- Change the fixed cycle duration with cps
cps (120/60)
-- Pause the clock
cps (-1)
-- Silence everything (keep the clock running)
hush
-- Sample number as a separate parameter with n
-- * these are the same
d1 $ sound "arpy:0 arpy:1 arpy:2 arpy:3"
d1 $ sound "arpy" # n "0 1 2 3"
-- Order matters -- patterns of sound vs patterns of n.
-- e.g. you don't need the *4 on the above if you put n first
d1 $ n "0 1 2 3" # sound "arpy drum"
-- Combining with |+|, |*| etc instead of #
-- * # replaces
d1 $ n "0 1 2 3" |=| sound "arpy"
d1 $ speed "0 0 0 0" # sound "arpy"
# speed (slow 4 sine)
-- * but |+| adds
d1 $ n "0 1 2 3" # sound "arpy"
|+| n "0 7"
-- * a preview of slow..
d1 $ n "0 1 2 3" # sound "arpy"
|+| n (slow 2 "0 7")
-- More parameters
d1 $ sound "bd sn"
# n "1 2 3"
-- * vowel
d1 $ vowel "a e i o" # sound "arpy"
-- * gain
d1 $ gain "1 0.5 1 0.75" # sound "arpy"
-- * crush - bitcrush distortion
d1 $ (fast 0.5 (crush ("3 4 5 6 7 8"))) # sound "arpy"
-- How things align - the start of events in the pattern on the left are matched with the timespan on the right
d1 $ sound "drum drum arpy arpy"
# n "0 1 4 3"
d1 $ sound "drum drum drum arpy arpy"
# n "0 1 4 3"
d1 $ sound "drum drum arpy arpy"
# n "0 1 4"
-- * speed / up
d1 $ sound "drum drum arpy arpy"
# speed "1 0.5 2"
-- Continuous patterns - sine, saw, tri, rand / choose
-- * sine
d1 $ sound "drum drum drum drum drum drum drum drum"
# gain (fast 2 (sine + 0.5))
# bpf 1000
# bpq 1
hush
scale a b p
slow a p
-- * this doesn't work!
d1 $ sound "drum drum drum drum drum drum drum drum"
# gain (0.25 + sine)
-- * rand
d1 $ sound "drum drum drum drum drum drum drum drum"
# gain (rand + 0.25)
-- * choose
d1 $ sound "drum drum drum drum drum drum drum drum"
# speed (choose [0.5, 2, 4])
-- More parameters
-- * accelerate
d1 $ sound "drum drum arpy arpy"
# accelerate "1 0.5 2"
-- * lpf / lpq
d1 $ sound "drum drum arpy arpy"
# lpf 1000
# lpq 0.3
-- (double quotes aren't strictly necessary for single numbers)
d1 $ sound "drum ~ drum drum:2 arpy ~ arpy:3 ~"
# lpf (sine * 4000 + 500)
# lpq (slow 4 (sine * 0.3))
-- * hpf / hpq
-- Subpatterns
-- * Fit a subsequence into a step with square brackets:
d1 $ slow 2 $ sound "bd [bd [bd cp] arpy] bd bd"
cps 0.5
d1 $ sound "bd? [cp? lt?] [~ bd?]"
d2 $ sound "arpy [arpy arpy:2]"
-- * This can make for flexible time signatures:
d1 $ sound "[bd bd sn:5] [bd sn:3]"
-- * You can put subsequences inside subsequences:
d1 $ sound "[[bd bd] bd sn:5] [bd sn:3]"
-- * Keep going..
d1 $ sound "[[bd [bd bd bd bd]] bd sn:5] [bd sn:3]"
-- Polymetric / polyrhythmic sequences
-- * Play two subsequences at once by separating with a comma:
d1 $ sound "[voodoo voodoo:3 [voodoo:2 voodoo:8] voodoo:1, arpy arpy:4 arpy:2]"
# crush "3 4"
d1 $ sound "~ [sn mt, arpy:2 arpy:4 arpy] ~"
v $ "yellow [red blue, [green [tomato black] purple] orange grey] lightblue"
cps 0.5
cps (-1)
http://192.168.1.77/edit.html
d1 $ up "0 7 12" # sound "arpy"
voodoo voodooo:3
arpy arpy:4 arpy:2
-- * compare how [,] and {,} work:
d1 $ jux rev $ sound "{drum drum:2 [~ mt] bd*3, arpy:1 [~ arpy:2] arpy:1}"
# gain 1.2
d1 $ jux rev $ chop "<32 64 8>" $ sound "bd sn:2"
# gain 1.1
d1 $ jux rev $ loopAt 8 $ chop "<32 64>" $
d1 $ jux rev $ loopAt "<16 8 4>" $ chop 16 $ sound "bev"
d1 $ sound "{voodoo voodoo:3, arpy arpy:4 arpy:2}"
d1 $ sound "[drum bd hh bd, can can:2 can:3 can:4 can:2]"
d1 $ sound "{drum bd hh bd, can can:2 can:3 can:4 can:2}"
d1 $ sound "[bd sn, can:2 can:3 can:1, arpy arpy:1 arpy:2 arpy:3 arpy:5]"
d1 $ sound "{bd sn, can:2 can:3 can:1, arpy arpy:1 arpy:2 arpy:3 arpy:5}"
-- * one per cycle with <>
d1 $ sound "cp <arpy:1 arpy:2 arpy:3>"
-- * elongation with _
d1 $ sound "[bd mt ht] _ [bd mt ht]"
-- * faster with *, slower with /
d1 $ sound "bd*4 cp*3 arpy/2"
-- * Euclidian patterns
d1 $ sound "bd(<3 5>,8)"
# gain 1.4
d1 $ sound "[bd sn:2 arpy]/2 [sn:4 bd]"
# gain 1.3
d2 $ sound "[bd sn] [sn:1 bd sn] _"
# gain 1.3
v $ "[red blue green] [orange purple black] _"
d1 $ jux rev $ off 0.25 (|+| n "12") $ off (1/8) (|+| n "7")
$ slow 2 $ n "c(3,8) e(3,8) g(3,8) f5" # sound "superpiano"
# legato 4
d1 $ jux rev $
n (off 0.125 (+12) $ off 0.125 (+ 7) $ slow 2 $ "c7(3,8) a7*2 f7(3,8) e7(3,8,2)") # sound "rash"
hush
-- ** (2,5) : A thirteenth century Persian rhythm called Khafif-e-ramal.
-- ** (3,4) : The archetypal pattern of the Cumbia from Colombia, as well as a Calypso rhythm from Trinidad.
-- ** (3,5,2) : Another thirteenth century Persian rhythm by the name of Khafif-e-ramal, as well as a Rumanian folk-dance rhythm.
-- ** (3,7) : A Ruchenitza rhythm used in a Bulgarian folk-dance.
-- ** (3,8) : The Cuban tresillo pattern.
-- ** (4,7) : Another Ruchenitza Bulgarian folk-dance rhythm.
-- ** (4,9) : The Aksak rhythm of Turkey.
-- ** (4,11) : The metric pattern used by Frank Zappa in his piece titled Outside Now.
-- ** (5,6) : Yields the York-Samai pattern, a popular Arab rhythm.
-- ** (5,7) : The Nawakhat pattern, another popular Arab rhythm.
-- ** (5,8) : The Cuban cinquillo pattern.
-- ** (5,9) : A popular Arab rhythm called Agsag-Samai.
-- ** (5,11) : The metric pattern used by Moussorgsky in Pictures at an Exhibition.
-- ** (5,12) : The Venda clapping pattern of a South African children’s song.
-- ** (5,16) : The Bossa-Nova rhythm necklace of Brazil.
-- ** (7,8) : A typical rhythm played on the Bendir (frame drum).
-- ** (7,12) : A common West African bell pattern.
-- ** -- ** (7,16,14) : A Samba rhythm necklace from Brazil.
-- ** (9,16) : A rhythm necklace used in the Central African Republic.
-- ** (11,24,14) : A rhythm necklace of the Aka Pygmies of Central Africa.
-- ** (13,24,5) : Another rhythm necklace of the Aka Pygmies of the upper Sangha.
-- Transformations A
-- * fast (density)
-- * slow (sparsity)
-- 'Higher order' transformations that take another transoformation
-- * every
-- * sometimes / rarely / often
-- * someCycles
-- * jux
d1 $ every 4 (fast 2) $ sound "bd [~ lt] <ht bd> lt:3"
d1 $ every 4 (0.25 <~) (sound "bd [~ lt] <ht bd> lt:3")
d1 $ every 3 (0.125 <~) $ every 4 (0.25 <~) (sound "bd [~ lt] <ht bd> lt:3")
d1 $ jux rev $ every 4 (chop 4) $ every 3 (# speed "2") (sound "bd [~ lt] <ht bd> lt:3")
d1 $ sometimes (# crush 2) (sound "bd sn cp sn:2")
d1 $ someCycles (crush "2 4*3" #) (sound "bd sn cp sn:2")
d1 $ every 3 (crush "2 4*3" #) (sound "bd sn cp sn:2")
d1 $ someCycles (fast 2) (sound "bd sn cp sn:2")
d1 $ gap 4 $ slow 2 $ n "c5(3,8) ~ a5 ~" # sound "superzow"
# orbit 2
# gain 0.9
# lpf 400
d1 $ jux ((# speed 0.5) . fast 3) $ sound "bd sn"
d2 $ every 3 ((|*| speed 0.5) . fast 0.5)
$ loopAt 2 $ chop 8 $ sound "breaks165"
-- More transformations
-- * rev
-- * beat rotation with <~ and ~>
-- * chop / striate
-- * iter
-- * linger
-- * degrade / degradeBy
-- * stut
-- * weave
-- Patterning parameters - directly and with spread
-- Transitions
-- * anticipate
-- * xfade
-- * ...
-- Composing
-- * stack
-- * seqP / seqPLoop
-- * ur'
-- Synths
-- * sc-plugins
-- Midi
-- Multichannel and multitrack
v (fast 12 $ superimpose (iter 4) "white lightblue blue darkblue")
d1 $ jux (iter 4) $ n "0 .. 7" # sound "arpy"
d1 $ someCycles (linger 0.25) $ n "0 .. 7" # sound "amencutup"
# speed 2
d1 $ someCyclesBy 0.5 (# speed 2) $ sound "arpy arpy:2"
d1 $ someCycles (fast 2) $ n "0 .. 3" # sound "amencutup"
# speed 1.5
d1 $ sometimesBy 0.5 (# speed 2) $ sound "arpy*4"
d2 $ sound "bd"
a b c d
b c d a
c d a b
d a b c
a b c d
cps 1
cps (-1)
d1 $ density 4
$ whenmod 8 4 (|-| n "[-2 -7]/4")
$ foldEvery [5,7] (|+| n "-12")
$ stut 4 0.5 0.75
$ n (toScale [0, 2, 4, 7, 9] "[0 4, 1 5, 2 2, 3 8]")
# s "supermandolin"
# sustain (slow 2 $ scale 1 2 sine)
d1 $ jux rev $ chop "<4 2 8 32>" $ sound "arpy sn:3 bd sn:2"
cps 0.3
d1 $ sound "bd"
d1 $ jux rev $ loopAt 1 $ striate "8" $ sound "arpy <arpy:9 arpy:6>"
d1 $ chunk 4 (0.25 <~) $ sound "bd sn:2 mt ~ ht lt cp lt"
# speed 1.5
d1 $ degrade $ slow 2 $ jux rev $ sometimes (|+| n 12) $
off "<0.25 0.125 0.5>" (# (s "supermandolin" # legato 2))
$ chunk 4 (fast 2) $ off 0.25 (|+| n 12) $ (chunk 4 (fast 2 . (# speed 2))
$ sound "superpiano(3,8)")
# bpf 6000
# hpq 0.1
|+| n "<[0 12] <2 5> [12 7] 3>"
|+| n "-24"
# vowel "<a i o>"
# gain 1.2
d1 $ slow 2 $ off 0.25 (hurry 0.5) $ jux rev $ slow 2 $ n (off 0.125 (+12) $ off 0.25 (+ 7) $ degradeBy 0.7 "c8(3,8) [~ e8*2] f8(3,8) g8(3,8)") # sound "rash"
# hpf 2000
# hpq 0.4
# orbit 2
# gain 0.8
degrade $ jux rev $ slow 4 $ off 0.125 (# crush 5) $ every 2 (gap 16) $ sound "<casio:1 casio:1 casio:0>(5,16)"
# hpf 3000
# hpq 0.1
# orbit 2
# speed "[1,1.01]"
|*| up "<0 [5 7] 12>"
d1 $ cat [sound "bd sn*4",
sound "arpy(3,8)"
]
# speed 2
d1 $ "<0 0.25 0.5>" <~ (sound "bd sn:2 mt ~ ht lt cp lt")
cps (-1)
cps 0.5
d1 $ stut' 8 0.125 (|*| speed "<2 1.5>") $ sound "sn:1 bd"
Mike's stut tutorial
https://www.youtube.com/watch?v=QaLCJ_F5oDA&list=PLKgxw7RG3hcRHyBFsPr5opr1iu8wbNIgP&index=10
d1 $
d1 $ sound "moog ~ ~ ~ ~ ~"
# legato 1
let gerald = jux rev $ sound "sn:2 bd(3,8)"
susan = sound "bd arpy(3,8)" # crush 5
in
do now <- getNow
d1 $ rotR now $ seqP
[(0, 4, gerald),
(2, 6, susan),
(5, 7, gerald # crush 4)
]
let patterns = [("simplebd", sound "bd(3,8)"),
("tune", up "0 7 12 2" # sound "arpy"),
("sandwich", chop 8 (sound "sn:2"))
]
txs = [("crash",
degrade . (# speed (rev $ saw + 1))
),
("change",
rev . chop 8
),
("in",
unDegradeBy (saw1)
),
("out",
degradeBy (saw1)
),
("higher", (# speed 2))
]
in
d1 $ ur' 16 "[simplebd simplebd:change, ~ tune] [sandwich sandwich:higher]" patterns txs
now <- getNow
t1 (xfadeIn 8) $ sound "newnotes:3(5,8)"
t1 anticipate (sound "bd(3,8)")
hush
d1 $ slow 8 $ (loopAt 8 $ jux rev $ striate' 32 (1/32) $ sound "bev*8")
# gain 1
|+| pan (slow 8 saw)
# orbit 2
# lpf (sine * 2000 + 100)
# lpq 0.3
cps (-1)
cps 0.9
d1 $ off 0.25 (# crush 4) $ chunk 4 (fast 2) $ every 4 (# vowel "o") $ jux (rev) $ iter 4 $ slow 2
$ off 0.25 (# speed "<2 1.5>") $ sound "bd*2 ~ [~ can] sn:2 ~ bd sn:2 ht"
# gain 0.9
|*| speed 2
d2 $ degradeBy 0.7 $ off 0.25 (# (sound "superpiano" # gain 0.5)) $ sometimes (|+| n "-24")
$ n (off 0.125 (+12) $ slow 2 $ off 0.125 (+7) (slow "<2 1>" "c*2 e(3,8,2) a(3,8) f*2")) # sound "supermandolin"
# legato (slow 4 (scale 1 2 saw))
# lpf (scale 2000 3000 sine)
# lpq 0.3
# pan saw
d3 $ every 2 (# speed 2) $ jux rev $ sound "{bd*2 bd:2(3,8) future cp, ~ ~ [casio casio?]}"
# orbit 1
# room (slow 8 saw * 0.5)
d4 $ (chop 32 $ sound "[bd sd, hh*8, future(3,8)]")
# nudge (slow 4 sine)
d4 $ sound "[bd sd, hh*8, future(3,8)]"
# nudge "[0 0.02]*4"
hush
d2 $ every 2 (# vowel "o") (sound "bd sn" # n "0 2 3")
import Sound.Tidal.Scales
(toScale major (choose [0, 2, 3, 4, 5, 6, 7, 9]))
d3 $ jux (rev) $ n (off 0.25 (+7) $ toScale majPent ("0 2*2 [~ 3] 5" + "<0 -3 2 1>"))
# sound "supermandolin"
# legato 4
d1 $ weave 16 (pan saw)
[sound "bd*4",
sound "arpy*3",
sound "sn:2*2",
sound "h(3,8)"
]
d2 $ jux rev $ weave 16 (n "0 .. 7" # sound "arpy")
[
vowel "a e i",
vowel "i o",
speed "1 2",
crush "2 [3 6]"
]
d3 $ jux rev $ smash 4 [1,0.5,3,4] $ brak $ sound "bd*3 [bd*4 bd*8]"
# speed "1 2 3"
d1 $ slowspread (density) [2,3,4] $ sound "bd sn:2"
d1 $ fast "<2 [3 8] 4>" $ sound "bd sn:2"
d3 silence