[SCM] calf/master: + Organ: make notes held with sostenuto pedal higher priority (so that a solo doesn't steal voices from sustained chords)
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:38:47 UTC 2013
The following commit has been merged in the master branch:
commit 6b9a0ee512619180d68ef30fa7de437e89794553
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Sun Jan 4 19:18:23 2009 +0000
+ Organ: make notes held with sostenuto pedal higher priority (so that a solo doesn't steal voices from sustained chords)
diff --git a/src/calf/synth.h b/src/calf/synth.h
index 04adb51..157e5c1 100644
--- a/src/calf/synth.h
+++ b/src/calf/synth.h
@@ -123,7 +123,7 @@ public:
virtual void steal()=0;
/// return the note used by this voice
virtual int get_current_note()=0;
- virtual float get_priority() { return stolen ? 20000 : (released ? 1 : 100); }
+ virtual float get_priority() { return stolen ? 20000 : (released ? 1 : (sostenuto ? 200 : 100)); }
/// empty virtual destructor
virtual ~voice() {}
};
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list