summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_track.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-05-25 15:19:47 +0000
committerCarl Hetherington <carl@carlh.net>2011-05-25 15:19:47 +0000
commit711db34a81eed3748684bc52b17a56292ffe4092 (patch)
tree19680b02723ff9519bded9d46a21398d9ec7c9d3 /libs/ardour/midi_track.cc
parente984220eaaa318d9b51ebb20995d1bccae389389 (diff)
Remove MIDI track default channel and its menu, and choose the channel for new notes using MidiTimeAxisView::get_channel_for_add() (fixes #3998 and #3865).
git-svn-id: svn://localhost/ardour2/branches/3.0@9585 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_track.cc')
-rw-r--r--libs/ardour/midi_track.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc
index a2ebef4ef4..3ce88c25b1 100644
--- a/libs/ardour/midi_track.cc
+++ b/libs/ardour/midi_track.cc
@@ -56,7 +56,6 @@ MidiTrack::MidiTrack (Session& sess, string name, Route::Flag flag, TrackMode mo
, _step_edit_ring_buffer(64) // FIXME: size?
, _note_mode(Sustained)
, _step_editing (false)
- , _default_channel (0)
, _midi_thru (true)
{
}
@@ -150,10 +149,6 @@ MidiTrack::_set_state (const XMLNode& node, int version, bool call_base)
set_midi_thru (prop->value() == "yes");
}
- if ((prop = node.property ("default-channel")) != 0) {
- set_default_channel ((uint8_t) atoi (prop->value()));
- }
-
XMLNodeList nlist;
XMLNodeConstIterator niter;
XMLNode *child;
@@ -227,7 +222,6 @@ MidiTrack::state(bool full_state)
root.add_property ("step-editing", (_step_editing ? "yes" : "no"));
root.add_property ("note-mode", enum_2_string (_note_mode));
root.add_property ("midi-thru", (_midi_thru ? "yes" : "no"));
- snprintf (buf, sizeof (buf), "%d", (int) _default_channel);
root.add_property ("default-channel", buf);
return root;
@@ -605,12 +599,6 @@ MidiTrack::set_step_editing (bool yn)
}
void
-MidiTrack::set_default_channel (uint8_t chn)
-{
- _default_channel = std::min ((unsigned int) chn, 15U);
-}
-
-void
MidiTrack::set_midi_thru (bool yn)
{
_midi_thru = yn;