diff options
| author | Mick Grierson <mickgrierson@gmail.com> | 2011-11-12 12:13:22 +0000 |
|---|---|---|
| committer | Mick Grierson <mickgrierson@gmail.com> | 2011-11-12 12:13:22 +0000 |
| commit | 86ade20814008c1209b7e78d2e88bdcfc46bc881 (patch) | |
| tree | 276d74e5a2259abbf6ce781ed645cdeae2bd1e31 /maximilian.cpp | |
| parent | 27e1a37935902ec971d5502429c191e3288f0d07 (diff) | |
delay object commit damn you.
Diffstat (limited to 'maximilian.cpp')
| -rw-r--r-- | maximilian.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maximilian.cpp b/maximilian.cpp index be1c081..44a6fb6 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -228,9 +228,9 @@ double maxiDelayline::dl(double input, int size, double feedback) { if ( phase >=size ) { phase = 0; } + output=memory[phase]; memory[phase]=(memory[phase]*feedback)+(input*feedback)*0.5; phase+=1; - output=memory[phase]; return(output); } @@ -238,9 +238,9 @@ double maxiDelayline::dl(double input, int size, double feedback) { double maxiDelayline::dl(double input, int size, double feedback, int position) { if ( phase >=size ) phase = 0; if ( position >=size ) position = 0; + output=memory[position]; memory[phase]=(memory[phase]*feedback)+(input*feedback)*chandiv; phase+=1; - output=memory[position]; return(output); } |
