xxxxxxxxxx
29
 
1
// ctrl/cmd - enter to run the code.
2
​
3
"[120 240]*2".onEvent(e=>glicol.setBPM(e.value))
4
​
5
glicol.play({
6
  "~t1": seq("60 _48 _72 67_67").sp("cb").mul("~p1"),
7
  
8
  "~p1": sig( "[1 0.5 0.1 0.9]".take(1) ),
9
  
10
  o: mix("~t..").plate(0.1)
11
})
12
​
13
// run "glicol.showAllSamples()" in console to see the loaded samples
14
​
15
// This is a combination of Glicol language/audio engine and Strudel/Tidal (mini) patterns.
16
​
17
// Find more on: https://glicol.org
18
​
19
// https://strudel.tidalcycles.org/tutorial
20
​
21
// Source code: https://github.com/glicol/glicol-strudel
22
​
23
// --example-- uncomment the item below to play
24
​
25
// glicol.play({
26
//     "~t1": psampler( "[cb [rm sid] tok*3 talk1]*2".take(1) ).mul(0.2),
27
//     "~t2": psampler( "[bin]*4".take(1)).mul(0.2),
28
//     o: mix("~t1 ~t2").plate(0.1)
29
// })