projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
delegate port-connections to low priority thread.
[ardour.git]
/
libs
/
ardour
/
midi_scene_change.cc
diff --git
a/libs/ardour/midi_scene_change.cc
b/libs/ardour/midi_scene_change.cc
index 5e9394d2dbe3453b21c4c8b67fb497bcb671b95a..ed0729b0710ec282ffad5da28fb8136874f7ec85 100644
(file)
--- a/
libs/ardour/midi_scene_change.cc
+++ b/
libs/ardour/midi_scene_change.cc
@@
-77,7
+77,7
@@
MIDISceneChange::get_bank_lsb_message (uint8_t* buf, size_t size) const
buf[0] = 0xB0 | (_channel & 0xf);
buf[1] = 0x20;
buf[0] = 0xB0 | (_channel & 0xf);
buf[1] = 0x20;
- buf[2] = _bank & 0x7f;
+ buf[2] = _bank & 0x7f;
return 3;
}
return 3;
}
@@
-156,3
+156,23
@@
MIDISceneChange::operator==(const MIDISceneChange& other) const
_bank == other._bank &&
_channel == other._channel;
}
_bank == other._bank &&
_channel == other._channel;
}
+
+void
+MIDISceneChange::set_channel (int channel)
+{
+ _channel = channel;
+}
+
+void
+MIDISceneChange::set_program (int program)
+{
+ _program = program;
+}
+
+void
+MIDISceneChange::set_bank (int bank)
+{
+ _bank = bank;
+}
+
+