diff --git a/CMakeLists.txt b/CMakeLists.txt index 12f057c..50bf581 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ foreach(module_name IN ITEMS gin gin_dsp gin_graphics gin_gui gin_plugin gin_sim set_property (TARGET "${module_name}" APPEND PROPERTY LABELS Gin) endforeach() -set(VersionString 1.1.1) +set(VersionString 1.1.2) juce_add_plugin (${PROJECT_NAME} PRODUCT_NAME "Audible Planets" diff --git a/Source/Synth.cpp b/Source/Synth.cpp index a53909c..0ad0b8d 100644 --- a/Source/Synth.cpp +++ b/Source/Synth.cpp @@ -88,14 +88,15 @@ std::vector APSynth::getMSEG4Phases() { void APSynth::handleMidiEvent(const juce::MidiMessage& m) { MPESynthesiser::handleMidiEvent(m); - if (m.isNoteOn()) { - proc.newRand(); - } - if (m.isSysEx()) { - MTS_ParseMIDIDataU(proc.client, m.getSysExData(), m.getSysExDataSize()); + if (MTS_HasMaster(proc.client)) + MTS_ParseMIDIDataU(proc.client, m.getSysExData(), m.getSysExDataSize()); } + if (m.isNoteOn()) { + proc.newRand(); + } + if (m.isController()) { if (m.getControllerNumber() == 1) { proc.modMatrix.setMonoValue(proc.modSrcModwheel, float(m.getControllerValue()) / 127.0f);