mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
use correct signal to select route from generic MIDI, and add explanatory comment
This commit is contained in:
parent
8b48aff077
commit
a2704dbff8
1 changed files with 6 additions and 1 deletions
|
|
@ -165,9 +165,14 @@ MIDIFunction::execute ()
|
||||||
|
|
||||||
case Select:
|
case Select:
|
||||||
if (!_argument.empty()) {
|
if (!_argument.empty()) {
|
||||||
|
/* this uses only the numerical orderpart of a
|
||||||
|
PresentionInfo, because it only sets the lower 32
|
||||||
|
bits of a 64 bit value. This will be interpreted
|
||||||
|
as a request to select only Routes.
|
||||||
|
*/
|
||||||
uint32_t rid;
|
uint32_t rid;
|
||||||
sscanf (_argument.c_str(), "%d", &rid);
|
sscanf (_argument.c_str(), "%d", &rid);
|
||||||
_ui->SetRouteSelection (rid);
|
_ui->SetStripableSelection (rid);
|
||||||
DEBUG_TRACE (DEBUG::GenericMidi, string_compose ("Function: SetRouteSelection = %1\n", rid));
|
DEBUG_TRACE (DEBUG::GenericMidi, string_compose ("Function: SetRouteSelection = %1\n", rid));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue