diff --git a/source/native-plugins/midi-transpose.c b/source/native-plugins/midi-transpose.c index d0f5ba94e..df3bb2a78 100644 --- a/source/native-plugins/midi-transpose.c +++ b/source/native-plugins/midi-transpose.c @@ -26,7 +26,6 @@ typedef struct { const NativeHostDescriptor* host; int octaves; int semitones; - bool invert; } MidiTransposeHandle; // ----------------------------------------------------------------------- @@ -101,11 +100,13 @@ static float miditranspose_get_parameter_value(NativePluginHandle handle, uint32 switch (index) { case 0: - return (float)handlePtr->octaves; + return (float)handlePtr->octaves; + break; case 1: - return (float)handlePtr->semitones; + return (float)handlePtr->semitones; + break; default: - return 0.0f; + return 0.0f; } } @@ -114,11 +115,13 @@ static void miditranspose_set_parameter_value(NativePluginHandle handle, uint32_ switch (index) { case 0: - handlePtr->octaves = (int)value; + handlePtr->octaves = (int)value; + break; case 1: - handlePtr->semitones = (int)value; + handlePtr->semitones = (int)value; + break; default: - return; + return; } }