re #144, ported changes to git head

Ifdefed the new changes because I don't think they'll work
correctly if not all clips have bindings, see discussion here:
75e1012c0d (r94225008)
This commit is contained in:
Harry van Haaren 2016-12-30 12:52:58 +00:00
parent 394ced7f33
commit b6175368e1

View file

@ -603,6 +603,8 @@ void GenericMIDI::launchScene( int scene )
Binding* b = actionToMidi.at(i);
if ( b->action == GRID_LAUNCH_SCENE ) {
unsigned char data[3];
#if 1
for( int i = 0; i < 5; i++ ) {
if ( i != scene ) {
unsigned char data[3];
@ -612,7 +614,13 @@ void GenericMIDI::launchScene( int scene )
writeMidi( data );
}
}
unsigned char data[3];
#else
data[0] = b->status;
data[1] = b->data;
data[2] = (b->scene == scene) * 127;
writeMidi( data );
#endif
data[0] = b->status;
data[1] = b->data + scene;
data[2] = 127;