mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
make MIDI thru work even when not rolling; add GUI control over MIDI thru (midi track context menu); add "default channel" concept for MIDI tracks so that piano roll header events can send stuff on the right channel; add GUI control over this channel setting
git-svn-id: svn://localhost/ardour2/branches/3.0@5687 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
756fc18394
commit
9867035f29
5 changed files with 102 additions and 8 deletions
|
|
@ -651,7 +651,7 @@ PianoRollHeader::send_note_on(uint8_t note)
|
|||
//cerr << "note on: " << (int) note << endl;
|
||||
|
||||
if (track) {
|
||||
_event[0] = MIDI_CMD_NOTE_ON;
|
||||
_event[0] = (MIDI_CMD_NOTE_ON | track->default_channel());
|
||||
_event[1] = note;
|
||||
_event[2] = 100;
|
||||
|
||||
|
|
@ -665,7 +665,7 @@ PianoRollHeader::send_note_off(uint8_t note)
|
|||
boost::shared_ptr<ARDOUR::MidiTrack> track = _view.trackview().midi_track();
|
||||
|
||||
if (track) {
|
||||
_event[0] = MIDI_CMD_NOTE_OFF;
|
||||
_event[0] = (MIDI_CMD_NOTE_OFF | track->default_channel());
|
||||
_event[1] = note;
|
||||
_event[2] = 100;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue