Browse Source

Add MIDI-TRIG panel, add sysex, time, and sense flags to MidiInput

tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
19f95f6f97
5 changed files with 400 additions and 1 deletions
  1. +4
    -0
      include/midi.hpp
  2. +391
    -0
      res/Core/MIDITriggerToCVInterface.svg
  3. +3
    -0
      src/Core/MIDIToCVInterface.cpp
  4. +1
    -1
      src/Core/MIDITriggerToCVInterface.cpp
  5. +1
    -0
      src/midi.cpp

+ 4
- 0
include/midi.hpp View File

@@ -61,6 +61,10 @@ struct MidiIO {

struct MidiInput : MidiIO {
RtMidiIn *rtMidiIn = NULL;
/** These flags must be set before the driver and device is set */
bool enableSysEx = false;
bool enableTime = false;
bool enableSense = false;
MidiInput();
void setDriver(int driver) override;
virtual void onMessage(const MidiMessage &message) {}


+ 391
- 0
res/Core/MIDITriggerToCVInterface.svg View File

@@ -0,0 +1,391 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="50.800003mm"
height="128.4993mm"
viewBox="0 0 50.800003 128.4993"
version="1.1"
id="svg17475"
inkscape:version="0.92.2 5c3e80d, 2017-08-06"
sodipodi:docname="MIDITriggerToCVInterface.svg">
<defs
id="defs17469" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.979899"
inkscape:cx="219.75398"
inkscape:cy="223.67913"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1274"
inkscape:window-height="1434"
inkscape:window-x="1280"
inkscape:window-y="0"
inkscape:window-maximized="0" />
<metadata
id="metadata17472">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-65.314286,-40.738445)">
<path
inkscape:connector-curvature="0"
id="path6952"
d="M 65.407983,40.830774 H 116.02059 V 169.14405 H 65.407983 Z m 0,0"
style="fill:#e6e6e6;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path6954"
d="M 116.11429,40.738445 H 65.314286 V 169.23775 h 50.800004 z m -0.1874,128.311895 H 65.501717 V 40.924483 h 50.425173 z m 0,0"
style="fill:#ababab;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path10954"
d="m 87.960961,165.09537 c -0.115747,0 -0.223238,-0.0661 -0.27559,-0.17088 l -1.001854,-2.00504 c -0.07578,-0.15297 -0.01517,-0.33762 0.13783,-0.41341 0.151554,-0.0772 0.337609,-0.0152 0.413385,0.1378 l 0.726229,1.45246 0.727604,-1.45246 c 0.07581,-0.15296 0.260456,-0.21497 0.41342,-0.1378 0.151589,0.0758 0.213607,0.26044 0.137795,0.41341 l -1.001818,2.00504 c -0.05239,0.10474 -0.159844,0.17088 -0.277001,0.17088"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path10956"
d="m 93.467609,165.09537 c -0.117121,0 -0.224613,-0.0661 -0.27559,-0.17088 l -1.003229,-2.00504 c -0.07578,-0.15297 -0.01376,-0.33762 0.137795,-0.41341 0.152964,-0.0772 0.337643,-0.0152 0.414796,0.1378 l 0.726228,1.45246 0.726228,-1.45246 c 0.07578,-0.15296 0.261832,-0.21497 0.413422,-0.1378 0.152964,0.0758 0.214948,0.26044 0.137795,0.41341 l -1.001818,2.00504 c -0.05239,0.10474 -0.158504,0.17088 -0.275627,0.17088"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path10958"
d="m 90.864498,165.09537 c -0.723477,0 -1.31191,-0.58842 -1.31191,-1.31189 0,-0.72209 0.588433,-1.31052 1.31191,-1.31052 0.285256,0 0.558095,0.091 0.785495,0.26183 0.136419,0.10335 0.16397,0.29628 0.06198,0.43271 -0.101953,0.13642 -0.294887,0.16398 -0.431306,0.0606 -0.121285,-0.0896 -0.264583,-0.13918 -0.416172,-0.13918 -0.383081,0 -0.694549,0.31282 -0.694549,0.69453 0,0.38309 0.311468,0.69453 0.694549,0.69453 0.151589,0 0.294887,-0.0482 0.416172,-0.13918 0.136419,-0.10198 0.329353,-0.0744 0.431306,0.062 0.101987,0.13643 0.07444,0.32935 -0.06198,0.43132 -0.2274,0.17226 -0.500239,0.26321 -0.785495,0.26321"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path10960"
d="m 91.284798,163.76832 c 0,0.22186 -0.179141,0.40101 -0.401003,0.40101 -0.221862,0 -0.401002,-0.17915 -0.401002,-0.40101 0,-0.22186 0.17914,-0.40101 0.401002,-0.40101 0.221862,0 0.401003,0.17915 0.401003,0.40101"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.35277775"
d="m 80.076342,50.010824 c 0,0.176389 0.137795,0.319705 0.314184,0.319705 0.176389,0 0.319723,-0.143316 0.319723,-0.319705 v -1.471743 l 0.56776,0.865407 c 0.06615,0.104732 0.148802,0.165364 0.270087,0.165364 0.115746,0 0.203941,-0.06063 0.270087,-0.165364 l 0.573263,-0.881945 V 49.9998 c 0,0.181903 0.143334,0.330729 0.319723,0.330729 0.181892,0 0.32519,-0.148826 0.32519,-0.330729 v -2.353687 c 0,-0.181903 -0.143298,-0.325219 -0.32519,-0.325219 h -0.07168 c -0.132291,0 -0.225989,0.05512 -0.292135,0.165364 l -0.793755,1.289844 -0.788246,-1.28433 c -0.0551,-0.09922 -0.154341,-0.170878 -0.292136,-0.170878 h -0.07165 c -0.181892,0 -0.325226,0.143316 -0.325226,0.325219 z m 0,0"
id="path16797" />
<path
inkscape:connector-curvature="0"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.35277775"
d="m 83.822066,49.9998 c 0,0.181903 0.143298,0.330729 0.325191,0.330729 0.181927,0 0.325226,-0.148826 0.325226,-0.330729 v -2.359201 c 0,-0.1819 -0.143299,-0.325216 -0.325226,-0.325216 -0.181893,0 -0.325191,0.143316 -0.325191,0.325216 z m 0,0"
id="path16793" />
<path
inkscape:connector-curvature="0"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.35277775"
d="m 85.251169,49.977751 c 0,0.181903 0.143333,0.325219 0.325226,0.325219 h 0.82684 c 0.931545,0 1.576458,-0.650434 1.576458,-1.48277 v -0.0055 c 0,-0.837848 -0.644913,-1.477258 -1.576458,-1.477258 h -0.82684 c -0.181893,0 -0.325226,0.148827 -0.325226,0.33073 z m 0.650451,-0.264583 v -1.785937 h 0.501615 c 0.53467,0 0.892951,0.369316 0.892951,0.892969 v 0.01101 c 0,0.523656 -0.358281,0.881944 -0.892951,0.881944 z m 0,0"
id="path16785" />
<path
inkscape:connector-curvature="0"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.35277775"
d="m 88.597689,49.9998 c 0,0.181903 0.143299,0.330729 0.325191,0.330729 0.181927,0 0.325226,-0.148826 0.325226,-0.330729 v -2.359201 c 0,-0.1819 -0.143299,-0.325216 -0.325226,-0.325216 -0.181892,0 -0.325191,0.143316 -0.325191,0.325216 z m 0,0"
id="path16789" />
<path
inkscape:connector-curvature="0"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.35277775"
d="m 90.209496,49.299758 h 0.733142 c 0.170851,0 0.314184,-0.137805 0.314184,-0.30868 0,-0.170878 -0.143333,-0.308681 -0.314184,-0.308681 h -0.733142 c -0.170851,0 -0.308681,0.137803 -0.308681,0.308681 0,0.170875 0.13783,0.30868 0.308681,0.30868 z m 0,0"
id="path16781" />
<path
inkscape:connector-curvature="0"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.35277775"
d="m 92.214436,49.9998 c 0,0.181903 0.143299,0.330729 0.325192,0.330729 0.181927,0 0.325226,-0.148826 0.325226,-0.330729 v -2.061545 h 0.628404 c 0.165346,0 0.297637,-0.132292 0.297637,-0.297656 0,-0.165365 -0.132291,-0.303167 -0.297637,-0.303167 h -1.907223 c -0.165347,0 -0.297639,0.137802 -0.297639,0.303167 0,0.165364 0.132292,0.297656 0.297639,0.297656 h 0.628401 z m 0,0"
id="path16777" />
<path
inkscape:connector-curvature="0"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.35277775"
d="m 94.253776,49.9998 c 0,0.181903 0.143333,0.330729 0.325226,0.330729 0.18189,0 0.325226,-0.148826 0.325226,-0.330729 v -0.64492 h 0.518123 l 0.633907,0.804774 c 0.07719,0.09922 0.17639,0.170875 0.325226,0.170875 0.154339,0 0.308681,-0.121267 0.308681,-0.303166 0,-0.09922 -0.0441,-0.170879 -0.10474,-0.248049 l -0.45198,-0.551215 c 0.358283,-0.148827 0.589775,-0.435458 0.589775,-0.903993 v -0.0055 c 0,-0.281122 -0.08819,-0.512632 -0.253543,-0.677997 -0.192934,-0.192927 -0.485068,-0.30317 -0.865399,-0.30317 h -1.025276 c -0.181893,0 -0.325226,0.148827 -0.325226,0.330729 z m 0.650452,-1.218184 v -0.854385 h 0.644911 c 0.319722,0 0.512622,0.143316 0.512622,0.424437 v 0.0055 c 0,0.253559 -0.181893,0.424438 -0.496075,0.424438 z m 0,0"
id="path16773" />
<path
inkscape:connector-curvature="0"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.35277775"
d="m 97.384818,49.9998 c 0,0.181903 0.143298,0.330729 0.325192,0.330729 0.181927,0 0.325225,-0.148826 0.325225,-0.330729 v -2.359201 c 0,-0.1819 -0.143298,-0.325216 -0.325225,-0.325216 -0.181894,0 -0.325192,0.143316 -0.325192,0.325216 z m 0,0"
id="path16765" />
<path
inkscape:connector-curvature="0"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.35277775"
d="m 100.21022,50.352578 c 0.44647,0 0.79925,-0.148826 1.03628,-0.297656 0.15984,-0.08819 0.23149,-0.220486 0.23149,-0.41341 v -0.71658 c 0,-0.181903 -0.1433,-0.330729 -0.32519,-0.330729 h -0.74415 c -0.15984,0 -0.28663,0.132292 -0.28663,0.286632 0,0.15434 0.12679,0.281118 0.28663,0.281118 h 0.44098 v 0.418923 c -0.16539,0.121268 -0.38033,0.181903 -0.61737,0.181903 -0.523659,0 -0.898484,-0.396875 -0.898484,-0.942579 v -0.0055 c 0,-0.507119 0.380328,-0.926042 0.854394,-0.926042 0.27559,0 0.46852,0.07717 0.64491,0.203948 0.0496,0.03305 0.10474,0.06615 0.19844,0.06615 0.18189,0 0.32522,-0.143316 0.32522,-0.319705 0,-0.126778 -0.0717,-0.214972 -0.13779,-0.264583 -0.26459,-0.1819 -0.56226,-0.286632 -1.00873,-0.286632 -0.898494,0 -1.554449,0.68902 -1.554449,1.532378 v 0.01101 c 0,0.876434 0.633907,1.521354 1.554449,1.521354 z m 0,0"
id="path16769" />
<path
id="path16759"
d="m 77.314233,153.35311 c 0,2.40881 -1.790065,4.36287 -4.000429,4.36287 -2.208989,0 -3.999054,-1.95406 -3.999054,-4.36287 0,-2.41019 1.790065,-4.36425 3.999054,-4.36425 2.210364,0 4.000429,1.95406 4.000429,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16747"
d="m 88.91459,153.35311 c 0,2.40881 -1.791476,4.36287 -4.000465,4.36287 -2.208989,0 -4.000429,-1.95406 -4.000429,-4.36287 0,-2.41019 1.79144,-4.36425 4.000429,-4.36425 2.208989,0 4.000465,1.95406 4.000465,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16735"
d="m 100.51491,153.35311 c 0,2.40881 -1.791475,4.36287 -4.000465,4.36287 -2.208988,0 -4.000429,-1.95406 -4.000429,-4.36287 0,-2.41019 1.791441,-4.36425 4.000429,-4.36425 2.20899,0 4.000465,1.95406 4.000465,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16723"
d="m 112.11385,153.35311 c 0,2.40881 -1.79006,4.36287 -3.99908,4.36287 -2.20899,0 -4.00043,-1.95406 -4.00043,-4.36287 0,-2.41019 1.79144,-4.36425 4.00043,-4.36425 2.20902,0 3.99908,1.95406 3.99908,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
id="path11182"
d="m 89.755188,148.9737 c 0,-0.45475 -0.372074,-0.82544 -0.82684,-0.82544 h -8.028446 c -0.454766,0 -0.826805,0.37069 -0.826805,0.82544 v 8.02983 c 0,0.45475 0.372039,0.82682 0.826805,0.82682 h 8.028446 c 0.454766,0 0.82684,-0.37207 0.82684,-0.82682 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path11184"
d="m 101.35551,148.9737 c 0,-0.45475 -0.37208,-0.82544 -0.82684,-0.82544 h -8.028447 c -0.454731,0 -0.826805,0.37069 -0.826805,0.82544 v 8.02983 c 0,0.45475 0.372074,0.82682 0.826805,0.82682 h 8.028447 c 0.45476,0 0.82684,-0.37207 0.82684,-0.82682 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path11186"
d="m 112.95583,148.9737 c 0,-0.45475 -0.37208,-0.82544 -0.82684,-0.82544 h -8.02982 c -0.45336,0 -0.82543,0.37069 -0.82543,0.82544 v 8.02983 c 0,0.45475 0.37207,0.82682 0.82543,0.82682 h 8.02982 c 0.45476,0 0.82684,-0.37207 0.82684,-0.82682 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path11188"
d="m 78.154868,148.9737 c 0,-0.45475 -0.370699,-0.82544 -0.825465,-0.82544 h -8.029822 c -0.454766,0 -0.825465,0.37069 -0.825465,0.82544 v 8.02983 c 0,0.45475 0.370699,0.82682 0.825465,0.82682 h 8.029822 c 0.454766,0 0.825465,-0.37207 0.825465,-0.82682 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
id="path16515"
d="m 77.314233,153.35311 c 0,2.40881 -1.790065,4.36287 -4.000429,4.36287 -2.208989,0 -3.999054,-1.95406 -3.999054,-4.36287 0,-2.41019 1.790065,-4.36425 3.999054,-4.36425 2.210364,0 4.000429,1.95406 4.000429,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16503"
d="m 88.91459,153.35311 c 0,2.40881 -1.791476,4.36287 -4.000465,4.36287 -2.208989,0 -4.000429,-1.95406 -4.000429,-4.36287 0,-2.41019 1.79144,-4.36425 4.000429,-4.36425 2.208989,0 4.000465,1.95406 4.000465,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16491"
d="m 112.11385,153.35311 c 0,2.40881 -1.79006,4.36287 -3.99908,4.36287 -2.20899,0 -4.00043,-1.95406 -4.00043,-4.36287 0,-2.41019 1.79144,-4.36425 4.00043,-4.36425 2.20902,0 3.99908,1.95406 3.99908,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16479"
d="m 100.51491,153.35311 c 0,2.40881 -1.791475,4.36287 -4.000465,4.36287 -2.208988,0 -4.000429,-1.95406 -4.000429,-4.36287 0,-2.41019 1.791441,-4.36425 4.000429,-4.36425 2.20899,0 4.000465,1.95406 4.000465,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16467"
d="m 77.314233,141.75278 c 0,2.41019 -1.790065,4.36425 -4.000429,4.36425 -2.208989,0 -3.999054,-1.95406 -3.999054,-4.36425 0,-2.41019 1.790065,-4.36425 3.999054,-4.36425 2.210364,0 4.000429,1.95406 4.000429,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16455"
d="m 88.91459,141.75278 c 0,2.41019 -1.791476,4.36425 -4.000465,4.36425 -2.208989,0 -4.000429,-1.95406 -4.000429,-4.36425 0,-2.41019 1.79144,-4.36425 4.000429,-4.36425 2.208989,0 4.000465,1.95406 4.000465,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16443"
d="m 100.51491,141.75278 c 0,2.41019 -1.791475,4.36425 -4.000465,4.36425 -2.208988,0 -4.000429,-1.95406 -4.000429,-4.36425 0,-2.41019 1.791441,-4.36425 4.000429,-4.36425 2.20899,0 4.000465,1.95406 4.000465,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16431"
d="m 112.11385,141.75278 c 0,2.41019 -1.79006,4.36425 -3.99908,4.36425 -2.20899,0 -4.00043,-1.95406 -4.00043,-4.36425 0,-2.41019 1.79144,-4.36425 4.00043,-4.36425 2.20902,0 3.99908,1.95406 3.99908,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
id="path11310"
d="m 89.755188,137.37475 c 0,-0.45475 -0.372074,-0.82682 -0.82684,-0.82682 h -8.028446 c -0.454766,0 -0.826805,0.37207 -0.826805,0.82682 v 8.02845 c 0,0.45476 0.372039,0.82683 0.826805,0.82683 h 8.028446 c 0.454766,0 0.82684,-0.37207 0.82684,-0.82683 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path11312"
d="m 101.35551,137.37475 c 0,-0.45475 -0.37208,-0.82682 -0.82684,-0.82682 h -8.028447 c -0.454731,0 -0.826805,0.37207 -0.826805,0.82682 v 8.02845 c 0,0.45476 0.372074,0.82683 0.826805,0.82683 h 8.028447 c 0.45476,0 0.82684,-0.37207 0.82684,-0.82683 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path11314"
d="m 112.95583,137.37475 c 0,-0.45475 -0.37208,-0.82682 -0.82684,-0.82682 h -8.02982 c -0.45336,0 -0.82543,0.37207 -0.82543,0.82682 v 8.02845 c 0,0.45476 0.37207,0.82683 0.82543,0.82683 h 8.02982 c 0.45476,0 0.82684,-0.37207 0.82684,-0.82683 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path11316"
d="m 78.154868,137.37475 c 0,-0.45475 -0.370699,-0.82682 -0.825465,-0.82682 h -8.029822 c -0.454766,0 -0.825465,0.37207 -0.825465,0.82682 v 8.02845 c 0,0.45476 0.370699,0.82683 0.825465,0.82683 h 8.029822 c 0.454766,0 0.825465,-0.37207 0.825465,-0.82683 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
id="path16419"
d="m 77.314233,141.75278 c 0,2.41019 -1.790065,4.36425 -4.000429,4.36425 -2.208989,0 -3.999054,-1.95406 -3.999054,-4.36425 0,-2.41019 1.790065,-4.36425 3.999054,-4.36425 2.210364,0 4.000429,1.95406 4.000429,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16407"
d="m 88.91459,141.75278 c 0,2.41019 -1.791476,4.36425 -4.000465,4.36425 -2.208989,0 -4.000429,-1.95406 -4.000429,-4.36425 0,-2.41019 1.79144,-4.36425 4.000429,-4.36425 2.208989,0 4.000465,1.95406 4.000465,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16395"
d="m 112.11385,141.75278 c 0,2.41019 -1.79006,4.36425 -3.99908,4.36425 -2.20899,0 -4.00043,-1.95406 -4.00043,-4.36425 0,-2.41019 1.79144,-4.36425 4.00043,-4.36425 2.20902,0 3.99908,1.95406 3.99908,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16383"
d="m 100.51491,141.75278 c 0,2.41019 -1.791475,4.36425 -4.000465,4.36425 -2.208988,0 -4.000429,-1.95406 -4.000429,-4.36425 0,-2.41019 1.791441,-4.36425 4.000429,-4.36425 2.20899,0 4.000465,1.95406 4.000465,4.36425"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16371"
d="m 77.314233,130.15245 c 0,2.41019 -1.790065,4.36425 -4.000429,4.36425 -2.208989,0 -3.999054,-1.95406 -3.999054,-4.36425 0,-2.41019 1.790065,-4.36424 3.999054,-4.36424 2.210364,0 4.000429,1.95405 4.000429,4.36424"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16359"
d="m 88.91459,130.15245 c 0,2.41019 -1.791476,4.36425 -4.000465,4.36425 -2.208989,0 -4.000429,-1.95406 -4.000429,-4.36425 0,-2.41019 1.79144,-4.36424 4.000429,-4.36424 2.208989,0 4.000465,1.95405 4.000465,4.36424"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16347"
d="m 100.51491,130.15245 c 0,2.41019 -1.791475,4.36425 -4.000465,4.36425 -2.208988,0 -4.000429,-1.95406 -4.000429,-4.36425 0,-2.41019 1.791441,-4.36424 4.000429,-4.36424 2.20899,0 4.000465,1.95405 4.000465,4.36424"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16335"
d="m 112.11385,130.15245 c 0,2.41019 -1.79006,4.36425 -3.99908,4.36425 -2.20899,0 -4.00043,-1.95406 -4.00043,-4.36425 0,-2.41019 1.79144,-4.36424 4.00043,-4.36424 2.20902,0 3.99908,1.95405 3.99908,4.36424"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
id="path11430"
d="m 89.755188,125.77443 c 0,-0.45475 -0.372074,-0.82683 -0.82684,-0.82683 h -8.028446 c -0.454766,0 -0.826805,0.37208 -0.826805,0.82683 v 8.02845 c 0,0.45475 0.372039,0.82682 0.826805,0.82682 h 8.028446 c 0.454766,0 0.82684,-0.37207 0.82684,-0.82682 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path11432"
d="m 101.35551,125.77443 c 0,-0.45475 -0.37208,-0.82683 -0.82684,-0.82683 h -8.028447 c -0.454731,0 -0.826805,0.37208 -0.826805,0.82683 v 8.02845 c 0,0.45475 0.372074,0.82682 0.826805,0.82682 h 8.028447 c 0.45476,0 0.82684,-0.37207 0.82684,-0.82682 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path11434"
d="m 112.95583,125.77443 c 0,-0.45475 -0.37208,-0.82683 -0.82684,-0.82683 h -8.02982 c -0.45336,0 -0.82543,0.37208 -0.82543,0.82683 v 8.02845 c 0,0.45475 0.37207,0.82682 0.82543,0.82682 h 8.02982 c 0.45476,0 0.82684,-0.37207 0.82684,-0.82682 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path11436"
d="m 78.154868,125.77443 c 0,-0.45475 -0.370699,-0.82683 -0.825465,-0.82683 h -8.029822 c -0.454766,0 -0.825465,0.37208 -0.825465,0.82683 v 8.02845 c 0,0.45475 0.370699,0.82682 0.825465,0.82682 h 8.029822 c 0.454766,0 0.825465,-0.37207 0.825465,-0.82682 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
id="path16323"
d="m 77.314233,130.15245 c 0,2.41019 -1.790065,4.36425 -4.000429,4.36425 -2.208989,0 -3.999054,-1.95406 -3.999054,-4.36425 0,-2.41019 1.790065,-4.36424 3.999054,-4.36424 2.210364,0 4.000429,1.95405 4.000429,4.36424"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16311"
d="m 88.91459,130.15245 c 0,2.41019 -1.791476,4.36425 -4.000465,4.36425 -2.208989,0 -4.000429,-1.95406 -4.000429,-4.36425 0,-2.41019 1.79144,-4.36424 4.000429,-4.36424 2.208989,0 4.000465,1.95405 4.000465,4.36424"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16299"
d="m 112.11385,130.15245 c 0,2.41019 -1.79006,4.36425 -3.99908,4.36425 -2.20899,0 -4.00043,-1.95406 -4.00043,-4.36425 0,-2.41019 1.79144,-4.36424 4.00043,-4.36424 2.20902,0 3.99908,1.95405 3.99908,4.36424"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16287"
d="m 100.51491,130.15245 c 0,2.41019 -1.791475,4.36425 -4.000465,4.36425 -2.208988,0 -4.000429,-1.95406 -4.000429,-4.36425 0,-2.41019 1.791441,-4.36424 4.000429,-4.36424 2.20899,0 4.000465,1.95405 4.000465,4.36424"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16275"
d="m 77.314233,118.55213 c 0,2.41019 -1.790065,4.36425 -4.000429,4.36425 -2.208989,0 -3.999054,-1.95406 -3.999054,-4.36425 0,-2.40881 1.790065,-4.36287 3.999054,-4.36287 2.210364,0 4.000429,1.95406 4.000429,4.36287"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16263"
d="m 88.91459,118.55213 c 0,2.41019 -1.791476,4.36425 -4.000465,4.36425 -2.208989,0 -4.000429,-1.95406 -4.000429,-4.36425 0,-2.40881 1.79144,-4.36287 4.000429,-4.36287 2.208989,0 4.000465,1.95406 4.000465,4.36287"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16251"
d="m 100.51491,118.55213 c 0,2.41019 -1.791475,4.36425 -4.000465,4.36425 -2.208988,0 -4.000429,-1.95406 -4.000429,-4.36425 0,-2.40881 1.791441,-4.36287 4.000429,-4.36287 2.20899,0 4.000465,1.95406 4.000465,4.36287"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16239"
d="m 112.11385,118.55213 c 0,2.41019 -1.79006,4.36425 -3.99908,4.36425 -2.20899,0 -4.00043,-1.95406 -4.00043,-4.36425 0,-2.40881 1.79144,-4.36287 4.00043,-4.36287 2.20902,0 3.99908,1.95406 3.99908,4.36287"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
id="path11550"
d="m 89.755188,114.1741 c 0,-0.45475 -0.372074,-0.82682 -0.82684,-0.82682 h -8.028446 c -0.454766,0 -0.826805,0.37207 -0.826805,0.82682 v 8.02983 c 0,0.45475 0.372039,0.82682 0.826805,0.82682 h 8.028446 c 0.454766,0 0.82684,-0.37207 0.82684,-0.82682 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path11552"
d="m 101.35551,114.1741 c 0,-0.45475 -0.37208,-0.82682 -0.82684,-0.82682 h -8.028447 c -0.454731,0 -0.826805,0.37207 -0.826805,0.82682 v 8.02983 c 0,0.45475 0.372074,0.82682 0.826805,0.82682 h 8.028447 c 0.45476,0 0.82684,-0.37207 0.82684,-0.82682 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path11554"
d="m 112.95583,114.1741 c 0,-0.45475 -0.37208,-0.82682 -0.82684,-0.82682 h -8.02982 c -0.45336,0 -0.82543,0.37207 -0.82543,0.82682 v 8.02983 c 0,0.45475 0.37207,0.82682 0.82543,0.82682 h 8.02982 c 0.45476,0 0.82684,-0.37207 0.82684,-0.82682 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
inkscape:connector-curvature="0"
id="path11556"
d="m 78.154868,114.1741 c 0,-0.45475 -0.370699,-0.82682 -0.825465,-0.82682 h -8.029822 c -0.454766,0 -0.825465,0.37207 -0.825465,0.82682 v 8.02983 c 0,0.45475 0.370699,0.82682 0.825465,0.82682 h 8.029822 c 0.454766,0 0.825465,-0.37207 0.825465,-0.82682 z m 0,0"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775" />
<path
id="path16227"
d="m 77.314233,118.55213 c 0,2.41019 -1.790065,4.36425 -4.000429,4.36425 -2.208989,0 -3.999054,-1.95406 -3.999054,-4.36425 0,-2.40881 1.790065,-4.36287 3.999054,-4.36287 2.210364,0 4.000429,1.95406 4.000429,4.36287"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16215"
d="m 112.11385,118.55213 c 0,2.41019 -1.79006,4.36425 -3.99908,4.36425 -2.20899,0 -4.00043,-1.95406 -4.00043,-4.36425 0,-2.40881 1.79144,-4.36287 4.00043,-4.36287 2.20902,0 3.99908,1.95406 3.99908,4.36287"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16203"
d="m 88.91459,118.55213 c 0,2.41019 -1.791476,4.36425 -4.000465,4.36425 -2.208989,0 -4.000429,-1.95406 -4.000429,-4.36425 0,-2.40881 1.79144,-4.36287 4.000429,-4.36287 2.208989,0 4.000465,1.95406 4.000465,4.36287"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
id="path16191"
d="m 100.51491,118.55213 c 0,2.41019 -1.791475,4.36425 -4.000465,4.36425 -2.208988,0 -4.000429,-1.95406 -4.000429,-4.36425 0,-2.40881 1.791441,-4.36287 4.000429,-4.36287 2.20899,0 4.000465,1.95406 4.000465,4.36287"
style="clip-rule:nonzero;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.35277775"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
style="fill:#ffd714;fill-opacity:1;stroke:none;stroke-width:0.35277775"
d=""
id="path16173" />
<path
inkscape:connector-curvature="0"
style="fill:#ffd714;fill-opacity:1;stroke:none;stroke-width:0.35277775"
d=""
id="path16125" />
<path
inkscape:connector-curvature="0"
style="fill:#ffd714;fill-opacity:1;stroke:none;stroke-width:0.35277775"
d=""
id="path16081" />
</g>
</svg>

+ 3
- 0
src/Core/MIDIToCVInterface.cpp View File

@@ -51,6 +51,7 @@ struct MIDIToCVInterface : Module {
bool gate;

MIDIToCVInterface() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {
midiInput.enableTime = true;
onReset();
}

@@ -115,6 +116,8 @@ struct MIDIToCVInterface : Module {
}

void processMessage(MidiMessage msg) {
debug("MIDI: %01x %01x %02x %02x", msg.status(), msg.channel(), msg.data1, msg.data2);

switch (msg.status()) {
// note off
case 0x8: {


+ 1
- 1
src/Core/MIDITriggerToCVInterface.cpp View File

@@ -107,7 +107,7 @@ struct MIDITriggerToCVInterface : Module {

struct MIDITriggerToCVInterfaceWidget : ModuleWidget {
MIDITriggerToCVInterfaceWidget(MIDITriggerToCVInterface *module) : ModuleWidget(module) {
setPanel(SVG::load(assetGlobal("res/Core/MIDICCToCVInterface.svg")));
setPanel(SVG::load(assetGlobal("res/Core/MIDITriggerToCVInterface.svg")));

addChild(Widget::create<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0)));
addChild(Widget::create<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0)));


+ 1
- 0
src/midi.cpp View File

@@ -157,6 +157,7 @@ void MidiInput::setDriver(int driver) {
if (driver >= 0) {
rtMidiIn = new RtMidiIn((RtMidi::Api) driver);
rtMidiIn->setCallback(midiInputCallback, this);
rtMidiIn->ignoreTypes(enableSysEx, enableTime, enableSense);
rtMidi = rtMidiIn;
this->driver = rtMidiIn->getCurrentApi();
}


Loading…
Cancel
Save