summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Glover <j@johnglover.net>2012-07-08 18:48:11 +0200
committerJohn Glover <j@johnglover.net>2012-07-08 18:48:11 +0200
commitdeadc91509c507168fbd47999fed0d7c9ea693b9 (patch)
treec662f746a788e97709bc7f9d1046db9c1fdd7e7a
parent1ece49f339453d45c614efa450f49348ff8f9372 (diff)
downloadsimpl-deadc91509c507168fbd47999fed0d7c9ea693b9.tar.gz
simpl-deadc91509c507168fbd47999fed0d7c9ea693b9.tar.bz2
simpl-deadc91509c507168fbd47999fed0d7c9ea693b9.zip
[residual] Bug fix: use hop size rather than frame
size in synth_frame.
-rw-r--r--src/simpl/residual.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/simpl/residual.cpp b/src/simpl/residual.cpp
index 5d3cb14..5b8b8be 100644
--- a/src/simpl/residual.cpp
+++ b/src/simpl/residual.cpp
@@ -134,10 +134,10 @@ void SMSResidual::residual_frame(int synth_size, sample* synth,
// Calculate and return one frame of the synthesised residual signal
void SMSResidual::synth_frame(Frame* frame) {
- residual_frame(frame->size(), frame->synth(),
- frame->size(), frame->audio(),
- frame->size(), frame->residual());
- sms_approxResidual(frame->size(), frame->residual(),
- frame->size(), frame->synth_residual(),
+ residual_frame(_hop_size, frame->synth(),
+ _hop_size, frame->audio(),
+ _hop_size, frame->residual());
+ sms_approxResidual(_hop_size, frame->residual(),
+ _hop_size, frame->synth_residual(),
&_residual_params);
}