summaryrefslogtreecommitdiff
path: root/synth/note_skel.cpp
diff options
context:
space:
mode:
authorFlorian Jung <florian.a.jung@web.de>2012-04-12 22:35:44 +0200
committerFlorian Jung <florian.a.jung@web.de>2012-04-12 22:35:44 +0200
commit2f796b659626569c02dd5016dc3df45000e2b7e2 (patch)
treee014eec75fdf0e0b19041a471c29b39303a18de3 /synth/note_skel.cpp
parent7c875a14b73d844f4f3b8390e4463610262d9415 (diff)
use precalculated phase_increment instead of calculating it every
frame: brings up to 33% speed boost! bugfix: ksr now uses dest_freq instead of (current) freq
Diffstat (limited to 'synth/note_skel.cpp')
-rw-r--r--synth/note_skel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/synth/note_skel.cpp b/synth/note_skel.cpp
index 988f994..f3dd71f 100644
--- a/synth/note_skel.cpp
+++ b/synth/note_skel.cpp
@@ -18,6 +18,8 @@ NoteSkel::~NoteSkel()
void NoteSkel::set_pitchbend(fixed_t pb)
{
pitchbend=pb;
+
+ recalc_actual_freq();
}
void NoteSkel::set_freq(float f)