20 lines
462 B
Markdown
20 lines
462 B
Markdown
## midi setting
|
|
|
|
```javascript
|
|
setcps(120/60/2)
|
|
$_: note("c2 |c#2| d2| d#2").fast(4)
|
|
.midi().midichan(1) //drumrack
|
|
|
|
$:stack(
|
|
note("c2").struct("1 0 1 0"),
|
|
note("c#2").struct("0 1 0 1"),
|
|
note("d2").struct("1 1 1 1").fast(2),
|
|
).midi().midichan(1) //drumrack
|
|
|
|
$:stack(
|
|
note("c3 c#3 e3 [f3 e2]"),
|
|
ccv(perlin.segment(16).fast(4)).ccn(2), //filter
|
|
//ccv(sine.segment(16).slow(2)).ccn(3), //gain
|
|
ccv(0.2).ccn(3), //gain
|
|
).midi().midichan(2) //synth
|
|
``` |