summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-10-19 15:13:32 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-10-19 17:49:35 -0400
commit0a8ab08e5f02b47e82343554b20e317e1b21731d (patch)
tree1d7c9acd5651ec2c4e02a0810f63430315483c81 /libs/ardour/ardour
parentd0b2767856f321d16888b69a02e69408cafcc3bf (diff)
basics of following MIDI track selection and rewiring input
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/rc_configuration_vars.h1
-rw-r--r--libs/ardour/ardour/session.h7
2 files changed, 7 insertions, 1 deletions
diff --git a/libs/ardour/ardour/rc_configuration_vars.h b/libs/ardour/ardour/rc_configuration_vars.h
index ae6f7af93b..62a15a3fe2 100644
--- a/libs/ardour/ardour/rc_configuration_vars.h
+++ b/libs/ardour/ardour/rc_configuration_vars.h
@@ -59,6 +59,7 @@ CONFIG_VARIABLE (int32_t, mmc_send_device_id, "mmc-send-device-id", 0)
CONFIG_VARIABLE (int32_t, initial_program_change, "initial-program-change", -1)
CONFIG_VARIABLE (bool, first_midi_bank_is_zero, "display-first-midi-bank-as-zero", false)
CONFIG_VARIABLE (int32_t, inter_scene_gap_frames, "inter-scene-gap-frames", 1)
+CONFIG_VARIABLE (bool, midi_input_follows_selection, "midi-input-follows-selection", 1)
/* Timecode and related */
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h
index d76c65c675..4b17d7d855 100644
--- a/libs/ardour/ardour/session.h
+++ b/libs/ardour/ardour/session.h
@@ -593,7 +593,7 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
}
}
}
- private:
+ private:
Session * _session;
};
@@ -1151,6 +1151,7 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
void auto_connect_thread_wakeup ();
+
protected:
friend class AudioEngine;
void set_block_size (pframes_t nframes);
@@ -2033,6 +2034,10 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
boost::shared_ptr<Route> get_midi_nth_route_by_id (PresentationInfo::order_t n) const;
std::string created_with;
+
+ void midi_track_presentation_info_changed (PBD::PropertyChange const &, boost::weak_ptr<MidiTrack>);
+ void rewire_selected_midi (boost::shared_ptr<MidiTrack>);
+ boost::weak_ptr<MidiTrack> current_midi_target;
};