mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-27 13:38:40 +00:00
add adsr section to effects chapter
This commit is contained in:
parent
39d5955e58
commit
8b7bb7b6ae
@ -4,6 +4,7 @@ layout: ../../layouts/MainLayout.astro
|
|||||||
---
|
---
|
||||||
|
|
||||||
import { MiniRepl } from '../../docs/MiniRepl';
|
import { MiniRepl } from '../../docs/MiniRepl';
|
||||||
|
import QA from '@components/QA';
|
||||||
|
|
||||||
# First Effects
|
# First Effects
|
||||||
|
|
||||||
@ -105,6 +106,54 @@ The 3 parts (drums, bassline, chords) are exactly as earlier, just stacked toget
|
|||||||
|
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
|
**adsr envelope**
|
||||||
|
|
||||||
|
<MiniRepl
|
||||||
|
hideHeader
|
||||||
|
client:load
|
||||||
|
tune={`note("<c3 bb2 f3 eb3>")
|
||||||
|
.sound("sawtooth").lpf(600)
|
||||||
|
.attack(.1)
|
||||||
|
.decay(.1)
|
||||||
|
.sustain(.25)
|
||||||
|
.release(.2)`}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Box>
|
||||||
|
|
||||||
|
Try to find out what the numbers do.. Compare the following
|
||||||
|
|
||||||
|
- attack: `.5` vs `0`
|
||||||
|
- decay: `.5` vs `0`
|
||||||
|
- sustain: `1` vs `.25` vs `0`
|
||||||
|
- release: `0` vs `.5` vs `1`
|
||||||
|
|
||||||
|
Can you guess what they do?
|
||||||
|
|
||||||
|
</Box>
|
||||||
|
|
||||||
|
<QA q="Click to see solution" client:visible>
|
||||||
|
|
||||||
|
- attack: time it takes to fade in
|
||||||
|
- decay: time it takes to fade to sustain
|
||||||
|
- sustain: level after decay
|
||||||
|
- release: time it takes to fade out after note is finished
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
</QA>
|
||||||
|
|
||||||
|
**adsr short notation**
|
||||||
|
|
||||||
|
<MiniRepl
|
||||||
|
hideHeader
|
||||||
|
client:load
|
||||||
|
tune={`note("<c3 bb2 f3 eb3>")
|
||||||
|
.sound("sawtooth").lpf(600)
|
||||||
|
.adsr(".1:.1:.5:.2")
|
||||||
|
`}
|
||||||
|
/>
|
||||||
|
|
||||||
**delay**
|
**delay**
|
||||||
|
|
||||||
<MiniRepl
|
<MiniRepl
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user