zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit e6bc35ff98e3f430a4d091aae8f059b7925179f3
parent 50cf0f41c9c27971223aafca88603db2a1aec91d
Author: Paul Nasca <zynaddsubfx_AT_yahoo com>
Date:   Tue, 17 Aug 2010 20:24:33 +0300

Bugfix extra "for" in adsynth

Diffstat:
Msrc/Synth/ADnote.cpp | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/Synth/ADnote.cpp b/src/Synth/ADnote.cpp @@ -1248,9 +1248,7 @@ inline void ADnote::ComputeVoiceOscillatorRingModulation(int nvoice) i, SOUND_BUFFER_SIZE); int FMVoice = NoteVoicePar[nvoice].FMVoice; - for(i = 0; i < SOUND_BUFFER_SIZE; i++) - tw[i] *= - (1.0 - amp) + amp * NoteVoicePar[FMVoice].VoiceOut[i]; + tw[i] *= (1.0 - amp) + amp * NoteVoicePar[FMVoice].VoiceOut[i]; } } }