add effect method names section to agents.md
This commit is contained in:
@@ -99,7 +99,6 @@ agogo(5) anvil(9) balafon(6) balafon_hard(6) balafon_soft(6) ballwhistle(2) bass
|
||||
.gain(0.8) // volume
|
||||
.lpf(800) // low-pass filter
|
||||
.hpf(2000) // high-pass filter
|
||||
.reverb(0.4) // reverb amount
|
||||
.room(0.6) // room reverb
|
||||
.delay(0.25) // delay time
|
||||
.pan(-0.3) // stereo pan (-1 to 1)
|
||||
@@ -110,6 +109,10 @@ agogo(5) anvil(9) balafon(6) balafon_hard(6) balafon_soft(6) ballwhistle(2) bass
|
||||
.pan(sine.range(-0.5, 0.5).slow(6)) // auto-pan
|
||||
```
|
||||
|
||||
## Effect Method Names
|
||||
|
||||
Strudel uses specific method names for effects that differ from some other audio frameworks. Use `.room()` for reverb (not `.reverb()`), `.gain()` for volume, `.delay()` for delay, `.lpf()`/`.hpf()` for filters, and `.pan()` for stereo positioning. If you encounter "is not a function" errors, verify you're using the correct Strudel effect method names from the official documentation.
|
||||
|
||||
#### 9. Time Manipulation
|
||||
```javascript
|
||||
.slow(2) // half speed (2x longer cycles)
|
||||
|
||||
Reference in New Issue
Block a user