]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
added MIDI "MUTE" function (key only), updated MIDI documentation
authorc vw <dl1ycf@darc.de>
Fri, 13 Mar 2020 14:34:36 +0000 (15:34 +0100)
committerc vw <dl1ycf@darc.de>
Fri, 13 Mar 2020 14:34:36 +0000 (15:34 +0100)
midi3.c
release/documentation/MIDI-manual.odt
release/documentation/MIDI-manual.pdf

diff --git a/midi3.c b/midi3.c
index 8d930bd7ac608bccdc44353dc0f0041c4f00aef2..776c1ce503c06fe1e9b1180c28fd3ca5ce0e3faa 100644 (file)
--- a/midi3.c
+++ b/midi3.c
@@ -431,7 +431,9 @@ void DoTheMidi(enum MIDIaction action, enum MIDItype type, int val) {
            break;    
         /////////////////////////////////////////////////////////// "MUTE"
         case MIDI_MUTE:
-            g_idle_add(ext_mute_update,NULL);
+            if (type == MIDI_KEY) {
+              g_idle_add(ext_mute_update,NULL);
+           }
             break;
        /////////////////////////////////////////////////////////// "NOISEBLANKER"
        case MIDI_NB: // only key supported
index 9913faa50de91236f04649692883d8321caf49bb..92585bb0e5ad9b5950e92c234cc3cac69961ab90 100644 (file)
Binary files a/release/documentation/MIDI-manual.odt and b/release/documentation/MIDI-manual.odt differ
index 9099a68e068024f8207499f7d12cbc9665dbc59d..7be25e74a19420c96bedc21224efeaf6d9a6d01a 100644 (file)
Binary files a/release/documentation/MIDI-manual.pdf and b/release/documentation/MIDI-manual.pdf differ