19 #ifndef ardour_us2400_control_protocol_h
20 #define ardour_us2400_control_protocol_h
29 #define ABSTRACT_UI_EXPORTS
44 class AutomationControl;
117 bool is_track (std::shared_ptr<ARDOUR::Stripable>)
const;
120 bool is_mapped (std::shared_ptr<ARDOUR::Stripable>)
const;
140 typedef std::list<std::shared_ptr<US2400::Surface> >
Surfaces;
149 std::list<std::shared_ptr<ARDOUR::Bundle> >
bundles ();
154 uint32_t
n_strips (
bool with_locked_strips =
true)
const;
202 typedef std::list<std::shared_ptr<ARDOUR::AutomationControl> >
ControlList;
235 typedef std::vector<std::shared_ptr<ARDOUR::Stripable> >
Sorted;
262 typedef std::map<US2400::Button::ID,ButtonHandlers>
ButtonMap;
327 void connection_handler (std::weak_ptr<ARDOUR::Port>, std::string name1, std::weak_ptr<ARDOUR::Port>, std::string name2,
bool);
void remove_down_select_button(int surface, int strip)
US2400::LedState read_press(US2400::Button &)
US2400::LedState enter_release(US2400::Button &)
bool is_midi_track(std::shared_ptr< ARDOUR::Stripable >) const
US2400::LedState enter_press(US2400::Button &)
US2400::LedState scrub_press(US2400::Button &)
std::shared_ptr< US2400::Surface > get_surface_by_raw_pointer(void *) const
void handle_button_event(US2400::Surface &, US2400::Button &button, US2400::ButtonState)
US2400::LedState send_press(US2400::Button &)
std::map< ARDOUR::AutomationType, DownButtonList > DownButtonMap
void update_led(US2400::Surface &, US2400::Button &button, US2400::LedState)
this is called to generate the midi to send in response to a button press.
US2400::LedState cursor_left_release(US2400::Button &)
US2400::LedState control_release(US2400::Button &)
US2400::LedState miditracks_press(US2400::Button &)
US2400::LedState eq_release(US2400::Button &)
US2400::LedState clearsolo_press(US2400::Button &)
US2400::LedState rewind_release(US2400::Button &button)
US2400::LedState stop_press(US2400::Button &)
US2400::LedState play_press(US2400::Button &)
void notify_loop_state_changed()
US2400::LedState timecode_beats_press(US2400::Button &)
US2400::LedState right_press(US2400::Button &)
DownButtonMap _down_buttons
US2400::LedState outputs_press(US2400::Button &)
US2400::LedState audioinstruments_press(US2400::Button &)
US2400::LedState cursor_down_release(US2400::Button &)
void set_view_mode(ViewMode)
US2400::LedState loop_release(US2400::Button &)
US2400::LedState undo_press(US2400::Button &)
US2400::LedState send_release(US2400::Button &)
US2400::LedState cursor_right_press(US2400::Button &)
US2400::LedState trim_press(US2400::Button &)
static const int MODIFIER_OPTION
uint32_t n_strips(bool with_locked_strips=true) const
std::shared_ptr< ArdourSurface::US2400::Surface > _master_surface
void notify_routes_added(ARDOUR::RouteList &)
US2400::LedState flip_press(US2400::Button &)
US2400::LedState fader_touch_release(US2400::Button &)
US2400::LedState cancel_press(US2400::Button &)
US2400::LedState cancel_release(US2400::Button &)
static const int MODIFIER_MARKER
void select_range(uint32_t pressed)
US2400::LedState mstr_release(US2400::Button &)
void force_special_stripable_to_strip(std::shared_ptr< ARDOUR::Stripable > r, uint32_t surface, uint32_t strip_number)
bool is_audio_track(std::shared_ptr< ARDOUR::Stripable >) const
US2400::LedState replace_press(US2400::Button &)
std::vector< std::shared_ptr< ARDOUR::Stripable > > Sorted
US2400::LedState zoom_press(US2400::Button &)
PBD::ScopedConnectionList subview_stripable_connections
US2400::LedState latch_press(US2400::Button &)
US2400::DeviceProfile & device_profile()
US2400::LedState marker_release(US2400::Button &)
US2400::LedState user_press(US2400::Button &)
US2400::LedState channel_left_release(US2400::Button &)
uint32_t _current_initial_bank
std::list< std::shared_ptr< US2400::Surface > > Surfaces
US2400::LedState cmd_alt_release(US2400::Button &)
US2400::LedState bank_release(US2400::Button &, uint32_t bank_num)
std::list< std::shared_ptr< ARDOUR::AutomationControl > > ControlList
void update_timecode_beats_led()
US2400::Timer _frm_left_last
void update_configuration_state() const
US2400::LedState aux_release(US2400::Button &)
std::shared_ptr< ARDOUR::Bundle > _output_bundle
void add_down_button(ARDOUR::AutomationType, int surface, int strip)
US2400::LedState outputs_release(US2400::Button &)
static const int MODIFIER_SHIFT
US2400::LedState fader_touch_press(US2400::Button &)
void do_request(US2400ControlUIRequest *)
static US2400Protocol * instance()
void notify_parameter_changed(std::string const &)
bool midi_input_handler(Glib::IOCondition ioc, MIDI::Port *port)
bool marker_modifier_consumed_by_button
void notify_transport_state_changed()
XMLNode * configuration_state
US2400::LedState dyn_press(US2400::Button &)
DownButtonList _down_select_buttons
bool is_mapped(std::shared_ptr< ARDOUR::Stripable >) const
US2400::LedState inputs_release(US2400::Button &)
int set_device_info(const std::string &device_name)
US2400::LedState play_release(US2400::Button &)
std::shared_ptr< ARDOUR::Stripable > first_selected_stripable() const
US2400::LedState option_release(US2400::Button &)
void connect_session_signals()
US2400::LedState plugin_press(US2400::Button &)
ARDOUR::Session & get_session()
US2400::LedState pan_press(US2400::Button &)
std::string _timecode_last
void update_fader_automation_state()
US2400::LedState record_press(US2400::Button &)
PBD::Signal< void(std::shared_ptr< US2400::Surface >)> ConnectionChange
US2400::LedState loop_press(US2400::Button &)
void notify_record_state_changed()
US2400::LedState audiotracks_press(US2400::Button &)
US2400::LedState stop_release(US2400::Button &)
CONTROL_PROTOCOL_THREADS_NEED_TEMPO_MAP_DECL()
US2400::LedState channel_right_press(US2400::Button &)
int main_modifier_state() const
US2400::LedState drop_press(US2400::Button &)
sigc::connection hui_connection
PBD::ScopedConnection port_connection
US2400::LedState grp_press(US2400::Button &)
std::shared_ptr< ARDOUR::Stripable > _subview_stripable
US2400::LedState drop_release(US2400::Button &)
US2400::LedState dyn_release(US2400::Button &)
US2400::LedState audioinstruments_release(US2400::Button &)
US2400::LedState trim_release(US2400::Button &)
const US2400::DeviceInfo & device_info() const
static const int MODIFIER_SCRUB
US2400::LedState write_release(US2400::Button &)
int set_device(const std::string &, bool force)
US2400::LedState user_b_press(US2400::Button &)
US2400Protocol(ARDOUR::Session &)
US2400::LedState master_fader_touch_release(US2400::Button &)
US2400::LedState left_release(US2400::Button &)
void refresh_current_bank()
US2400::LedState clearsolo_release(US2400::Button &)
void connection_handler(std::weak_ptr< ARDOUR::Port >, std::string name1, std::weak_ptr< ARDOUR::Port >, std::string name2, bool)
int modifier_state() const
Glib::Threads::Mutex surfaces_lock
int set_subview_mode(SubViewMode, std::shared_ptr< ARDOUR::Stripable >)
US2400::LedState busses_release(US2400::Button &)
US2400::LedState channel_right_release(US2400::Button &)
void set_automation_state(ARDOUR::AutoState)
PBD::ScopedConnectionList audio_engine_connections
int set_state(const XMLNode &, int version)
US2400::LedState rewind_press(US2400::Button &button)
US2400::LedState undo_release(US2400::Button &)
void notify_subview_stripable_deleted()
std::set< uint32_t > DownButtonList
void set_touch_sensitivity(int)
US2400::LedState shift_press(US2400::Button &)
samplepos_t transport_sample() const
void set_monitor_on_surface_strip(uint32_t surface, uint32_t strip)
SubViewMode subview_mode() const
std::list< std::shared_ptr< ARDOUR::Bundle > > bundles()
void notify_presentation_info_changed(PBD::PropertyChange const &)
void check_fader_automation_state()
std::shared_ptr< US2400::Surface > nth_surface(uint32_t) const
US2400::LedState grp_release(US2400::Button &)
US2400::LedState control_press(US2400::Button &)
US2400::LedState name_value_release(US2400::Button &)
US2400::LedState nudge_release(US2400::Button &)
US2400::LedState cursor_left_press(US2400::Button &)
US2400::LedState track_press(US2400::Button &)
US2400::LedState record_release(US2400::Button &)
void update_global_led(int id, US2400::LedState)
US2400::LedState cursor_down_press(US2400::Button &)
US2400::LedState marker_press(US2400::Button &)
US2400::LedState touch_press(US2400::Button &)
US2400::LedState cmd_alt_press(US2400::Button &)
US2400::LedState cursor_up_press(US2400::Button &)
void stripable_selection_changed()
int switch_banks(uint32_t first_remote_id, bool force=false)
US2400::LedState pan_release(US2400::Button &)
bool redisplay_subview_mode()
US2400::LedState plugin_release(US2400::Button &)
bool profile_exists(std::string const &) const
static const int MAIN_MODIFIER_MASK
US2400::LedState flip_release(US2400::Button &)
US2400::LedState master_fader_touch_press(US2400::Button &)
US2400::LedState click_release(US2400::Button &)
ARDOUR::AnyTime::Type _timecode_type
US2400::LedState audiotracks_release(US2400::Button &)
US2400::LedState option_press(US2400::Button &)
void set_master_on_surface_strip(uint32_t surface, uint32_t strip)
US2400::LedState busses_press(US2400::Button &)
US2400::LedState latch_release(US2400::Button &)
US2400::LedState miditracks_release(US2400::Button &)
std::shared_ptr< ARDOUR::Bundle > _input_bundle
virtual ~US2400Protocol()
void pull_stripable_range(DownButtonList &, ARDOUR::StripableList &, uint32_t pressed)
PBD::ScopedConnectionList stripable_connections
US2400::LedState user_a_release(US2400::Button &)
void remove_down_button(ARDOUR::AutomationType, int surface, int strip)
void notify_metering_state_changed()
US2400::LedState view_release(US2400::Button &)
US2400::LedState user_release(US2400::Button &)
US2400::LedState shift_release(US2400::Button &)
bool stripable_is_locked_to_strip(std::shared_ptr< ARDOUR::Stripable >) const
std::map< US2400::Button::ID, ButtonHandlers > ButtonMap
US2400::LedState user_a_press(US2400::Button &)
XMLNode & get_state() const
US2400::LedState click_press(US2400::Button &)
US2400::LedState touch_release(US2400::Button &)
US2400::LedState zoom_release(US2400::Button &)
PBD::ScopedConnectionList session_connections
US2400::LedState user_b_release(US2400::Button &)
US2400::LedState cursor_up_release(US2400::Button &)
US2400::LedState scrub_release(US2400::Button &)
void recalibrate_faders()
US2400::LedState ffwd_press(US2400::Button &button)
US2400::LedState aux_press(US2400::Button &)
US2400::LedState read_release(US2400::Button &)
US2400::DeviceProfile _device_profile
US2400::LedState save_release(US2400::Button &)
bool nudge_modifier_consumed_by_button
uint32_t global_index_locked(US2400::Strip &)
US2400::LedState left_press(US2400::Button &)
US2400::LedState view_press(US2400::Button &)
void set_profile(const std::string &)
US2400::LedState write_press(US2400::Button &)
sigc::connection periodic_connection
US2400::LedState inputs_press(US2400::Button &)
static const int MODIFIER_ZOOM
US2400::LedState timecode_beats_release(US2400::Button &)
static US2400Protocol * _instance
PBD::ScopedConnectionList gui_connections
US2400::LedState track_release(US2400::Button &)
SubViewMode _subview_mode
US2400::LedState replace_release(US2400::Button &)
void update_global_button(int id, US2400::LedState)
sigc::connection redisplay_connection
US2400::LedState nudge_press(US2400::Button &)
static const int MODIFIER_CONTROL
US2400::LedState eq_press(US2400::Button &)
Sorted get_sorted_stripables()
US2400::DeviceInfo _device_info
void notify_stripable_removed()
US2400::LedState mstr_press(US2400::Button &)
ControlList down_controls(ARDOUR::AutomationType, uint32_t pressed)
PBD::Signal< void()> DeviceChanged
US2400::LedState right_release(US2400::Button &)
static bool subview_mode_would_be_ok(SubViewMode, std::shared_ptr< ARDOUR::Stripable >)
static const int MODIFIER_DROP
void notify_vca_added(ARDOUR::VCAList &)
ViewMode view_mode() const
void notify_solo_active_changed(bool)
bool metering_active() const
static const int MODIFIER_CMDALT
US2400::LedState channel_left_press(US2400::Button &)
US2400::LedState ffwd_release(US2400::Button &button)
US2400::LedState save_press(US2400::Button &)
bool is_track(std::shared_ptr< ARDOUR::Stripable >) const
uint32_t global_index(US2400::Strip &)
US2400::LedState name_value_press(US2400::Button &)
US2400::LedState cursor_right_release(US2400::Button &)
std::shared_ptr< ARDOUR::Stripable > subview_stripable() const
void add_down_select_button(int surface, int strip)
ARDOUR::Session * session
std::list< std::shared_ptr< Stripable > > StripableList
std::list< std::shared_ptr< VCA > > VCAList
std::list< std::shared_ptr< Route > > RouteList
Temporal::samplepos_t samplepos_t
~US2400ControlUIRequest()