Commit 8835947f authored by Harry van Haaren's avatar Harry van Haaren

-Fixed #76 Metro disable by MIDI mapping

parent d4f74b6c
-> Fixed metronome MIDI mapping
-> Added metronome volume
1.0.1: Saturday 30th August 2014
-> Updated header graphics
-> CLang static analysis
-> Icon updated & shows
......
......@@ -842,8 +842,14 @@ Binding* GenericMIDI::setupBinding( cJSON* binding )
tmp->data = dataJson->valueint;
// gets the Action type from the JSON string
tmp->action = Event::getTypeFromName( actionJson->valuestring );
cJSON* activeJson = cJSON_GetObjectItem( binding, "active" );
if ( activeJson )
{
tmp->active = activeJson->valueint;
}
// gets the active bool from the JSON
tmp->action = Event::getTypeFromName( actionJson->valuestring );
// check what our send value should be:
cJSON* sendJson = cJSON_GetObjectItem( binding, "send" );
......@@ -908,6 +914,7 @@ Binding* GenericMIDI::setupBinding( cJSON* binding )
}
else if ( strcmp( actionJson->valuestring, "metronome:active" ) == 0 ) {
tmp->action = Event::METRONOME_ACTIVE;
LUPPP_NOTE("binding metro active event, tmp->active == %i", tmp->active );
}
// check for valid event: otherwise pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment