From b584548ee6fa5d87cb939b9fe5bf940542037ad7 Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Sun, 26 Apr 2009 13:19:18 +0300 Subject: [PATCH] Minor detune bandwidth optimization --- addnote.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addnote.cpp b/addnote.cpp index 5449841..8c98e30 100644 --- a/addnote.cpp +++ b/addnote.cpp @@ -288,11 +288,10 @@ zyn_addnote_create( /* * Get the Multiplier of the fine detunes of the voices */ - note_ptr->bandwidth_detune_multiplier = synth_ptr->detune_bandwidth; note_ptr->bandwidth_detune_multiplier = pow( 2.0, - note_ptr->bandwidth_detune_multiplier * pow(fabs(note_ptr->bandwidth_detune_multiplier), 0.2) * 5.0); + synth_ptr->detune_bandwidth * pow(fabs(synth_ptr->detune_bandwidth), 0.2) * 5.0); note_ptr->note_enabled = false; -- 2.11.4.GIT