[SCM] calf/master: + Monosynth: note off retrig fixes + JACK host: fixed crash on multiple MIDI ports

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:37:01 UTC 2013


The following commit has been merged in the master branch:
commit 4c169a23d52fd84dfe9991f5bef24f0ea185ee9a
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date:   Sat Jan 19 14:24:43 2008 +0000

    + Monosynth: note off retrig fixes
    + JACK host: fixed crash on multiple MIDI ports
    
    
    
    git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@114 78b06b96-2940-0410-b7fc-879d825d01d8

diff --git a/src/calf/jackhost.h b/src/calf/jackhost.h
index ba0b360..f0d44fb 100644
--- a/src/calf/jackhost.h
+++ b/src/calf/jackhost.h
@@ -243,10 +243,10 @@ public:
     int process(jack_nframes_t nframes)
     {
         for (int i=0; i<Module::in_count; i++) {
-            module.ins[i] = inputs[i].data = (float *)jack_port_get_buffer(inputs[i].handle, 0);
+            module.ins[i] = inputs[i].data = (float *)jack_port_get_buffer(inputs[i].handle, nframes);
         }
         if (Module::support_midi)
-            midi_port.data = (float *)jack_port_get_buffer(midi_port.handle, 0);
+            midi_port.data = (float *)jack_port_get_buffer(midi_port.handle, nframes);
         if (changed) {
             module.params_changed();
             changed = false;
diff --git a/src/calf/modules_synths.h b/src/calf/modules_synths.h
index 0d191ac..2b1bd4a 100644
--- a/src/calf/modules_synths.h
+++ b/src/calf/modules_synths.h
@@ -88,8 +88,11 @@ public:
                 start_freq = freq;
                 target_freq = freq = 440 * pow(2.0, (note - 69) / 12.0);
                 set_frequency();
-                if (!(legato & 1))
+                if (!(legato & 1)) {
                     envelope.note_on();
+                    stopping = false;
+                    running = true;
+                }
                 return;
             }
             gate = false;

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list