zynaddsubfx

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

commit e9b7af5586d9b0294ec9c07c79fc8989b58b0d50
parent 7e13d119cee2ea591aa3e8a4b6262461b188c195
Author: Olivier Jolly <[email protected]>
Date:   Thu,  3 Dec 2015 23:30:28 +0100

Avoid recomputing time independant LFO variables

Diffstat:
Msrc/Synth/LFO.cpp | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/Synth/LFO.cpp b/src/Synth/LFO.cpp @@ -124,6 +124,7 @@ float LFO::baseOut(const char waveShape, const float phase) float LFO::lfoout() { //update internals XXX TODO cleanup + if ( ! lfopars_.time || lfopars_.last_update_timestamp == lfopars_.time->time()) { waveShape = lfopars_.PLFOtype; int stretch = lfopars_.Pstretch;