diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-17 14:28:10 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-17 14:28:10 +0000 |
commit | add52f1c0ef787a580c44d719bc6e4c9c5ae09a4 (patch) | |
tree | a26208524082994adcf7a6e2adae84e18bf9f233 /libs/ardour/midi_track.cc | |
parent | 2863640a52ddaea45ebe5bdd8aceb5567fe8989c (diff) |
Remove believed-unnecessary and broken MIDI thru option;
should fix #4749.
git-svn-id: svn://localhost/ardour2/branches/3.0@12746 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_track.cc')
-rw-r--r-- | libs/ardour/midi_track.cc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc index 64e61e79f9..8847bf13bc 100644 --- a/libs/ardour/midi_track.cc +++ b/libs/ardour/midi_track.cc @@ -54,7 +54,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) - , _midi_thru (true) , _input_active (true) { } @@ -155,10 +154,6 @@ MidiTrack::set_state (const XMLNode& node, int version) // No destructive MIDI tracks (yet?) _mode = Normal; - if ((prop = node.property ("midi-thru")) != 0) { - set_midi_thru (string_is_affirmative (prop->value())); - } - if ((prop = node.property ("input-active")) != 0) { set_input_active (string_is_affirmative (prop->value())); } @@ -205,7 +200,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")); root.add_property ("input-active", (_input_active ? "yes" : "no")); return root; @@ -477,11 +471,6 @@ MidiTrack::write_out_of_band_data (BufferSet& bufs, framepos_t /*start*/, framep _immediate_events.read (buf, 0, 1, nframes-1, true); } - - // MIDI thru: send incoming data "through" output - if (_midi_thru && _session.transport_speed() != 0.0f && _input->n_ports().n_midi()) { - buf.merge_in_place (_input->midi(0)->get_midi_buffer(nframes)); - } } int @@ -625,12 +614,6 @@ MidiTrack::set_step_editing (bool yn) } } -void -MidiTrack::set_midi_thru (bool yn) -{ - _midi_thru = yn; -} - boost::shared_ptr<SMFSource> MidiTrack::write_source (uint32_t) { |