Add support for effGetMidiKeyName

Not a lot of plugins use it, but it's really nice to have when they do.
This commit is contained in:
Robbert van der Helm
2020-04-28 12:54:36 +02:00
parent fb8fe035d8
commit 7ce42e4306
5 changed files with 43 additions and 0 deletions
+16
View File
@@ -29,6 +29,12 @@
constexpr int effGetInputProperties = 33;
constexpr int effGetOutputProperties = 34;
// Found on
// https://github.com/falkTX/Carla/blob/07e876a743c5e15c358be170af2e523eadc7dbfa/source/utils/CarlaVstUtils.hpp#L75
// Used to assign names to MIDI keys, for some reason uses the `VstMidiKeyName`
// struct defined below rather than a simple string.
constexpr int effGetMidiKeyName = 66;
/**
* The struct that's being passed through the data parameter during the
* `effGetInputProperties` and `effGetOutputProperties` opcodes. Reverse
@@ -38,3 +44,13 @@ constexpr int effGetOutputProperties = 34;
struct VstIOProperties {
char data[128];
};
/**
* The struct that's passed during `effGetMidiKeyName`. Will be used to write
* the name of a key to (i.e. the name of a sample for drum machines). Again,
* not sure about the exact contents of this struct, but at least the size is
* right!
*/
struct VstMidiKeyName {
char data[80];
};