mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
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:
parent
394ced7f33
commit
b6175368e1
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue