Ardour
9.0-pre0-582-g084a23a80d
|
#include <midi_view.h>
Classes | |
struct | NoteResizeData |
struct | SplitInfo |
Public Types | |
enum | MouseState { None , Pressed , SelectTouchDragging , SelectRectDragging , SelectVerticalDragging , AddDragging } |
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) |
virtual uint32_t | get_fill_color () const |
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 >) |
NoteBase * | add_note (const std::shared_ptr< NoteType > note, bool visible) |
void | cut_copy_clear (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") |
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 () |
void | change_channel (uint8_t channel) |
MouseState | mouse_state () 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 | channel_edit () |
void | velocity_edit () |
void | show_list_editor () |
void | 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 | trim_front_starting () |
void | trim_front_ending () |
void | create_note_at (Temporal::timepos_t const &t, double y, Temporal::Beats length, uint32_t state, bool shift_snap) |
void | clear_selection () |
void | note_deleted (NoteBase *) |
void | clear_note_selection () |
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 | canvas_group_event (GdkEvent *ev) |
Public Member Functions inherited from LineMerger | |
virtual | ~LineMerger () |
virtual MergeableLine * | make_merger ()=0 |
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 | MidiGhostRegion |
class | EditNoteDialog |
class | VelocityDisplay |
Definition at line 79 of file midi_view.h.
|
protected |
Definition at line 488 of file midi_view.h.
|
protected |
Definition at line 485 of file midi_view.h.
typedef Evoral::Sequence<Temporal::Beats>::Notes MidiView::Notes |
Definition at line 83 of file midi_view.h.
Definition at line 82 of file midi_view.h.
|
protected |
Definition at line 486 of file midi_view.h.
typedef std::set<NoteBase*> MidiView::Selection |
Definition at line 307 of file midi_view.h.
|
protected |
Definition at line 487 of file midi_view.h.
enum MidiView::MouseState |
Enumerator | |
---|---|
None | |
Pressed | |
SelectTouchDragging | |
SelectRectDragging | |
SelectVerticalDragging | |
AddDragging |
Definition at line 259 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 662 of file midi_view.h.
|
inlinevirtual |
Reimplemented in MidiRegionView.
Definition at line 118 of file midi_view.h.
void MidiView::add_patch_change | ( | Temporal::timecnt_t const & | , |
Evoral::PatchChange< Temporal::Beats > const & | |||
) |
|
inlineprotected |
Definition at line 385 of file midi_view.h.
|
inlineprotected |
Definition at line 386 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 |
Reimplemented in MidiRegionView.
|
protectedvirtual |
Reimplemented in MidiRegionView.
|
virtual |
Reimplemented in MidiRegionView.
void MidiView::change_channel | ( | uint8_t | channel | ) |
Change the channel of the selection.
channel | - the channel number of the new channel, zero-based |
|
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 315 of file midi_view.h.
|
protected |
|
inlineprotectedvirtual |
Reimplemented in MidiRegionView, and MidiCueView.
Definition at line 445 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 | ( | ) |
|
inlineprotectedvirtual |
Reimplemented in MidiRegionView.
Definition at line 606 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 | ||
) |
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). |
void MidiView::cut_copy_clear | ( | Editing::CutCopyOp | ) |
|
protected |
|
inlineprotected |
Definition at line 397 of file midi_view.h.
|
inlineprotected |
Definition at line 398 of file midi_view.h.
|
inlineprotected |
Definition at line 401 of file midi_view.h.
|
inlineprotected |
Definition at line 404 of file midi_view.h.
|
inlineprotected |
Definition at line 402 of file midi_view.h.
|
inlineprotected |
Definition at line 399 of file midi_view.h.
|
inlineprotected |
Definition at line 403 of file midi_view.h.
|
inlineprotected |
Definition at line 400 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 98 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 MidiRegionView, and MidiCueView.
|
protected |
void MidiView::duplicate_selection | ( | ) |
Temporal::Beats MidiView::earliest_in_selection | ( | ) |
void MidiView::edit_patch_change | ( | PatchChange * | ) |
|
inline |
Definition at line 341 of file midi_view.h.
|
protected |
void MidiView::end_drag_edit | ( | ) |
|
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 641 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 |
|
virtual |
Reimplemented in MidiRegionView.
|
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 MidiRegionView, and MidiCueView.
Definition at line 449 of file midi_view.h.
|
inlineprotectedvirtual |
Reimplemented in MidiRegionView, and MidiCueView.
Definition at line 448 of file midi_view.h.
|
inlineprotectedvirtual |
Reimplemented in MidiRegionView, and MidiCueView.
Definition at line 450 of file midi_view.h.
|
inlineprotectedvirtual |
Reimplemented in MidiRegionView, and MidiCueView.
Definition at line 446 of file midi_view.h.
|
inlineprotectedvirtual |
Reimplemented in MidiRegionView, and MidiCueView.
Definition at line 447 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 388 of file midi_view.h.
|
inlineprotected |
Definition at line 389 of file midi_view.h.
|
inlineprotected |
Definition at line 392 of file midi_view.h.
|
inlineprotected |
Definition at line 395 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 394 of file midi_view.h.
|
inlineprotected |
Definition at line 391 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 |
|
protected |
|
inline |
Definition at line 342 of file midi_view.h.
|
inline |
Definition at line 340 of file midi_view.h.
|
inline |
Definition at line 339 of file midi_view.h.
|
inline |
Definition at line 185 of file midi_view.h.
|
protected |
|
protectedvirtual |
Reimplemented in MidiRegionView.
|
protectedvirtual |
Reimplemented in MidiRegionView.
|
inline |
Definition at line 268 of file midi_view.h.
void MidiView::move_copies | ( | Temporal::timecnt_t const & | dx_qn, |
double | dy, | ||
double | cumulative_dy | ||
) |
|
inlineprotected |
Definition at line 381 of file midi_view.h.
|
inlineprotected |
Definition at line 380 of file midi_view.h.
|
inlineprotected |
Definition at line 377 of file midi_view.h.
|
inlineprotected |
Definition at line 376 of file midi_view.h.
|
inlineprotected |
Definition at line 375 of file midi_view.h.
|
inlineprotected |
Definition at line 374 of file midi_view.h.
|
inlineprotected |
Definition at line 379 of file midi_view.h.
|
inlineprotected |
Definition at line 378 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 | ||
) |
void MidiView::note_entered | ( | NoteBase * | ev | ) |
|
inlineprotected |
Definition at line 607 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 | ) |
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 609 of file midi_view.h.
void MidiView::nudge_notes | ( | bool | forward, |
bool | fine | ||
) |
|
inlineprotected |
Definition at line 418 of file midi_view.h.
|
inlineprotected |
Definition at line 419 of file midi_view.h.
|
inlineprotected |
Definition at line 416 of file midi_view.h.
|
inlineprotected |
Definition at line 417 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 * | ) |
|
protected |
Play the NoteOn event of the given note immediately and schedule the playback of the corresponding NoteOff event.
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Reimplemented in MidiRegionView.
|
protected |
void MidiView::remove_canvas_patch_change | ( | PatchChange * | pc | ) |
|
protected |
|
protected |
|
protectedvirtual |
Reimplemented in MidiRegionView.
|
protectedvirtual |
Reimplemented in MidiCueView, 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 383 of file midi_view.h.
void MidiView::select_notes | ( | std::list< Evoral::event_id_t > | , |
bool | allow_audition | ||
) |
|
inlineprotected |
Definition at line 384 of file midi_view.h.
void MidiView::select_range | ( | Temporal::timepos_t const & | start, |
Temporal::timepos_t const & | end | ||
) |
|
inline |
Definition at line 348 of file midi_view.h.
|
inlinevirtual |
Reimplemented in MidiRegionView.
Definition at line 346 of file midi_view.h.
|
inlinevirtual |
Reimplemented in MidiRegionView.
Definition at line 349 of file midi_view.h.
|
inline |
Definition at line 308 of file midi_view.h.
|
protected |
void MidiView::selection_as_notelist | ( | Notes & | selected, |
bool | allow_all_if_none_selected = false |
||
) |
|
inline |
Definition at line 211 of file midi_view.h.
|
inline |
Definition at line 314 of file midi_view.h.
|
inlineprotected |
Definition at line 642 of file midi_view.h.
|
protected |
|
virtual |
Reimplemented in MidiRegionView, and MidiCueView.
|
virtual |
Reimplemented in MidiRegionView.
void MidiView::set_note_range | ( | uint8_t | low, |
uint8_t | high | ||
) |
|
virtual |
|
inlinevirtual |
Reimplemented in MidiCueView.
Definition at line 96 of file midi_view.h.
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::show_end | ( | bool | yn | ) |
void MidiView::show_list_editor | ( | ) |
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) |
|
protected |
|
protected |
|
protected |
|
protected |
void MidiView::start_note_diff_command | ( | std::string | name = "midi edit" | ) |
|
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 |
|
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 411 of file midi_view.h.
|
inlineprotected |
Definition at line 412 of file midi_view.h.
|
inlineprotected |
Definition at line 413 of file midi_view.h.
|
inlineprotected |
Definition at line 414 of file midi_view.h.
|
inlineprotected |
Definition at line 406 of file midi_view.h.
|
inlineprotected |
Definition at line 407 of file midi_view.h.
|
inlineprotected |
Definition at line 408 of file midi_view.h.
|
inlineprotected |
Definition at line 409 of file midi_view.h.
void MidiView::trim_front_ending | ( | ) |
void MidiView::trim_front_starting | ( | ) |
|
protected |
void MidiView::unique_select | ( | NoteBase * | ev | ) |
|
inlinevirtual |
Reimplemented in MidiRegionView.
Definition at line 347 of file midi_view.h.
|
protected |
|
protected |
|
protectedvirtual |
Reimplemented in MidiCueView.
|
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 MidiCueView.
|
protected |
|
protected |
void MidiView::velocity_edit | ( | ) |
|
protected |
|
inlineprotected |
Definition at line 610 of file midi_view.h.
|
friend |
Definition at line 368 of file midi_view.h.
|
friend |
Definition at line 431 of file midi_view.h.
|
friend |
Definition at line 369 of file midi_view.h.
|
friend |
Definition at line 428 of file midi_view.h.
|
friend |
Definition at line 429 of file midi_view.h.
|
friend |
Definition at line 424 of file midi_view.h.
|
friend |
Definition at line 425 of file midi_view.h.
|
friend |
Definition at line 427 of file midi_view.h.
|
friend |
Definition at line 426 of file midi_view.h.
|
friend |
Definition at line 543 of file midi_view.h.
|
protected |
Definition at line 499 of file midi_view.h.
|
protected |
Definition at line 509 of file midi_view.h.
|
protected |
Definition at line 496 of file midi_view.h.
|
protected |
Definition at line 491 of file midi_view.h.
|
protected |
Definition at line 513 of file midi_view.h.
|
protected |
Definition at line 590 of file midi_view.h.
|
protected |
Definition at line 591 of file midi_view.h.
|
protected |
Definition at line 495 of file midi_view.h.
|
protected |
Definition at line 639 of file midi_view.h.
|
protected |
Definition at line 503 of file midi_view.h.
|
protected |
Definition at line 586 of file midi_view.h.
|
protected |
Definition at line 588 of file midi_view.h.
|
protected |
Definition at line 589 of file midi_view.h.
|
protected |
Definition at line 504 of file midi_view.h.
|
protected |
Definition at line 505 of file midi_view.h.
|
protected |
Definition at line 553 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 523 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 530 of file midi_view.h.
|
protected |
Definition at line 492 of file midi_view.h.
|
protected |
Definition at line 494 of file midi_view.h.
|
protected |
Definition at line 490 of file midi_view.h.
|
protected |
Definition at line 493 of file midi_view.h.
|
protected |
Definition at line 594 of file midi_view.h.
|
protected |
Definition at line 510 of file midi_view.h.
|
protected |
Definition at line 554 of file midi_view.h.
|
protected |
Definition at line 502 of file midi_view.h.
|
protected |
Definition at line 501 of file midi_view.h.
|
protected |
Definition at line 538 of file midi_view.h.
|
protected |
Definition at line 597 of file midi_view.h.
|
protected |
Definition at line 596 of file midi_view.h.
|
protected |
Definition at line 497 of file midi_view.h.
|
protected |
Notes that should be selected when the model is redisplayed.
Definition at line 526 of file midi_view.h.
|
protected |
Definition at line 599 of file midi_view.h.
|
protected |
Definition at line 511 of file midi_view.h.
|
protected |
Definition at line 532 of file midi_view.h.
|
protected |
Definition at line 592 of file midi_view.h.
|
protected |
Currently selected NoteBase objects
Definition at line 517 of file midi_view.h.
|
protected |
Definition at line 514 of file midi_view.h.
|
protected |
Definition at line 512 of file midi_view.h.
|
protected |
Definition at line 506 of file midi_view.h.
|
protected |
Definition at line 508 of file midi_view.h.
|
protected |
Definition at line 507 of file midi_view.h.
|
protected |
Definition at line 498 of file midi_view.h.
|
protected |
Definition at line 500 of file midi_view.h.
|
protected |
Definition at line 454 of file midi_view.h.
|
protected |
Definition at line 638 of file midi_view.h.
|
protected |
Definition at line 456 of file midi_view.h.
|
protected |
Definition at line 635 of file midi_view.h.
|
protected |
Definition at line 637 of file midi_view.h.
|
protected |
Definition at line 455 of file midi_view.h.