notebook/strudel/wavetable code.md
2025-11-27 16:35:59 +09:00

26 lines
786 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### srumのwavetableも可能
1. serumからwavetableを単一サイクルでエキスポート
2. フォルダwt_xxxxxxごとstrudelにインポート
3. フォルダ名を指定して利用nはtable index
```javascript
setcps(120/60/2)
samples('github:bubobubobubobubo/dough-waveforms')
$:sound("[sbd - sbd -]").dec(0.2).gain(0.5).fast("<1 2 4 1>")
$:note("c2*8"
).s("<wt_hwwave wt_11 wt_05>".slow(2))
.n(run(8).add("<0 8 16 4 32>"))
.dec(0.5)
.fm(sine.range(1,2.5).slow(8)).fmh(4)
//.fmdecay(.7)
//.fmattack(.1)
//.fmenv("exp")
// .someCycles(x=>x.transpose("5"))
// .sometimes(x=>x.transpose("-2"))
.lpf(perlin.range(100,1200).seg(12).slow(8))
.lpq("<0 10>")
.lpenv(-3).lpa(.1).room(.5)
.scope({pos:0.5})
```