Skip to content

Commit

Permalink
add delay
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Mar 29, 2021
1 parent 84de378 commit a355382
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cc
Expand Up @@ -183,6 +183,8 @@ class SoundBlock {
void octaveDown() { octave = wrapping_sub(octave, 8); }
void decayUp() { decay = saturating_add(decay, MAX_DECAY, 20.0, 0); }
void decayDown() { decay = saturating_sub(decay, MAX_DECAY, 20.0, 0); }
void delayUp() { delay = saturating_add(delay, 100.0, 10.0, 0); }
void delayDown() { delay = saturating_sub(delay, 100.0, 10.0, 0); }
void ampUp() { amp = saturating_add(amp, 1.0, 0.1, 0); }
void ampDown() { amp = saturating_sub(amp, 1.0, 0.1, 0); }
void panLeft() { pan = saturating_sub(pan, 1.0); }
Expand Down

0 comments on commit a355382

Please sign in to comment.