Browse Source

Change MIDI MPE as a generic macro

pull/443/head
jfrey 1 year ago
parent
commit
b74ea75052
2 changed files with 7 additions and 6 deletions
  1. +6
    -5
      distrho/DistrhoInfo.hpp
  2. +1
    -1
      distrho/src/DistrhoPluginCLAP.cpp

+ 6
- 5
distrho/DistrhoInfo.hpp View File

@@ -565,6 +565,12 @@ START_NAMESPACE_DISTRHO
*/
#define DISTRHO_PLUGIN_WANT_MIDI_OUTPUT 1

/**
Whether the plugin uses MIDI MPE for MIDI input and MIDI output.
@note Only CLAP implements this macro at the moment
*/
#define DISTRHO_PLUGIN_MIDI_MPE 0

/**
Whether the plugin wants to change its own parameter inputs.@n
Not all hosts or plugin formats support this,
@@ -822,11 +828,6 @@ START_NAMESPACE_DISTRHO
*/
#define DISTRHO_PLUGIN_CLAP_ID "studio.kx.distrho.effect"

/**
Whether the plugin supports and prefers the MIDI MPE dialect for MIDI input and MIDI output in the CLAP format.
*/
#define DISTRHO_PLUGIN_CLAP_DIALECT_MIDI_MPE 0

/** @} */

/* ------------------------------------------------------------------------------------------------------------


+ 1
- 1
distrho/src/DistrhoPluginCLAP.cpp View File

@@ -67,7 +67,7 @@
# define DPF_CLAP_TIMER_INTERVAL 16 /* ~60 fps */
#endif

#if defined(DISTRHO_PLUGIN_CLAP_DIALECT_MIDI_MPE) && DISTRHO_PLUGIN_CLAP_DIALECT_MIDI_MPE
#if defined(DISTRHO_PLUGIN_MIDI_MPE) && DISTRHO_PLUGIN_MIDI_MPE
# define DPF_CLAP_NOTE_DIALECT CLAP_NOTE_DIALECT_MIDI_MPE
#else
# define DPF_CLAP_NOTE_DIALECT CLAP_NOTE_DIALECT_MIDI


Loading…
Cancel
Save