|
Ardour
9.0-pre0-1982-ga458a302d1
|
#include <midi_view.h>
Classes | |
| struct | NoteResizeData |
| struct | SplitInfo |
Public Types | |
| typedef Evoral::Note< Temporal::Beats > | NoteType |
| typedef Evoral::Sequence< Temporal::Beats >::Notes | Notes |
| typedef std::set< NoteBase * > | Selection |
Public Member Functions | |
| MidiView (std::shared_ptr< ARDOUR::MidiTrack > mt, ArdourCanvas::Item &parent, EditingContext &ec, MidiViewBackground &bg, uint32_t basic_color) | |
| MidiView (MidiView const &other) | |
| virtual | ~MidiView () |
| void | init (bool wfd) |
| virtual void | set_samples_per_pixel (double) |
| virtual bool | display_is_enabled () const |
| virtual ArdourCanvas::Item * | drag_group () const =0 |
| void | step_add_note (uint8_t channel, uint8_t number, uint8_t velocity, Temporal::Beats pos, Temporal::Beats len) |
| void | step_sustain (Temporal::Beats beats) |
| virtual void | set_height (double) |
| void | apply_note_range (uint8_t lowest, uint8_t highest, bool force=false) |
| void | color_handler () |
| void | show_step_edit_cursor (Temporal::Beats pos) |
| void | move_step_edit_cursor (Temporal::Beats pos) |
| void | hide_step_edit_cursor () |
| void | set_step_edit_cursor_width (Temporal::Beats beats) |
| virtual GhostRegion * | add_ghost (TimeAxisView &) |
| virtual std::string | get_modifier_name () const |
| virtual void | set_region (std::shared_ptr< ARDOUR::MidiRegion >) |
| virtual void | set_track (std::shared_ptr< ARDOUR::MidiTrack >) |
| virtual void | set_model (std::shared_ptr< ARDOUR::MidiModel >) |
| void | set_show_source (bool yn) |
| bool | show_source () const |
| bool | on_timeline () const |
| void | set_on_timeline (bool yn) |
| NoteBase * | add_note (const std::shared_ptr< NoteType > note, bool visible) |
| virtual void | cut_copy_clear (::Selection &, Editing::CutCopyOp) |
| bool | paste (Temporal::timepos_t const &pos, const ::Selection &selection, PasteContext &ctx) |
| void | paste_internal (Temporal::timepos_t const &pos, unsigned paste_count, float times, const MidiCutBuffer &) |
| void | add_canvas_patch_change (ARDOUR::MidiModel::PatchChangePtr patch) |
| void | remove_canvas_patch_change (PatchChange *pc) |
| void | get_patch_key_at (Temporal::Beats time, uint8_t channel, MIDI::Name::PatchPrimaryKey &key) const |
| MIDI::Name::PatchPrimaryKey | patch_change_to_patch_key (ARDOUR::MidiModel::PatchChangePtr) |
| void | change_patch_change (PatchChange &old_patch, const MIDI::Name::PatchPrimaryKey &new_patch) |
| void | change_patch_change (ARDOUR::MidiModel::PatchChangePtr, Evoral::PatchChange< Temporal::Beats > const &) |
| void | add_patch_change (Temporal::timecnt_t const &, Evoral::PatchChange< Temporal::Beats > const &) |
| void | move_patch_change (PatchChange &, Temporal::Beats) |
| void | delete_patch_change (PatchChange *) |
| void | edit_patch_change (PatchChange *) |
| void | delete_sysex (SysEx *) |
| void | step_patch (PatchChange &patch, bool bank, int delta) |
| void | display_patch_changes () |
| void | display_sysexes () |
| void | begin_write () |
| void | end_write () |
| void | extend_active_notes () |
| void | extend_active_notes (Temporal::timecnt_t const &) |
| virtual void | begin_drag_edit (std::string const &why) |
| void | end_drag_edit () |
| void | display_model (std::shared_ptr< ARDOUR::MidiModel > model) |
| std::shared_ptr< ARDOUR::MidiModel > | model () const |
| void | start_note_diff_command (std::string name="midi edit", bool with_reversible_command=true) |
| void | end_note_diff_command () |
| void | note_diff_add_change (NoteBase *ev, ARDOUR::MidiModel::NoteDiffCommand::Property, uint8_t val) |
| void | note_diff_add_change (NoteBase *ev, ARDOUR::MidiModel::NoteDiffCommand::Property, Temporal::Beats val) |
| void | note_diff_add_note (const std::shared_ptr< NoteType > note, bool selected, bool show_velocity=false) |
| void | note_diff_remove_note (NoteBase *ev) |
| void | apply_note_diff (bool as_subcommand=false, bool was_copy=false) |
| void | abort_note_diff () |
| void | note_entered (NoteBase *ev) |
| void | note_left (NoteBase *ev) |
| void | patch_entered (PatchChange *) |
| void | patch_left (PatchChange *) |
| void | sysex_entered (SysEx *p) |
| void | sysex_left (SysEx *p) |
| void | note_mouse_position (float xfraction, float yfraction, bool can_set_cursor=true) |
| void | unique_select (NoteBase *ev) |
| void | note_selected (NoteBase *ev, bool add, bool extend=false) |
| void | note_deselected (NoteBase *ev) |
| void | delete_selection () |
| void | delete_note (std::shared_ptr< NoteType >) |
| size_t | selection_size () |
| void | select_all_notes () |
| void | select_range (Temporal::timepos_t const &start, Temporal::timepos_t const &end) |
| void | invert_selection () |
| void | extend_selection () |
| void | duplicate_selection () |
| Temporal::Beats | earliest_in_selection () |
| void | move_selection (Temporal::timecnt_t const &dx, double dy, double cumulative_dy) |
| void | note_dropped (NoteBase *ev, Temporal::timecnt_t const &d_qn, int8_t d_note, bool copy) |
| NoteBase * | copy_selection (NoteBase *primary) |
| void | move_copies (Temporal::timecnt_t const &dx_qn, double dy, double cumulative_dy) |
| void | select_notes (std::list< Evoral::event_id_t >, bool allow_audition) |
| void | select_matching_notes (uint8_t notenum, uint16_t channel_mask, bool add, bool extend) |
| void | toggle_matching_notes (uint8_t notenum, uint16_t channel_mask) |
| virtual bool | note_in_region_range (const std::shared_ptr< NoteType > note, bool &visible) const |
| virtual bool | note_in_region_time_range (const std::shared_ptr< NoteType > note) const |
| double | get_position_pixels () |
| double | get_end_position_pixels () |
| void | begin_resizing (bool at_front) |
| void | update_resizing (NoteBase *primary, bool at_front, double delta_x, bool relative, double snap_delta, bool with_snap) |
| void | finish_resizing (NoteBase *primary, bool at_front, double delat_x, bool relative, double snap_delta, bool with_snap) |
| void | abort_resizing () |
| Temporal::timecnt_t | view_position_to_model_position (Temporal::timepos_t const &p) const |
| Temporal::timepos_t | source_beats_to_timeline (Temporal::Beats const &) const |
| Temporal::timepos_t | start () const |
| double | snap_to_pixel (double x, bool ensure_snap=false) |
| Temporal::timecnt_t | snap_pixel_to_time (double x, bool ensure_snap=false) |
| void | goto_previous_note (bool add_to_selection) |
| void | goto_next_note (bool add_to_selection) |
| void | change_note_lengths (bool, bool, Temporal::Beats beats, bool start, bool end) |
| void | change_velocities (bool up, bool fine, bool allow_smush, bool all_together) |
| void | set_velocity (NoteBase *primary, int velocity) |
| bool | set_velocity_for_notes (std::vector< NoteBase * > ¬es, int velocity) |
| bool | set_velocities_for_notes (std::vector< NoteBase * > ¬es, std::vector< int > &velocities) |
| void | transpose (bool up, bool fine, bool allow_smush) |
| void | nudge_notes (bool forward, bool fine) |
| void | strum_notes (bool forward, bool fine) |
| void | channel_edit () |
| void | velocity_edit () |
| void | show_list_editor () |
| void | set_note_range (uint8_t low, uint8_t high) |
| void | maybe_set_note_range (uint8_t low, uint8_t high) |
| virtual void | set_visibility_note_range (MidiViewBackground::VisibleNoteRange, bool) |
| Selection const & | selection () const |
| void | selection_as_notelist (Notes &selected, bool allow_all_if_none_selected=false) |
| void | set_channel_selector_scoped_note (NoteBase *note) |
| NoteBase * | channel_selector_scoped_note () |
| void | create_note_at (Temporal::timepos_t const &t, double y, Temporal::Beats length, uint32_t state, bool shift_snap, bool control_reversible_command=true) |
| void | clear_selection () |
| void | note_deleted (NoteBase *) |
| void | clear_note_selection () |
| void | shift_midi (Temporal::timepos_t const &, bool model) |
| void | show_verbose_cursor_for_new_note_value (std::shared_ptr< NoteType > current_note, uint8_t new_note) const |
| std::shared_ptr< ARDOUR::MidiTrack > | midi_track () const |
| std::shared_ptr< ARDOUR::MidiRegion > | midi_region () const |
| EditingContext & | editing_context () const |
| MidiViewBackground & | midi_context () const |
| void | clip_data_recorded (samplecnt_t) |
| virtual void | select_self (bool add) |
| virtual void | unselect_self () |
| void | select_self () |
| virtual void | select_self_uniquely () |
| void | show_start (bool yn) |
| void | show_end (bool yn) |
| virtual bool | midi_canvas_group_event (GdkEvent *ev) |
| int | visible_channel () const |
| void | set_visible_channel (int, bool clear_selection=true) |
| int | pick_visible_channel () const |
Public Member Functions inherited from LineMerger | |
| virtual | ~LineMerger () |
| virtual MergeableLine * | make_merger ()=0 |
Public Attributes | |
| PBD::Signal< void()> | VisibleChannelChanged |
Protected Types | |
| typedef std::unordered_map< std::shared_ptr< NoteType >, NoteBase * > | Events |
| typedef std::unordered_map< ARDOUR::MidiModel::PatchChangePtr, std::shared_ptr< PatchChange > > | PatchChanges |
| typedef std::unordered_map< ARDOUR::MidiModel::constSysExPtr, std::shared_ptr< SysEx > > | SysExes |
| typedef std::vector< NoteBase * > | CopyDragEvents |
Friends | |
| class | EditingContext |
| class | Editor |
| class | MidiRubberbandSelectDrag |
| class | MidiVerticalSelectDrag |
| class | NoteDrag |
| class | NoteCreateDrag |
| class | HitCreateDrag |
| class | NoteBrushDrag |
| class | MidiGhostRegion |
| class | EditNoteDialog |
| class | VelocityDisplay |
Definition at line 83 of file midi_view.h.
|
protected |
Definition at line 505 of file midi_view.h.
|
protected |
Definition at line 502 of file midi_view.h.
| typedef Evoral::Sequence<Temporal::Beats>::Notes MidiView::Notes |
Definition at line 87 of file midi_view.h.
Definition at line 86 of file midi_view.h.
|
protected |
Definition at line 503 of file midi_view.h.
| typedef std::set<NoteBase*> MidiView::Selection |
Definition at line 315 of file midi_view.h.
|
protected |
Definition at line 504 of file midi_view.h.
| MidiView::MidiView | ( | std::shared_ptr< ARDOUR::MidiTrack > | mt, |
| ArdourCanvas::Item & | parent, | ||
| EditingContext & | ec, | ||
| MidiViewBackground & | bg, | ||
| uint32_t | basic_color | ||
| ) |
| MidiView::MidiView | ( | MidiView const & | other | ) |
|
virtual |
| void MidiView::abort_note_diff | ( | ) |
| void MidiView::abort_resizing | ( | ) |
| void MidiView::add_canvas_patch_change | ( | ARDOUR::MidiModel::PatchChangePtr | patch | ) |
|
inlineprotectedvirtual |
Reimplemented in MidiRegionView.
Definition at line 681 of file midi_view.h.
|
inlinevirtual |
Reimplemented in MidiRegionView.
Definition at line 121 of file midi_view.h.
| void MidiView::add_patch_change | ( | Temporal::timecnt_t const & | , |
| Evoral::PatchChange< Temporal::Beats > const & | |||
| ) |
|
inlineprotected |
Definition at line 398 of file midi_view.h.
|
inlineprotected |
Definition at line 399 of file midi_view.h.
|
protected |
|
protected |
| void MidiView::apply_note_diff | ( | bool | as_subcommand = false, |
| bool | was_copy = false |
||
| ) |
| void MidiView::apply_note_range | ( | uint8_t | lowest, |
| uint8_t | highest, | ||
| bool | force = false |
||
| ) |
|
virtual |
Reimplemented in MidiRegionView.
| void MidiView::begin_resizing | ( | bool | at_front | ) |
Begin resizing of some notes. Called by CanvasMidiNote when resizing starts.
| at_front | which end of the note (true == note on, false == note off) |
| void MidiView::begin_write | ( | ) |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
| void MidiView::change_note_lengths | ( | bool | , |
| bool | , | ||
| Temporal::Beats | beats, | ||
| bool | start, | ||
| bool | end | ||
| ) |
|
protected |
|
protected |
|
protected |
| void MidiView::change_patch_change | ( | ARDOUR::MidiModel::PatchChangePtr | , |
| Evoral::PatchChange< Temporal::Beats > const & | |||
| ) |
| void MidiView::change_patch_change | ( | PatchChange & | old_patch, |
| const MIDI::Name::PatchPrimaryKey & | new_patch | ||
| ) |
Change old_patch to new_patch.
| old_patch | the canvas patch change which is to be altered |
| new_patch | new patch |
| void MidiView::change_velocities | ( | bool | up, |
| bool | fine, | ||
| bool | allow_smush, | ||
| bool | all_together | ||
| ) |
| void MidiView::channel_edit | ( | ) |
|
inline |
Definition at line 323 of file midi_view.h.
|
protected |
|
inlineprotectedvirtual |
Reimplemented in PianorollMidiView, and MidiRegionView.
Definition at line 462 of file midi_view.h.
| void MidiView::clear_note_selection | ( | ) |
| void MidiView::clear_selection | ( | ) |
An external request to clear the note selection, remove MRV from editor selection.
|
protected |
Clear the note selection of just this midi region
|
protected |
| void MidiView::clip_data_recorded | ( | samplecnt_t | ) |
| void MidiView::color_handler | ( | ) |
|
protected |
|
inlineprotectedvirtual |
Reimplemented in MidiRegionView.
Definition at line 623 of file midi_view.h.
|
protected |
| void MidiView::create_note_at | ( | Temporal::timepos_t const & | t, |
| double | y, | ||
| Temporal::Beats | length, | ||
| uint32_t | state, | ||
| bool | shift_snap, | ||
| bool | control_reversible_command = true |
||
| ) |
Add a note to the model, and the view, at a canvas (click) coordinate.
| t | time in samples relative to the position of the region |
| y | vertical position in pixels |
| length | duration of the note in beats |
| state | the keyboard modifier mask for the canvas event (click). |
| shift_snap | true alters snap behavior to round down always (false if the gui has already done that). |
|
virtual |
Reimplemented in PianorollMidiView.
|
protected |
|
inlineprotected |
Definition at line 410 of file midi_view.h.
|
inlineprotected |
Definition at line 411 of file midi_view.h.
|
inlineprotected |
Definition at line 414 of file midi_view.h.
|
inlineprotected |
Definition at line 417 of file midi_view.h.
|
inlineprotected |
Definition at line 415 of file midi_view.h.
|
inlineprotected |
Definition at line 412 of file midi_view.h.
|
inlineprotected |
Definition at line 416 of file midi_view.h.
|
inlineprotected |
Definition at line 413 of file midi_view.h.
| void MidiView::delete_note | ( | std::shared_ptr< NoteType > | ) |
| void MidiView::delete_patch_change | ( | PatchChange * | ) |
| void MidiView::delete_selection | ( | ) |
| void MidiView::delete_sysex | ( | SysEx * | ) |
|
inlinevirtual |
Reimplemented in MidiRegionView.
Definition at line 102 of file midi_view.h.
| void MidiView::display_model | ( | std::shared_ptr< ARDOUR::MidiModel > | model | ) |
| void MidiView::display_patch_changes | ( | ) |
Displays all patch change events in the region as flags on the canvas.
|
protected |
| void MidiView::display_sysexes | ( | ) |
Displays all system exclusive events in the region as flags on the canvas.
|
pure virtual |
Implemented in PianorollMidiView, and MidiRegionView.
|
protected |
| void MidiView::duplicate_selection | ( | ) |
| Temporal::Beats MidiView::earliest_in_selection | ( | ) |
| void MidiView::edit_patch_change | ( | PatchChange * | ) |
|
inline |
Definition at line 348 of file midi_view.h.
|
protected |
| void MidiView::end_drag_edit | ( | ) |
| void MidiView::end_note_diff_command | ( | ) |
|
protected |
| void MidiView::end_write | ( | ) |
|
protectedvirtual |
Reimplemented in MidiRegionView.
|
protectedvirtual |
Reimplemented in MidiRegionView.
| void MidiView::extend_active_notes | ( | ) |
| void MidiView::extend_active_notes | ( | Temporal::timecnt_t const & | ) |
|
protected |
| void MidiView::extend_selection | ( | ) |
|
inlineprotected |
Definition at line 660 of file midi_view.h.
|
protected |
connection used to connect to model's ContentChanged signal
|
protected |
|
protected |
| void MidiView::finish_resizing | ( | NoteBase * | primary, |
| bool | at_front, | ||
| double | delat_x, | ||
| bool | relative, | ||
| double | snap_delta, | ||
| bool | with_snap | ||
| ) |
|
protected |
|
protected |
|
protected |
| double MidiView::get_end_position_pixels | ( | ) |
Get the region end position in pixels relative to session.
|
protected |
|
protected |
Get grid type as beats, or default to 1 if not snapped to beats.
|
virtual |
Reimplemented in MidiRegionView.
|
protected |
| void MidiView::get_patch_key_at | ( | Temporal::Beats | time, |
| uint8_t | channel, | ||
| MIDI::Name::PatchPrimaryKey & | key | ||
| ) | const |
Look up the given time and channel in the 'automation' and set keys accordingly.
| time | the time of the patch change event |
| channel | the MIDI channel of the event |
| key | a reference to an instance of MIDI::Name::PatchPrimaryKey whose fields will will be set according to the result of the lookup |
| double MidiView::get_position_pixels | ( | ) |
Get the region position in pixels relative to session.
|
protected |
|
protected |
|
inlineprotectedvirtual |
Reimplemented in PianorollMidiView, and MidiRegionView.
Definition at line 466 of file midi_view.h.
|
inlineprotectedvirtual |
Reimplemented in PianorollMidiView, and MidiRegionView.
Definition at line 465 of file midi_view.h.
|
inlineprotectedvirtual |
Reimplemented in PianorollMidiView, and MidiRegionView.
Definition at line 467 of file midi_view.h.
|
inlineprotectedvirtual |
Reimplemented in PianorollMidiView, and MidiRegionView.
Definition at line 463 of file midi_view.h.
|
inlineprotectedvirtual |
Reimplemented in PianorollMidiView, and MidiRegionView.
Definition at line 464 of file midi_view.h.
| void MidiView::goto_next_note | ( | bool | add_to_selection | ) |
| void MidiView::goto_previous_note | ( | bool | add_to_selection | ) |
|
protectedvirtual |
Reimplemented in MidiRegionView.
| void MidiView::hide_step_edit_cursor | ( | ) |
|
protected |
|
inlineprotected |
Definition at line 401 of file midi_view.h.
|
inlineprotected |
Definition at line 402 of file midi_view.h.
|
inlineprotected |
Definition at line 405 of file midi_view.h.
|
inlineprotected |
Definition at line 408 of file midi_view.h.
|
inlineprotected |
Definition at line 406 of file midi_view.h.
|
inlineprotected |
Definition at line 403 of file midi_view.h.
|
inlineprotected |
Definition at line 407 of file midi_view.h.
|
inlineprotected |
Definition at line 404 of file midi_view.h.
| void MidiView::init | ( | bool | wfd | ) |
|
protected |
|
protected |
|
protected |
| void MidiView::invert_selection | ( | ) |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in MidiRegionView.
|
protectedvirtual |
Reimplemented in MidiRegionView.
|
protected |
| void MidiView::maybe_set_note_range | ( | uint8_t | low, |
| uint8_t | high | ||
| ) |
|
virtual |
Reimplemented in PianorollMidiView.
|
protected |
|
inline |
Definition at line 349 of file midi_view.h.
|
inline |
Definition at line 347 of file midi_view.h.
|
inline |
Definition at line 346 of file midi_view.h.
|
inline |
Definition at line 193 of file midi_view.h.
|
protected |
|
protectedvirtual |
Reimplemented in MidiRegionView.
|
protectedvirtual |
Reimplemented in MidiRegionView.
| void MidiView::move_copies | ( | Temporal::timecnt_t const & | dx_qn, |
| double | dy, | ||
| double | cumulative_dy | ||
| ) |
|
inlineprotected |
Definition at line 394 of file midi_view.h.
|
inlineprotected |
Definition at line 393 of file midi_view.h.
|
inlineprotected |
Definition at line 390 of file midi_view.h.
|
inlineprotected |
Definition at line 389 of file midi_view.h.
|
inlineprotected |
Definition at line 388 of file midi_view.h.
|
inlineprotected |
Definition at line 387 of file midi_view.h.
|
inlineprotected |
Definition at line 392 of file midi_view.h.
|
inlineprotected |
Definition at line 391 of file midi_view.h.
| void MidiView::move_patch_change | ( | PatchChange & | , |
| Temporal::Beats | |||
| ) |
| void MidiView::move_selection | ( | Temporal::timecnt_t const & | dx, |
| double | dy, | ||
| double | cumulative_dy | ||
| ) |
| void MidiView::move_step_edit_cursor | ( | Temporal::Beats | pos | ) |
|
protected |
| void MidiView::note_deleted | ( | NoteBase * | ) |
| void MidiView::note_deselected | ( | NoteBase * | ev | ) |
| void MidiView::note_diff_add_change | ( | NoteBase * | ev, |
| ARDOUR::MidiModel::NoteDiffCommand::Property | , | ||
| Temporal::Beats | val | ||
| ) |
| void MidiView::note_diff_add_change | ( | NoteBase * | ev, |
| ARDOUR::MidiModel::NoteDiffCommand::Property | , | ||
| uint8_t | val | ||
| ) |
| void MidiView::note_diff_add_note | ( | const std::shared_ptr< NoteType > | note, |
| bool | selected, | ||
| bool | show_velocity = false |
||
| ) |
| void MidiView::note_diff_remove_note | ( | NoteBase * | ev | ) |
| void MidiView::note_dropped | ( | NoteBase * | ev, |
| Temporal::timecnt_t const & | d_qn, | ||
| int8_t | d_note, | ||
| bool | copy | ||
| ) |
|
protected |
| void MidiView::note_entered | ( | NoteBase * | ev | ) |
|
inlineprotected |
Definition at line 624 of file midi_view.h.
|
virtual |
Test if a note is within this region's range
| note | the note to test |
| visible | will be set to true if the note is within the visible note range, false otherwise. |
|
virtual |
| void MidiView::note_left | ( | NoteBase * | ev | ) |
|
protected |
| void MidiView::note_mouse_position | ( | float | xfraction, |
| float | yfraction, | ||
| bool | can_set_cursor = true |
||
| ) |
| void MidiView::note_selected | ( | NoteBase * | ev, |
| bool | add, | ||
| bool | extend = false |
||
| ) |
|
inlineprotected |
Definition at line 626 of file midi_view.h.
| void MidiView::nudge_notes | ( | bool | forward, |
| bool | fine | ||
| ) |
|
inlineprotected |
Definition at line 431 of file midi_view.h.
|
inlineprotected |
Definition at line 432 of file midi_view.h.
|
inlineprotected |
Definition at line 429 of file midi_view.h.
|
inlineprotected |
Definition at line 430 of file midi_view.h.
|
inline |
Definition at line 130 of file midi_view.h.
| bool MidiView::paste | ( | Temporal::timepos_t const & | pos, |
| const ::Selection & | selection, | ||
| PasteContext & | ctx | ||
| ) |
| void MidiView::paste_internal | ( | Temporal::timepos_t const & | pos, |
| unsigned | paste_count, | ||
| float | times, | ||
| const MidiCutBuffer & | |||
| ) |
| MIDI::Name::PatchPrimaryKey MidiView::patch_change_to_patch_key | ( | ARDOUR::MidiModel::PatchChangePtr | ) |
Convert a given PatchChange into a PatchPrimaryKey
| void MidiView::patch_entered | ( | PatchChange * | ) |
| void MidiView::patch_left | ( | PatchChange * | ) |
| int MidiView::pick_visible_channel | ( | ) | const |
|
protected |
Play the NoteOn event of the given note immediately and schedule the playback of the corresponding NoteOff event.
|
inlineprotectedvirtual |
Reimplemented in MidiRegionView.
Definition at line 684 of file midi_view.h.
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Reimplemented in MidiRegionView.
|
protected |
| void MidiView::remove_canvas_patch_change | ( | PatchChange * | pc | ) |
|
protected |
|
protected |
|
protectedvirtual |
Reimplemented in PianorollMidiView, and MidiRegionView.
|
protectedvirtual |
Reimplemented in PianorollMidiView, and MidiRegionView.
| void MidiView::select_all_notes | ( | ) |
| void MidiView::select_matching_notes | ( | uint8_t | notenum, |
| uint16_t | channel_mask, | ||
| bool | add, | ||
| bool | extend | ||
| ) |
|
inlineprotected |
Definition at line 396 of file midi_view.h.
| void MidiView::select_notes | ( | std::list< Evoral::event_id_t > | , |
| bool | allow_audition | ||
| ) |
|
inlineprotected |
Definition at line 397 of file midi_view.h.
| void MidiView::select_range | ( | Temporal::timepos_t const & | start, |
| Temporal::timepos_t const & | end | ||
| ) |
|
inline |
Definition at line 355 of file midi_view.h.
|
inlinevirtual |
Reimplemented in MidiRegionView.
Definition at line 353 of file midi_view.h.
|
inlinevirtual |
Reimplemented in MidiRegionView.
Definition at line 356 of file midi_view.h.
|
inline |
Definition at line 316 of file midi_view.h.
|
protected |
| void MidiView::selection_as_notelist | ( | Notes & | selected, |
| bool | allow_all_if_none_selected = false |
||
| ) |
|
inline |
Definition at line 220 of file midi_view.h.
|
inline |
Definition at line 322 of file midi_view.h.
|
inlineprotected |
Definition at line 661 of file midi_view.h.
|
protected |
|
virtual |
Reimplemented in PianorollMidiView, and MidiRegionView.
|
virtual |
Reimplemented in MidiRegionView.
| void MidiView::set_note_range | ( | uint8_t | low, |
| uint8_t | high | ||
| ) |
| void MidiView::set_on_timeline | ( | bool | yn | ) |
|
virtual |
|
inlinevirtual |
Reimplemented in PianorollMidiView.
Definition at line 100 of file midi_view.h.
| void MidiView::set_show_source | ( | bool | yn | ) |
| void MidiView::set_step_edit_cursor_width | ( | Temporal::Beats | beats | ) |
|
virtual |
| bool MidiView::set_velocities_for_notes | ( | std::vector< NoteBase * > & | notes, |
| std::vector< int > & | velocities | ||
| ) |
| void MidiView::set_velocity | ( | NoteBase * | primary, |
| int | velocity | ||
| ) |
| bool MidiView::set_velocity_for_notes | ( | std::vector< NoteBase * > & | notes, |
| int | velocity | ||
| ) |
|
virtual |
Reimplemented in MidiRegionView.
| void MidiView::set_visible_channel | ( | int | , |
| bool | clear_selection = true |
||
| ) |
| void MidiView::shift_midi | ( | Temporal::timepos_t const & | , |
| bool | model | ||
| ) |
| void MidiView::show_end | ( | bool | yn | ) |
| void MidiView::show_list_editor | ( | ) |
|
inline |
Definition at line 129 of file midi_view.h.
| void MidiView::show_start | ( | bool | yn | ) |
| void MidiView::show_step_edit_cursor | ( | Temporal::Beats | pos | ) |
|
protected |
|
protected |
| void MidiView::show_verbose_cursor_for_new_note_value | ( | std::shared_ptr< NoteType > | current_note, |
| uint8_t | new_note | ||
| ) | const |
|
protected |
|
protected |
|
protected |
| Temporal::timecnt_t MidiView::snap_pixel_to_time | ( | double | x, |
| bool | ensure_snap = false |
||
| ) |
Snap a region relative pixel coordinate to time units.
| x | a pixel coordinate relative to region start |
| ensure_snap | ignore SnapOff and magnetic snap. Required for inverting snap logic with modifier keys and snap delta calculation. |
| double MidiView::snap_to_pixel | ( | double | x, |
| bool | ensure_snap = false |
||
| ) |
Snap a region relative pixel coordinate to pixel units.
| x | a pixel coordinate relative to region start |
| ensure_snap | do not use magnetic snap (required for snap delta calculation) |
| Temporal::timepos_t MidiView::source_beats_to_timeline | ( | Temporal::Beats const & | ) | const |
|
protected |
|
protected |
|
protected |
| Temporal::timepos_t MidiView::start | ( | ) | const |
|
protected |
| void MidiView::start_note_diff_command | ( | std::string | name = "midi edit", |
| bool | with_reversible_command = true |
||
| ) |
|
protected |
|
protected |
|
protected |
| void MidiView::step_add_note | ( | uint8_t | channel, |
| uint8_t | number, | ||
| uint8_t | velocity, | ||
| Temporal::Beats | pos, | ||
| Temporal::Beats | len | ||
| ) |
| void MidiView::step_patch | ( | PatchChange & | patch, |
| bool | bank, | ||
| int | delta | ||
| ) |
Change a patch to the next or previous bank/program.
| patch | The patch-change instance (canvas item) |
| bank | If true, step bank, otherwise, step program. |
| delta | Amount to adjust number. |
| void MidiView::step_sustain | ( | Temporal::Beats | beats | ) |
|
protected |
| void MidiView::strum_notes | ( | bool | forward, |
| bool | fine | ||
| ) |
|
inlineprotected |
Definition at line 437 of file midi_view.h.
|
inlineprotected |
Definition at line 436 of file midi_view.h.
|
protected |
|
protected |
| void MidiView::sysex_entered | ( | SysEx * | p | ) |
| void MidiView::sysex_left | ( | SysEx * | p | ) |
| void MidiView::toggle_matching_notes | ( | uint8_t | notenum, |
| uint16_t | channel_mask | ||
| ) |
|
protected |
| void MidiView::transpose | ( | bool | up, |
| bool | fine, | ||
| bool | allow_smush | ||
| ) |
|
inlineprotected |
Definition at line 424 of file midi_view.h.
|
inlineprotected |
Definition at line 425 of file midi_view.h.
|
inlineprotected |
Definition at line 426 of file midi_view.h.
|
inlineprotected |
Definition at line 427 of file midi_view.h.
|
inlineprotected |
Definition at line 419 of file midi_view.h.
|
inlineprotected |
Definition at line 420 of file midi_view.h.
|
inlineprotected |
Definition at line 421 of file midi_view.h.
|
inlineprotected |
Definition at line 422 of file midi_view.h.
|
protected |
| void MidiView::unique_select | ( | NoteBase * | ev | ) |
|
inlinevirtual |
Reimplemented in MidiRegionView.
Definition at line 354 of file midi_view.h.
|
protected |
|
protected |
|
protectedvirtual |
Reimplemented in PianorollMidiView.
|
protected |
|
protected |
| void MidiView::update_resizing | ( | NoteBase * | primary, |
| bool | at_front, | ||
| double | delta_x, | ||
| bool | relative, | ||
| double | snap_delta, | ||
| bool | with_snap | ||
| ) |
|
protectedvirtual |
Reimplemented in PianorollMidiView.
|
protected |
|
protected |
| void MidiView::velocity_edit | ( | ) |
|
protected |
| Temporal::timecnt_t MidiView::view_position_to_model_position | ( | Temporal::timepos_t const & | p | ) | const |
|
inline |
Definition at line 363 of file midi_view.h.
|
inlineprotected |
Definition at line 627 of file midi_view.h.
|
friend |
Definition at line 381 of file midi_view.h.
|
friend |
Definition at line 448 of file midi_view.h.
|
friend |
Definition at line 382 of file midi_view.h.
|
friend |
Definition at line 444 of file midi_view.h.
|
friend |
Definition at line 446 of file midi_view.h.
|
friend |
Definition at line 440 of file midi_view.h.
|
friend |
Definition at line 441 of file midi_view.h.
|
friend |
Definition at line 445 of file midi_view.h.
|
friend |
Definition at line 443 of file midi_view.h.
|
friend |
Definition at line 442 of file midi_view.h.
|
friend |
Definition at line 562 of file midi_view.h.
|
protected |
Definition at line 516 of file midi_view.h.
|
protected |
Definition at line 526 of file midi_view.h.
|
protected |
Definition at line 513 of file midi_view.h.
|
protected |
Definition at line 508 of file midi_view.h.
|
protected |
Definition at line 528 of file midi_view.h.
|
protected |
Definition at line 609 of file midi_view.h.
|
protected |
Definition at line 610 of file midi_view.h.
|
protected |
Definition at line 512 of file midi_view.h.
|
protected |
Definition at line 658 of file midi_view.h.
|
protected |
Definition at line 520 of file midi_view.h.
|
protected |
Definition at line 605 of file midi_view.h.
|
protected |
Definition at line 607 of file midi_view.h.
|
protected |
Definition at line 608 of file midi_view.h.
|
protected |
Definition at line 521 of file midi_view.h.
|
protected |
Definition at line 522 of file midi_view.h.
|
protected |
Definition at line 572 of file midi_view.h.
|
protected |
New notes (created in the current command) which should be selected when they appear after the command is applied.
Definition at line 542 of file midi_view.h.
|
protected |
New notes (created in the current command) which should have visible velocity when they appear after the command is applied.
Definition at line 549 of file midi_view.h.
|
protected |
Definition at line 509 of file midi_view.h.
|
protected |
Definition at line 511 of file midi_view.h.
|
protected |
Definition at line 507 of file midi_view.h.
|
protected |
Definition at line 510 of file midi_view.h.
|
protected |
Definition at line 613 of file midi_view.h.
|
protected |
Definition at line 573 of file midi_view.h.
|
protected |
Definition at line 519 of file midi_view.h.
|
protected |
Definition at line 518 of file midi_view.h.
|
protected |
Definition at line 530 of file midi_view.h.
|
protected |
Definition at line 557 of file midi_view.h.
|
protected |
Definition at line 616 of file midi_view.h.
|
protected |
Definition at line 615 of file midi_view.h.
|
protected |
Definition at line 514 of file midi_view.h.
|
protected |
Notes that should be selected when the model is redisplayed.
Definition at line 545 of file midi_view.h.
|
protected |
Definition at line 551 of file midi_view.h.
|
protected |
Definition at line 611 of file midi_view.h.
|
protected |
Currently selected NoteBase objects
Definition at line 536 of file midi_view.h.
|
protected |
Definition at line 529 of file midi_view.h.
|
protected |
Definition at line 527 of file midi_view.h.
|
protected |
Definition at line 523 of file midi_view.h.
|
protected |
Definition at line 525 of file midi_view.h.
|
protected |
Definition at line 524 of file midi_view.h.
|
protected |
Definition at line 515 of file midi_view.h.
|
protected |
Definition at line 533 of file midi_view.h.
|
protected |
Definition at line 517 of file midi_view.h.
|
protected |
Definition at line 471 of file midi_view.h.
|
protected |
Definition at line 532 of file midi_view.h.
|
protected |
Definition at line 654 of file midi_view.h.
|
protected |
Definition at line 657 of file midi_view.h.
|
protected |
Definition at line 473 of file midi_view.h.
|
protected |
Definition at line 531 of file midi_view.h.
|
protected |
Definition at line 653 of file midi_view.h.
|
protected |
Definition at line 656 of file midi_view.h.
|
protected |
Definition at line 472 of file midi_view.h.
| PBD::Signal<void()> MidiView::VisibleChannelChanged |
Definition at line 366 of file midi_view.h.