mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Fix indentation 8 whitespaces to tab
This commit is contained in:
parent
91321272b5
commit
4c66e36b91
19 changed files with 295 additions and 296 deletions
|
|
@ -78,7 +78,7 @@ class AutomationTimeAxisView : public TimeAxisView {
|
|||
boost::shared_ptr<ARDOUR::Stripable> stripable() const;
|
||||
ARDOUR::PresentationInfo const & presentation_info () const;
|
||||
|
||||
void add_automation_event (GdkEvent *, framepos_t, double, bool with_guard_points);
|
||||
void add_automation_event (GdkEvent *, framepos_t, double, bool with_guard_points);
|
||||
|
||||
void clear_lines ();
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ AxisView::gui_property (const string& property_name) const
|
|||
if (property_hashtable.count(property_name)) {
|
||||
return property_hashtable[property_name];
|
||||
} else {
|
||||
string rv = gui_object_state().get_string (state_id(), property_name);
|
||||
string rv = gui_object_state().get_string (state_id(), property_name);
|
||||
property_hashtable.erase(property_name);
|
||||
property_hashtable.emplace(property_name, rv);
|
||||
return rv;
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ class LevelMeterBase : public ARDOUR::SessionHandlePtr, virtual public sigc::tra
|
|||
struct MeterInfo {
|
||||
Gtkmm2ext::FastMeter *meter;
|
||||
gint16 width;
|
||||
int length;
|
||||
int length;
|
||||
bool packed;
|
||||
float max_peak;
|
||||
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
|
|||
void maximise_mixer_space();
|
||||
void restore_mixer_space();
|
||||
|
||||
MonitorSection* monitor_section() const { return _monitor_section; }
|
||||
MonitorSection* monitor_section() const { return _monitor_section; }
|
||||
|
||||
void deselect_all_strip_processors();
|
||||
void delete_processors();
|
||||
|
|
@ -174,7 +174,7 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
|
|||
bool masters_scroller_button_release (GdkEventButton*);
|
||||
void scroll_left ();
|
||||
void scroll_right ();
|
||||
void toggle_midi_input_active (bool flip_others);
|
||||
void toggle_midi_input_active (bool flip_others);
|
||||
|
||||
void move_stripable_into_view (boost::shared_ptr<ARDOUR::Stripable>);
|
||||
|
||||
|
|
@ -242,8 +242,8 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
|
|||
|
||||
void set_all_strips_visibility (bool yn);
|
||||
void set_all_audio_midi_visibility (int, bool);
|
||||
void track_visibility_changed (std::string const & path);
|
||||
void update_track_visibility ();
|
||||
void track_visibility_changed (std::string const & path);
|
||||
void update_track_visibility ();
|
||||
|
||||
void hide_all_routes ();
|
||||
void show_all_routes ();
|
||||
|
|
@ -273,7 +273,7 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
|
|||
void track_column_click (gint);
|
||||
void build_track_menu ();
|
||||
|
||||
MonitorSection* _monitor_section;
|
||||
MonitorSection* _monitor_section;
|
||||
PluginSelector *_plugin_selector;
|
||||
|
||||
void stripable_property_changed (const PBD::PropertyChange& what_changed, boost::weak_ptr<ARDOUR::Stripable> ws);
|
||||
|
|
@ -336,10 +336,10 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
|
|||
|
||||
Width _strip_width;
|
||||
|
||||
void sync_presentation_info_from_treeview ();
|
||||
void sync_treeview_from_presentation_info ();
|
||||
void sync_presentation_info_from_treeview ();
|
||||
void sync_treeview_from_presentation_info ();
|
||||
|
||||
bool ignore_reorder;
|
||||
bool ignore_reorder;
|
||||
|
||||
void parameter_changed (std::string const &);
|
||||
void set_route_group_activation (ARDOUR::RouteGroup *, bool);
|
||||
|
|
@ -354,7 +354,7 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
|
|||
it during a session teardown.
|
||||
*/
|
||||
bool _in_group_rebuild_or_clear;
|
||||
bool _route_deletion_in_progress;
|
||||
bool _route_deletion_in_progress;
|
||||
|
||||
void update_title ();
|
||||
MixerStrip* strip_by_x (int x);
|
||||
|
|
|
|||
|
|
@ -66,8 +66,8 @@ protected:
|
|||
|
||||
void value_change ();
|
||||
|
||||
bool on_enter_notify_event (GdkEventCrossing *);
|
||||
bool on_leave_notify_event (GdkEventCrossing *);
|
||||
bool on_enter_notify_event (GdkEventCrossing *);
|
||||
bool on_leave_notify_event (GdkEventCrossing *);
|
||||
bool on_key_release_event (GdkEventKey *);
|
||||
bool on_button_press_event (GdkEventButton*);
|
||||
bool on_button_release_event (GdkEventButton*);
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ protected:
|
|||
void create_mute_automation_child (const Evoral::Parameter &, bool);
|
||||
void setup_processor_menu_and_curves ();
|
||||
void route_color_changed ();
|
||||
bool can_edit_name() const;
|
||||
bool can_edit_name() const;
|
||||
|
||||
boost::shared_ptr<AutomationTimeAxisView> gain_track;
|
||||
boost::shared_ptr<AutomationTimeAxisView> trim_track;
|
||||
|
|
|
|||
|
|
@ -1199,28 +1199,28 @@ RouteUI::update_solo_display ()
|
|||
solo_isolated_check->set_active (yn);
|
||||
}
|
||||
|
||||
set_button_names ();
|
||||
set_button_names ();
|
||||
|
||||
if (solo_isolated_led) {
|
||||
if (_route->solo_isolate_control()->solo_isolated()) {
|
||||
if (solo_isolated_led) {
|
||||
if (_route->solo_isolate_control()->solo_isolated()) {
|
||||
solo_isolated_led->set_active_state (Gtkmm2ext::ExplicitActive);
|
||||
} else {
|
||||
solo_isolated_led->unset_active_state ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (solo_safe_led) {
|
||||
if (_route->solo_safe_control()->solo_safe()) {
|
||||
if (solo_safe_led) {
|
||||
if (_route->solo_safe_control()->solo_safe()) {
|
||||
solo_safe_led->set_active_state (Gtkmm2ext::ExplicitActive);
|
||||
} else {
|
||||
solo_safe_led->unset_active_state ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
solo_button->set_active_state (solo_active_state (_route));
|
||||
|
||||
/* some changes to solo status can affect mute display, so catch up
|
||||
*/
|
||||
/* some changes to solo status can affect mute display, so catch up
|
||||
*/
|
||||
|
||||
update_mute_display ();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -123,8 +123,8 @@ class RouteUI : public virtual ARDOUR::SessionHandlePtr, public virtual PBD::Sco
|
|||
|
||||
Glib::RefPtr<Gdk::Pixbuf> solo_safe_pixbuf;
|
||||
|
||||
ArdourButton* solo_safe_led;
|
||||
ArdourButton* solo_isolated_led;
|
||||
ArdourButton* solo_safe_led;
|
||||
ArdourButton* solo_isolated_led;
|
||||
|
||||
|
||||
Gtk::Label monitor_input_button_label;
|
||||
|
|
@ -184,8 +184,8 @@ class RouteUI : public virtual ARDOUR::SessionHandlePtr, public virtual PBD::Sco
|
|||
void solo_isolated_toggle (void*, Gtk::CheckMenuItem*);
|
||||
void toggle_solo_isolated (Gtk::CheckMenuItem*);
|
||||
|
||||
bool solo_isolate_button_release (GdkEventButton*);
|
||||
bool solo_safe_button_release (GdkEventButton*);
|
||||
bool solo_isolate_button_release (GdkEventButton*);
|
||||
bool solo_safe_button_release (GdkEventButton*);
|
||||
|
||||
void solo_safe_toggle (void*, Gtk::CheckMenuItem*);
|
||||
void toggle_solo_safe (Gtk::CheckMenuItem*);
|
||||
|
|
@ -217,8 +217,8 @@ class RouteUI : public virtual ARDOUR::SessionHandlePtr, public virtual PBD::Sco
|
|||
void set_route_active (bool, bool);
|
||||
void duplicate_selected_routes ();
|
||||
|
||||
Gtk::Menu* record_menu;
|
||||
void build_record_menu ();
|
||||
Gtk::Menu* record_menu;
|
||||
void build_record_menu ();
|
||||
|
||||
Gtk::CheckMenuItem *step_edit_item;
|
||||
void toggle_step_edit ();
|
||||
|
|
@ -282,10 +282,10 @@ class RouteUI : public virtual ARDOUR::SessionHandlePtr, public virtual PBD::Sco
|
|||
void reset ();
|
||||
|
||||
void self_delete ();
|
||||
virtual void start_step_editing () {}
|
||||
virtual void stop_step_editing() {}
|
||||
virtual void start_step_editing () {}
|
||||
virtual void stop_step_editing() {}
|
||||
|
||||
void set_invert_sensitive (bool);
|
||||
void set_invert_sensitive (bool);
|
||||
bool verify_new_route_name (const std::string& name);
|
||||
|
||||
void route_gui_changed (PBD::PropertyChange const&);
|
||||
|
|
|
|||
|
|
@ -632,63 +632,63 @@ StepEntry::register_actions ()
|
|||
myactions.register_action (group, "octave-9", _("Switch to the 10th octave"), sigc::mem_fun (*this, &StepEntry::octave_9));
|
||||
myactions.register_action (group, "octave-10", _("Switch to the 11th octave"), sigc::mem_fun (*this, &StepEntry::octave_10));
|
||||
|
||||
myactions.register_toggle_action (group, "toggle-triplet", _("Toggle Triple Notes"),
|
||||
sigc::mem_fun (*this, &StepEntry::toggle_triplet));
|
||||
myactions.register_toggle_action (group, "toggle-triplet", _("Toggle Triple Notes"),
|
||||
sigc::mem_fun (*this, &StepEntry::toggle_triplet));
|
||||
|
||||
myactions.register_toggle_action (group, "toggle-chord", _("Toggle Chord Entry"),
|
||||
sigc::mem_fun (*this, &StepEntry::toggle_chord));
|
||||
myactions.register_action (group, "sustain", _("Sustain Selected Notes by Note Length"),
|
||||
sigc::mem_fun (*this, &StepEntry::do_sustain));
|
||||
myactions.register_toggle_action (group, "toggle-chord", _("Toggle Chord Entry"),
|
||||
sigc::mem_fun (*this, &StepEntry::toggle_chord));
|
||||
myactions.register_action (group, "sustain", _("Sustain Selected Notes by Note Length"),
|
||||
sigc::mem_fun (*this, &StepEntry::do_sustain));
|
||||
|
||||
myactions.register_action (group, "sync-to-edit-point", _("Move Insert Position to Edit Point"),
|
||||
sigc::mem_fun (*this, &StepEntry::sync_to_edit_point));
|
||||
myactions.register_action (group, "back", _("Move Insert Position Back by Note Length"),
|
||||
sigc::mem_fun (*this, &StepEntry::back));
|
||||
RadioAction::Group note_length_group;
|
||||
myactions.register_action (group, "sync-to-edit-point", _("Move Insert Position to Edit Point"),
|
||||
sigc::mem_fun (*this, &StepEntry::sync_to_edit_point));
|
||||
myactions.register_action (group, "back", _("Move Insert Position Back by Note Length"),
|
||||
sigc::mem_fun (*this, &StepEntry::back));
|
||||
RadioAction::Group note_length_group;
|
||||
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-whole",
|
||||
_("Set Note Length to Whole"), sigc::mem_fun (*this, &StepEntry::note_length_change), 1);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-half",
|
||||
_("Set Note Length to 1/2"), sigc::mem_fun (*this, &StepEntry::note_length_change), 2);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-third",
|
||||
_("Set Note Length to 1/3"), sigc::mem_fun (*this, &StepEntry::note_length_change), 3);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-quarter",
|
||||
_("Set Note Length to 1/4"), sigc::mem_fun (*this, &StepEntry::note_length_change), 4);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-eighth",
|
||||
_("Set Note Length to 1/8"), sigc::mem_fun (*this, &StepEntry::note_length_change), 8);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-sixteenth",
|
||||
_("Set Note Length to 1/16"), sigc::mem_fun (*this, &StepEntry::note_length_change), 16);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-thirtysecond",
|
||||
_("Set Note Length to 1/32"), sigc::mem_fun (*this, &StepEntry::note_length_change), 32);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-sixtyfourth",
|
||||
_("Set Note Length to 1/64"), sigc::mem_fun (*this, &StepEntry::note_length_change), 64);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-whole",
|
||||
_("Set Note Length to Whole"), sigc::mem_fun (*this, &StepEntry::note_length_change), 1);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-half",
|
||||
_("Set Note Length to 1/2"), sigc::mem_fun (*this, &StepEntry::note_length_change), 2);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-third",
|
||||
_("Set Note Length to 1/3"), sigc::mem_fun (*this, &StepEntry::note_length_change), 3);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-quarter",
|
||||
_("Set Note Length to 1/4"), sigc::mem_fun (*this, &StepEntry::note_length_change), 4);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-eighth",
|
||||
_("Set Note Length to 1/8"), sigc::mem_fun (*this, &StepEntry::note_length_change), 8);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-sixteenth",
|
||||
_("Set Note Length to 1/16"), sigc::mem_fun (*this, &StepEntry::note_length_change), 16);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-thirtysecond",
|
||||
_("Set Note Length to 1/32"), sigc::mem_fun (*this, &StepEntry::note_length_change), 32);
|
||||
myactions.register_radio_action (group, note_length_group, "note-length-sixtyfourth",
|
||||
_("Set Note Length to 1/64"), sigc::mem_fun (*this, &StepEntry::note_length_change), 64);
|
||||
|
||||
RadioAction::Group note_velocity_group;
|
||||
RadioAction::Group note_velocity_group;
|
||||
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-ppp",
|
||||
_("Set Note Velocity to Pianississimo"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 1);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-pp",
|
||||
_("Set Note Velocity to Pianissimo"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 16);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-p",
|
||||
_("Set Note Velocity to Piano"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 32);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-mp",
|
||||
_("Set Note Velocity to Mezzo-Piano"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 64);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-mf",
|
||||
_("Set Note Velocity to Mezzo-Forte"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 80);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-f",
|
||||
_("Set Note Velocity to Forte"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 96);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-ff",
|
||||
_("Set Note Velocity to Fortississimo"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 112);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-fff",
|
||||
_("Set Note Velocity to Fortississimo"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 127);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-ppp",
|
||||
_("Set Note Velocity to Pianississimo"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 1);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-pp",
|
||||
_("Set Note Velocity to Pianissimo"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 16);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-p",
|
||||
_("Set Note Velocity to Piano"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 32);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-mp",
|
||||
_("Set Note Velocity to Mezzo-Piano"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 64);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-mf",
|
||||
_("Set Note Velocity to Mezzo-Forte"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 80);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-f",
|
||||
_("Set Note Velocity to Forte"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 96);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-ff",
|
||||
_("Set Note Velocity to Fortississimo"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 112);
|
||||
myactions.register_radio_action (group, note_velocity_group, "note-velocity-fff",
|
||||
_("Set Note Velocity to Fortississimo"), sigc::mem_fun (*this, &StepEntry::note_velocity_change), 127);
|
||||
|
||||
|
||||
RadioAction::Group dot_group;
|
||||
RadioAction::Group dot_group;
|
||||
|
||||
myactions.register_radio_action (group, dot_group, "no-dotted", _("No Dotted Notes"), sigc::mem_fun (*this, &StepEntry::dot_change), 0);
|
||||
myactions.register_radio_action (group, dot_group, "toggle-dotted", _("Toggled Dotted Notes"), sigc::mem_fun (*this, &StepEntry::dot_change), 1);
|
||||
myactions.register_radio_action (group, dot_group, "toggle-double-dotted", _("Toggled Double-Dotted Notes"), sigc::mem_fun (*this, &StepEntry::dot_change), 2);
|
||||
myactions.register_radio_action (group, dot_group, "toggle-triple-dotted", _("Toggled Triple-Dotted Notes"), sigc::mem_fun (*this, &StepEntry::dot_change), 3);
|
||||
myactions.register_radio_action (group, dot_group, "no-dotted", _("No Dotted Notes"), sigc::mem_fun (*this, &StepEntry::dot_change), 0);
|
||||
myactions.register_radio_action (group, dot_group, "toggle-dotted", _("Toggled Dotted Notes"), sigc::mem_fun (*this, &StepEntry::dot_change), 1);
|
||||
myactions.register_radio_action (group, dot_group, "toggle-double-dotted", _("Toggled Double-Dotted Notes"), sigc::mem_fun (*this, &StepEntry::dot_change), 2);
|
||||
myactions.register_radio_action (group, dot_group, "toggle-triple-dotted", _("Toggled Triple-Dotted Notes"), sigc::mem_fun (*this, &StepEntry::dot_change), 3);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -34,175 +34,175 @@ class StepEditor;
|
|||
|
||||
class StepEntry : public ArdourWindow
|
||||
{
|
||||
public:
|
||||
StepEntry (StepEditor&);
|
||||
~StepEntry ();
|
||||
public:
|
||||
StepEntry (StepEditor&);
|
||||
~StepEntry ();
|
||||
|
||||
void note_off_event_handler (int note);
|
||||
void rest_event_handler ();
|
||||
void note_off_event_handler (int note);
|
||||
void rest_event_handler ();
|
||||
|
||||
Evoral::Beats note_length();
|
||||
uint8_t note_velocity() const;
|
||||
uint8_t note_channel() const;
|
||||
Evoral::Beats note_length();
|
||||
uint8_t note_velocity() const;
|
||||
uint8_t note_channel() const;
|
||||
|
||||
int current_octave () const { return (int) floor (octave_adjustment.get_value()); }
|
||||
int current_octave () const { return (int) floor (octave_adjustment.get_value()); }
|
||||
|
||||
private:
|
||||
Evoral::Beats _current_note_length;
|
||||
uint8_t _current_note_velocity;
|
||||
private:
|
||||
Evoral::Beats _current_note_length;
|
||||
uint8_t _current_note_velocity;
|
||||
|
||||
Gtk::VBox packer;
|
||||
Gtk::HBox upper_box;
|
||||
Gtk::HBox note_length_box;
|
||||
Gtk::HBox note_velocity_box;
|
||||
Gtk::VBox packer;
|
||||
Gtk::HBox upper_box;
|
||||
Gtk::HBox note_length_box;
|
||||
Gtk::HBox note_velocity_box;
|
||||
|
||||
Gtk::ToggleButton chord_button;
|
||||
Gtk::ToggleButton triplet_button;
|
||||
Gtk::ToggleButton dot0_button;
|
||||
Gtk::ToggleButton dot1_button;
|
||||
Gtk::ToggleButton dot2_button;
|
||||
Gtk::ToggleButton dot3_button;
|
||||
Gtk::Adjustment dot_adjustment;
|
||||
Gtk::VBox dot_box1;
|
||||
Gtk::VBox dot_box2;
|
||||
Gtk::ToggleButton restart_button;
|
||||
Gtk::ToggleButton chord_button;
|
||||
Gtk::ToggleButton triplet_button;
|
||||
Gtk::ToggleButton dot0_button;
|
||||
Gtk::ToggleButton dot1_button;
|
||||
Gtk::ToggleButton dot2_button;
|
||||
Gtk::ToggleButton dot3_button;
|
||||
Gtk::Adjustment dot_adjustment;
|
||||
Gtk::VBox dot_box1;
|
||||
Gtk::VBox dot_box2;
|
||||
Gtk::ToggleButton restart_button;
|
||||
|
||||
Gtk::VBox resync_box;
|
||||
Gtk::Button beat_resync_button;
|
||||
Gtk::Button bar_resync_button;
|
||||
Gtk::Button resync_button;
|
||||
Gtk::VBox resync_box;
|
||||
Gtk::Button beat_resync_button;
|
||||
Gtk::Button bar_resync_button;
|
||||
Gtk::Button resync_button;
|
||||
|
||||
Gtk::Button sustain_button;
|
||||
Gtk::Button rest_button;
|
||||
Gtk::Button grid_rest_button;
|
||||
Gtk::VBox rest_box;
|
||||
Gtk::Button sustain_button;
|
||||
Gtk::Button rest_button;
|
||||
Gtk::Button grid_rest_button;
|
||||
Gtk::VBox rest_box;
|
||||
|
||||
Gtk::Button back_button;
|
||||
Gtk::Button back_button;
|
||||
|
||||
Gtk::RadioButton length_1_button;
|
||||
Gtk::RadioButton length_2_button;
|
||||
Gtk::RadioButton length_4_button;
|
||||
Gtk::RadioButton length_8_button;
|
||||
Gtk::RadioButton length_12_button;
|
||||
Gtk::RadioButton length_16_button;
|
||||
Gtk::RadioButton length_32_button;
|
||||
Gtk::RadioButton length_64_button;
|
||||
Gtk::RadioButton length_1_button;
|
||||
Gtk::RadioButton length_2_button;
|
||||
Gtk::RadioButton length_4_button;
|
||||
Gtk::RadioButton length_8_button;
|
||||
Gtk::RadioButton length_12_button;
|
||||
Gtk::RadioButton length_16_button;
|
||||
Gtk::RadioButton length_32_button;
|
||||
Gtk::RadioButton length_64_button;
|
||||
|
||||
Gtk::RadioButton velocity_ppp_button;
|
||||
Gtk::RadioButton velocity_pp_button;
|
||||
Gtk::RadioButton velocity_p_button;
|
||||
Gtk::RadioButton velocity_mp_button;
|
||||
Gtk::RadioButton velocity_mf_button;
|
||||
Gtk::RadioButton velocity_f_button;
|
||||
Gtk::RadioButton velocity_ff_button;
|
||||
Gtk::RadioButton velocity_fff_button;
|
||||
Gtk::RadioButton velocity_ppp_button;
|
||||
Gtk::RadioButton velocity_pp_button;
|
||||
Gtk::RadioButton velocity_p_button;
|
||||
Gtk::RadioButton velocity_mp_button;
|
||||
Gtk::RadioButton velocity_mf_button;
|
||||
Gtk::RadioButton velocity_f_button;
|
||||
Gtk::RadioButton velocity_ff_button;
|
||||
Gtk::RadioButton velocity_fff_button;
|
||||
|
||||
Gtk::Adjustment channel_adjustment;
|
||||
Gtk::SpinButton channel_spinner;
|
||||
Gtk::Adjustment channel_adjustment;
|
||||
Gtk::SpinButton channel_spinner;
|
||||
|
||||
Gtk::Adjustment octave_adjustment;
|
||||
Gtk::SpinButton octave_spinner;
|
||||
Gtk::Adjustment octave_adjustment;
|
||||
Gtk::SpinButton octave_spinner;
|
||||
|
||||
Gtk::Adjustment length_divisor_adjustment;
|
||||
Gtk::SpinButton length_divisor_spinner;
|
||||
Gtk::Adjustment length_divisor_adjustment;
|
||||
Gtk::SpinButton length_divisor_spinner;
|
||||
|
||||
Gtk::Adjustment velocity_adjustment;
|
||||
Gtk::SpinButton velocity_spinner;
|
||||
Gtk::Adjustment velocity_adjustment;
|
||||
Gtk::SpinButton velocity_spinner;
|
||||
|
||||
Gtk::Adjustment bank_adjustment;
|
||||
Gtk::SpinButton bank_spinner;
|
||||
Gtk::Button bank_button;
|
||||
Gtk::Adjustment bank_adjustment;
|
||||
Gtk::SpinButton bank_spinner;
|
||||
Gtk::Button bank_button;
|
||||
|
||||
Gtk::Adjustment program_adjustment;
|
||||
Gtk::SpinButton program_spinner;
|
||||
Gtk::Button program_button;
|
||||
Gtk::Adjustment program_adjustment;
|
||||
Gtk::SpinButton program_spinner;
|
||||
Gtk::Button program_button;
|
||||
|
||||
void length_changed ();
|
||||
void velocity_changed ();
|
||||
void velocity_value_change ();
|
||||
void length_value_change ();
|
||||
void length_changed ();
|
||||
void velocity_changed ();
|
||||
void velocity_value_change ();
|
||||
void length_value_change ();
|
||||
|
||||
PianoKeyboard* _piano;
|
||||
Gtk::Widget* piano;
|
||||
StepEditor* se;
|
||||
PianoKeyboard* _piano;
|
||||
Gtk::Widget* piano;
|
||||
StepEditor* se;
|
||||
|
||||
void bank_click ();
|
||||
void program_click ();
|
||||
void beat_resync_click ();
|
||||
void bar_resync_click ();
|
||||
void bank_click ();
|
||||
void program_click ();
|
||||
void beat_resync_click ();
|
||||
void bar_resync_click ();
|
||||
|
||||
bool piano_enter_notify_event (GdkEventCrossing *ev);
|
||||
bool on_key_release_event (GdkEventKey*);
|
||||
bool on_key_press_event (GdkEventKey*);
|
||||
bool piano_enter_notify_event (GdkEventCrossing *ev);
|
||||
bool on_key_release_event (GdkEventKey*);
|
||||
bool on_key_press_event (GdkEventKey*);
|
||||
|
||||
void on_show ();
|
||||
void on_show ();
|
||||
|
||||
/* actions */
|
||||
/* actions */
|
||||
|
||||
void register_actions ();
|
||||
void register_actions ();
|
||||
|
||||
void insert_note (uint8_t);
|
||||
void insert_rest ();
|
||||
void insert_grid_rest ();
|
||||
void insert_note (uint8_t);
|
||||
void insert_rest ();
|
||||
void insert_grid_rest ();
|
||||
|
||||
void insert_a ();
|
||||
void insert_asharp ();
|
||||
void insert_b ();
|
||||
void insert_c ();
|
||||
void insert_csharp ();
|
||||
void insert_d ();
|
||||
void insert_dsharp ();
|
||||
void insert_e ();
|
||||
void insert_f ();
|
||||
void insert_fsharp ();
|
||||
void insert_g ();
|
||||
void insert_gsharp ();
|
||||
void insert_a ();
|
||||
void insert_asharp ();
|
||||
void insert_b ();
|
||||
void insert_c ();
|
||||
void insert_csharp ();
|
||||
void insert_d ();
|
||||
void insert_dsharp ();
|
||||
void insert_e ();
|
||||
void insert_f ();
|
||||
void insert_fsharp ();
|
||||
void insert_g ();
|
||||
void insert_gsharp ();
|
||||
|
||||
void note_length_change (GtkAction*);
|
||||
void note_velocity_change (GtkAction*);
|
||||
void note_length_change (GtkAction*);
|
||||
void note_velocity_change (GtkAction*);
|
||||
|
||||
bool radio_button_press (GdkEventButton*);
|
||||
bool radio_button_release (GdkEventButton*, Gtk::RadioButton*, int);
|
||||
bool radio_button_press (GdkEventButton*);
|
||||
bool radio_button_release (GdkEventButton*, Gtk::RadioButton*, int);
|
||||
|
||||
void load_bindings ();
|
||||
void load_bindings ();
|
||||
Gtkmm2ext::ActionMap myactions;
|
||||
Gtkmm2ext::Bindings* bindings;
|
||||
|
||||
void inc_note_velocity ();
|
||||
void dec_note_velocity ();
|
||||
void next_note_velocity ();
|
||||
void prev_note_velocity ();
|
||||
void inc_note_velocity ();
|
||||
void dec_note_velocity ();
|
||||
void next_note_velocity ();
|
||||
void prev_note_velocity ();
|
||||
|
||||
void inc_note_length ();
|
||||
void dec_note_length ();
|
||||
void next_note_length ();
|
||||
void prev_note_length ();
|
||||
void inc_note_length ();
|
||||
void dec_note_length ();
|
||||
void next_note_length ();
|
||||
void prev_note_length ();
|
||||
|
||||
void next_octave ();
|
||||
void prev_octave ();
|
||||
void next_octave ();
|
||||
void prev_octave ();
|
||||
|
||||
void octave_n (int n);
|
||||
void octave_0 () { octave_n (0); }
|
||||
void octave_1 () { octave_n (1); }
|
||||
void octave_2 () { octave_n (2); }
|
||||
void octave_3 () { octave_n (3); }
|
||||
void octave_4 () { octave_n (4); }
|
||||
void octave_5 () { octave_n (5); }
|
||||
void octave_6 () { octave_n (6); }
|
||||
void octave_7 () { octave_n (7); }
|
||||
void octave_8 () { octave_n (8); }
|
||||
void octave_9 () { octave_n (9); }
|
||||
void octave_10 () { octave_n (10); }
|
||||
void octave_n (int n);
|
||||
void octave_0 () { octave_n (0); }
|
||||
void octave_1 () { octave_n (1); }
|
||||
void octave_2 () { octave_n (2); }
|
||||
void octave_3 () { octave_n (3); }
|
||||
void octave_4 () { octave_n (4); }
|
||||
void octave_5 () { octave_n (5); }
|
||||
void octave_6 () { octave_n (6); }
|
||||
void octave_7 () { octave_n (7); }
|
||||
void octave_8 () { octave_n (8); }
|
||||
void octave_9 () { octave_n (9); }
|
||||
void octave_10 () { octave_n (10); }
|
||||
|
||||
void dot_change (GtkAction*);
|
||||
void dot_value_change ();
|
||||
void dot_change (GtkAction*);
|
||||
void dot_value_change ();
|
||||
|
||||
void toggle_triplet();
|
||||
void toggle_chord();
|
||||
void toggle_triplet();
|
||||
void toggle_chord();
|
||||
|
||||
void do_sustain ();
|
||||
void back();
|
||||
void sync_to_edit_point ();
|
||||
void do_sustain ();
|
||||
void back();
|
||||
void sync_to_edit_point ();
|
||||
};
|
||||
|
||||
#endif /* __gtk2_ardour_step_entry_h__ */
|
||||
|
|
|
|||
|
|
@ -29,11 +29,11 @@ namespace ARDOUR {
|
|||
}
|
||||
|
||||
namespace PBD {
|
||||
class Controllable;
|
||||
class Controllable;
|
||||
}
|
||||
|
||||
namespace ARDOUR {
|
||||
class Panner;
|
||||
class Panner;
|
||||
}
|
||||
|
||||
class StereoPanner : public PannerInterface
|
||||
|
|
@ -42,8 +42,8 @@ class StereoPanner : public PannerInterface
|
|||
StereoPanner (boost::shared_ptr<ARDOUR::PannerShell>);
|
||||
~StereoPanner ();
|
||||
|
||||
boost::shared_ptr<PBD::Controllable> get_position_controllable() const { return position_control; }
|
||||
boost::shared_ptr<PBD::Controllable> get_width_controllable() const { return width_control; }
|
||||
boost::shared_ptr<PBD::Controllable> get_position_controllable() const { return position_control; }
|
||||
boost::shared_ptr<PBD::Controllable> get_width_controllable() const { return width_control; }
|
||||
|
||||
sigc::signal<void> StartPositionGesture;
|
||||
sigc::signal<void> StopPositionGesture;
|
||||
|
|
@ -55,52 +55,52 @@ class StereoPanner : public PannerInterface
|
|||
bool on_button_press_event (GdkEventButton*);
|
||||
bool on_button_release_event (GdkEventButton*);
|
||||
bool on_motion_notify_event (GdkEventMotion*);
|
||||
bool on_scroll_event (GdkEventScroll*);
|
||||
bool on_key_press_event (GdkEventKey*);
|
||||
bool on_scroll_event (GdkEventScroll*);
|
||||
bool on_key_press_event (GdkEventKey*);
|
||||
|
||||
private:
|
||||
PannerEditor* editor ();
|
||||
boost::shared_ptr<ARDOUR::PannerShell> _panner_shell;
|
||||
|
||||
boost::shared_ptr<PBD::Controllable> position_control;
|
||||
boost::shared_ptr<PBD::Controllable> width_control;
|
||||
PBD::ScopedConnectionList panvalue_connections;
|
||||
PBD::ScopedConnectionList panshell_connections;
|
||||
bool dragging_position;
|
||||
bool dragging_left;
|
||||
bool dragging_right;
|
||||
int drag_start_x;
|
||||
int last_drag_x;
|
||||
double accumulated_delta;
|
||||
bool detented;
|
||||
boost::shared_ptr<PBD::Controllable> position_control;
|
||||
boost::shared_ptr<PBD::Controllable> width_control;
|
||||
PBD::ScopedConnectionList panvalue_connections;
|
||||
PBD::ScopedConnectionList panshell_connections;
|
||||
bool dragging_position;
|
||||
bool dragging_left;
|
||||
bool dragging_right;
|
||||
int drag_start_x;
|
||||
int last_drag_x;
|
||||
double accumulated_delta;
|
||||
bool detented;
|
||||
|
||||
BindingProxy position_binder;
|
||||
BindingProxy width_binder;
|
||||
BindingProxy position_binder;
|
||||
BindingProxy width_binder;
|
||||
|
||||
void set_tooltip ();
|
||||
void set_tooltip ();
|
||||
|
||||
struct ColorScheme {
|
||||
uint32_t outline;
|
||||
uint32_t fill;
|
||||
uint32_t text;
|
||||
uint32_t background;
|
||||
uint32_t rule;
|
||||
};
|
||||
struct ColorScheme {
|
||||
uint32_t outline;
|
||||
uint32_t fill;
|
||||
uint32_t text;
|
||||
uint32_t background;
|
||||
uint32_t rule;
|
||||
};
|
||||
|
||||
enum State {
|
||||
Normal,
|
||||
Mono,
|
||||
Inverted
|
||||
};
|
||||
enum State {
|
||||
Normal,
|
||||
Mono,
|
||||
Inverted
|
||||
};
|
||||
|
||||
bool _dragging;
|
||||
|
||||
static Pango::AttrList panner_font_attributes;
|
||||
static bool have_font;
|
||||
|
||||
static ColorScheme colors[3];
|
||||
static void set_colors ();
|
||||
static bool have_colors;
|
||||
static ColorScheme colors[3];
|
||||
static void set_colors ();
|
||||
static bool have_colors;
|
||||
void color_handler ();
|
||||
void bypass_handler ();
|
||||
void pannable_handler ();
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ namespace ArdourCanvas {
|
|||
class Pixbuf;
|
||||
class Rectangle;
|
||||
class Item;
|
||||
class Container;
|
||||
class Container;
|
||||
class Text;
|
||||
}
|
||||
|
||||
|
|
@ -158,9 +158,9 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
|
|||
|
||||
TimeAxisViewItem (const TimeAxisViewItem&);
|
||||
|
||||
void init (ArdourCanvas::Item*, double, uint32_t, framepos_t, framepos_t, Visibility, bool, bool);
|
||||
void init (ArdourCanvas::Item*, double, uint32_t, framepos_t, framepos_t, Visibility, bool, bool);
|
||||
|
||||
virtual bool canvas_group_event (GdkEvent*);
|
||||
virtual bool canvas_group_event (GdkEvent*);
|
||||
|
||||
virtual void set_colors();
|
||||
virtual void set_frame_color();
|
||||
|
|
@ -227,7 +227,7 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
|
|||
ArdourCanvas::Rectangle* frame_handle_start; ///< `frame' (fade) handle for the start of the item, or 0
|
||||
ArdourCanvas::Rectangle* frame_handle_end; ///< `frame' (fade) handle for the end of the item, or 0
|
||||
|
||||
bool frame_handle_crossing (GdkEvent*, ArdourCanvas::Rectangle*);
|
||||
bool frame_handle_crossing (GdkEvent*, ArdourCanvas::Rectangle*);
|
||||
|
||||
double _height;
|
||||
Visibility visibility;
|
||||
|
|
@ -238,10 +238,9 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList
|
|||
double _width;
|
||||
|
||||
private:
|
||||
|
||||
void parameter_changed (std::string);
|
||||
void manage_name_highlight ();
|
||||
void manage_name_text ();
|
||||
void manage_name_highlight ();
|
||||
void manage_name_text ();
|
||||
|
||||
}; /* class TimeAxisViewItem */
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ class LIBARDOUR_API AutomationList : public PBD::StatefulDestructible, public Ev
|
|||
|
||||
void start_touch (double when);
|
||||
void stop_touch (bool mark, double when);
|
||||
bool touching() const { return g_atomic_int_get (const_cast<gint*>(&_touching)); }
|
||||
bool touching() const { return g_atomic_int_get (const_cast<gint*>(&_touching)); }
|
||||
bool writing() const { return _state == Write; }
|
||||
bool touch_enabled() const { return _state == Touch; }
|
||||
|
||||
|
|
|
|||
|
|
@ -171,8 +171,8 @@ public:
|
|||
return fabs (a.azi - b.azi) < 1.0;
|
||||
}
|
||||
|
||||
virtual void freeze ();
|
||||
virtual void thaw ();
|
||||
virtual void freeze ();
|
||||
virtual void thaw ();
|
||||
|
||||
protected:
|
||||
boost::shared_ptr<Pannable> _pannable;
|
||||
|
|
@ -182,7 +182,7 @@ protected:
|
|||
framepos_t start, framepos_t end, pframes_t nframes,
|
||||
pan_t** buffers, uint32_t which) = 0;
|
||||
|
||||
int32_t _frozen;
|
||||
int32_t _frozen;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ public:
|
|||
|
||||
void what_has_data(std::set<Parameter>&) const;
|
||||
|
||||
Glib::Threads::Mutex& control_lock() const { return _control_lock; }
|
||||
Glib::Threads::Mutex& control_lock() const { return _control_lock; }
|
||||
|
||||
protected:
|
||||
virtual void control_list_marked_dirty () {}
|
||||
|
|
|
|||
|
|
@ -46,17 +46,17 @@ class Panner1in2out : public Panner
|
|||
bool clamp_position (double&);
|
||||
std::pair<double, double> position_range () const;
|
||||
|
||||
double position() const;
|
||||
double position() const;
|
||||
|
||||
ChanCount in() const { return ChanCount (DataType::AUDIO, 1); }
|
||||
ChanCount out() const { return ChanCount (DataType::AUDIO, 2); }
|
||||
ChanCount in() const { return ChanCount (DataType::AUDIO, 1); }
|
||||
ChanCount out() const { return ChanCount (DataType::AUDIO, 2); }
|
||||
|
||||
std::set<Evoral::Parameter> what_can_be_automated() const;
|
||||
std::set<Evoral::Parameter> what_can_be_automated() const;
|
||||
|
||||
static Panner* factory (boost::shared_ptr<Pannable>, boost::shared_ptr<Speakers>);
|
||||
static Panner* factory (boost::shared_ptr<Pannable>, boost::shared_ptr<Speakers>);
|
||||
|
||||
std::string describe_parameter (Evoral::Parameter);
|
||||
std::string value_as_string (boost::shared_ptr<const AutomationControl>) const;
|
||||
std::string describe_parameter (Evoral::Parameter);
|
||||
std::string value_as_string (boost::shared_ptr<const AutomationControl>) const;
|
||||
|
||||
XMLNode& get_state ();
|
||||
|
||||
|
|
@ -71,11 +71,11 @@ class Panner1in2out : public Panner
|
|||
float right_interp;
|
||||
|
||||
void distribute_one (AudioBuffer& src, BufferSet& obufs, gain_t gain_coeff, pframes_t nframes, uint32_t which);
|
||||
void distribute_one_automated (AudioBuffer& srcbuf, BufferSet& obufs,
|
||||
framepos_t start, framepos_t end, pframes_t nframes,
|
||||
pan_t** buffers, uint32_t which);
|
||||
void distribute_one_automated (AudioBuffer& srcbuf, BufferSet& obufs,
|
||||
framepos_t start, framepos_t end, pframes_t nframes,
|
||||
pan_t** buffers, uint32_t which);
|
||||
|
||||
void update ();
|
||||
void update ();
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
|
|||
|
|
@ -43,34 +43,34 @@ class Panner2in2out : public Panner
|
|||
Panner2in2out (boost::shared_ptr<Pannable>);
|
||||
~Panner2in2out ();
|
||||
|
||||
ChanCount in() const { return ChanCount (DataType::AUDIO, 2); }
|
||||
ChanCount out() const { return ChanCount (DataType::AUDIO, 2); }
|
||||
ChanCount in() const { return ChanCount (DataType::AUDIO, 2); }
|
||||
ChanCount out() const { return ChanCount (DataType::AUDIO, 2); }
|
||||
|
||||
bool clamp_position (double&);
|
||||
bool clamp_width (double&);
|
||||
bool clamp_position (double&);
|
||||
bool clamp_width (double&);
|
||||
|
||||
std::pair<double, double> position_range () const;
|
||||
std::pair<double, double> width_range () const;
|
||||
|
||||
void set_position (double);
|
||||
void set_width (double);
|
||||
void set_position (double);
|
||||
void set_width (double);
|
||||
|
||||
double position () const;
|
||||
double width () const;
|
||||
double position () const;
|
||||
double width () const;
|
||||
|
||||
std::set<Evoral::Parameter> what_can_be_automated() const;
|
||||
|
||||
static Panner* factory (boost::shared_ptr<Pannable>, boost::shared_ptr<Speakers>);
|
||||
|
||||
std::string describe_parameter (Evoral::Parameter);
|
||||
std::string value_as_string (boost::shared_ptr<const AutomationControl>) const;
|
||||
std::string describe_parameter (Evoral::Parameter);
|
||||
std::string value_as_string (boost::shared_ptr<const AutomationControl>) const;
|
||||
|
||||
XMLNode& get_state ();
|
||||
|
||||
void update ();
|
||||
void update ();
|
||||
|
||||
void reset ();
|
||||
void thaw ();
|
||||
void thaw ();
|
||||
|
||||
protected:
|
||||
float left[2];
|
||||
|
|
@ -81,12 +81,12 @@ class Panner2in2out : public Panner
|
|||
float right_interp[2];
|
||||
|
||||
private:
|
||||
bool clamp_stereo_pan (double& direction_as_lr_fract, double& width);
|
||||
bool clamp_stereo_pan (double& direction_as_lr_fract, double& width);
|
||||
|
||||
void distribute_one (AudioBuffer& srcbuf, BufferSet& obufs, gain_t gain_coeff, pframes_t nframes, uint32_t which);
|
||||
void distribute_one_automated (AudioBuffer& srcbuf, BufferSet& obufs,
|
||||
framepos_t start, framepos_t end, pframes_t nframes,
|
||||
pan_t** buffers, uint32_t which);
|
||||
void distribute_one (AudioBuffer& srcbuf, BufferSet& obufs, gain_t gain_coeff, pframes_t nframes, uint32_t which);
|
||||
void distribute_one_automated (AudioBuffer& srcbuf, BufferSet& obufs,
|
||||
framepos_t start, framepos_t end, pframes_t nframes,
|
||||
pan_t** buffers, uint32_t which);
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
|
|||
|
|
@ -35,14 +35,14 @@ const double BBT_Time::ticks_per_beat = 1920.0;
|
|||
|
||||
BBT_Time::BBT_Time (double dbeats)
|
||||
{
|
||||
/* NOTE: this does not construct a BBT time in a canonical form,
|
||||
in that beats may be a very large number, and bars will
|
||||
always be zero.
|
||||
*/
|
||||
/* NOTE: this does not construct a BBT time in a canonical form,
|
||||
in that beats may be a very large number, and bars will
|
||||
always be zero.
|
||||
*/
|
||||
|
||||
assert (dbeats >= 0);
|
||||
|
||||
bars = 0;
|
||||
beats = lrint (floor (dbeats));
|
||||
ticks = lrint (floor (BBT_Time::ticks_per_beat * fmod (dbeats, 1.0)));
|
||||
bars = 0;
|
||||
beats = lrint (floor (dbeats));
|
||||
ticks = lrint (floor (BBT_Time::ticks_per_beat * fmod (dbeats, 1.0)));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ struct LIBTIMECODE_API BBT_Time {
|
|||
BBT_Time (uint32_t ba, uint32_t be, uint32_t t)
|
||||
: bars (ba), beats (be), ticks (t) {}
|
||||
|
||||
BBT_Time (double beats);
|
||||
BBT_Time (double beats);
|
||||
|
||||
bool operator< (const BBT_Time& other) const {
|
||||
return bars < other.bars ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue