44 lines
564 B
Markdown
44 lines
564 B
Markdown
# Words & Sounds
|
|
|
|
Word definitions let you abstract sound design into reusable units.
|
|
|
|
## Defining Sounds
|
|
|
|
```forth
|
|
: lead "saw" snd 0.3 gain 1200 lpf ;
|
|
```
|
|
|
|
Use it with different notes:
|
|
|
|
```forth
|
|
c4 note lead .
|
|
e4 note lead .
|
|
```
|
|
|
|
## Self-Contained Words
|
|
|
|
Include the emit to make the word play directly:
|
|
|
|
```forth
|
|
: kk "kick" snd 1 decay . ;
|
|
: hh "hihat" snd 0.5 gain 0.5 decay . ;
|
|
```
|
|
|
|
Steps become simple:
|
|
|
|
```forth
|
|
kk
|
|
0.5 at hh
|
|
```
|
|
|
|
## Effect Presets
|
|
|
|
```forth
|
|
: dark 800 lpf 0.6 lpq ;
|
|
: wet 0.7 verb 8 verbdiff ;
|
|
```
|
|
|
|
```forth
|
|
c4 note saw snd dark wet .
|
|
```
|