summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_scene_change.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-04-30 10:10:31 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-04-30 10:10:31 -0400
commitd604852f6785890efa033eff442f19b1419b79be (patch)
treefed64a919aa779f5d1d85ebe41090f3ba259a496 /libs/ardour/midi_scene_change.cc
parent58522e5b5ea72896c2893c00bd4cf2939b30a492 (diff)
use per-channel signals to pick up scene changes, rather than global ones
Diffstat (limited to 'libs/ardour/midi_scene_change.cc')
-rw-r--r--libs/ardour/midi_scene_change.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/midi_scene_change.cc b/libs/ardour/midi_scene_change.cc
index 81a74911a9..d0a14cba50 100644
--- a/libs/ardour/midi_scene_change.cc
+++ b/libs/ardour/midi_scene_change.cc
@@ -65,7 +65,7 @@ MIDISceneChange::get_bank_msb_message (uint8_t* buf, size_t size) const
buf[0] = 0xB0 | (_channel & 0xf);
buf[1] = 0x0;
- buf[2] = (_bank & 0xf700) >> 8;
+ buf[2] = (_bank >> 7) & 0x7f;
return 3;
}
@@ -79,7 +79,7 @@ MIDISceneChange::get_bank_lsb_message (uint8_t* buf, size_t size) const
buf[0] = 0xB0 | (_channel & 0xf);
buf[1] = 0x20;
- buf[2] = (_bank & 0xf7);
+ buf[2] = _bank & 0x7f;
return 3;
}
@@ -92,7 +92,7 @@ MIDISceneChange::get_program_message (uint8_t* buf, size_t size) const
}
buf[0] = 0xC0 | (_channel & 0xf);
- buf[1] = _program & 0xf7;
+ buf[1] = _program & 0x7f;
return 2;
}