summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.cc
AgeCommit message (Collapse)Author
2017-02-24also fix flying percussive hits while copy-dragging.nick_m
2017-02-24hotfix for flying percussive hits while dragging.nick_m
- Hit::position still may not be set correctly, but this patch eliminates the error for now.
2017-02-07update note length when dragging notes (over tempo change)nick_m
2017-02-05remove overzealous bounds check when dropping notes.nick_m
2017-02-05midi note drags are music-based.nick_m
- wysiwyg (during drag) when dragging more than one note across a tempo change. - introduces a muscal equivalent of snap_delta (only used for note drags atm) - split earliest note in selection into a separate function - MRV::copy_selection() returns the equivalent _primary note to avoid offset hell. - RV::snap_frame_to_frame returns a MusicFrame - prevent note drag moving before region start.
2017-02-04If 'MidiRegionView::find_canvas_sys_ex()' fails, make it return a ↵John Emmas
boost::shared_ptr<> (rather than returning an int)
2017-02-04clean up patch change/sysex headers.nick_m
2017-02-04set sysex height & position on redisplay.nick_m
2017-02-04improve sysex data display.nick_m
- don't add a new SysEx canvas item every time we zoom or drag. - speed up redisplay generally using PatchChange-like method for finding items (find_canvas_sys_ex() in boost::unordered_map).
2017-02-04rework snapnick_m
snap now fills in a struct (MusicFrame) which contins a snapped frame along with a music divisor. this gives useful information wrt magnetic snap which may or may not have rounded to an exact musical position. region position may now be set musically (using quarter notes for now). this patch fixes several problems in the current code: - dragging a list of music-locked regions now maintains correct musical offsets within the list. - splitting regions using magnetic snap works correctly (#7192) - cut drag should now work correctly with magnetic snap. - musical length of split midi regions is no longer frame based.
2017-01-30speed up midi ghost region updatenick_m
- as MRV removes invalid notes from the GR, we can simply update all events after checking vertical visibility.
2017-01-27MidiRegionView::redisplay_model() - code cleanupnick_m
2017-01-24MIDI note copy needs to adjust pitch of new notes before adding themPaul Davis
2017-01-23implement copy-drag for MIDI notes.Paul Davis
Probably some corner cases to be fixed, but pretty functional and largely modelled on existing code (paste, drag, step add note etc.)
2017-01-20Leave some notes about memory-leaksRobin Gareus
2017-01-04note display performance.nick_m
use boost::unordered_map as a note store for ghost & midi region views. as per otiginal method, only notes within regoin bounds are stored.
2016-12-30fix bug where hidden ghostregions were updated.nick_m
2016-12-29Fix updates of region-colorRobin Gareus
2016-12-30minor MidiRegionView::redisplay_model() cleanupnick_m
2016-12-30retain note selection for invalidated notes.nick_m
2016-12-29more note performance work (dereference less).nick_m
2016-12-29revert 7805217b5 (make note mode change work again).nick_m
2016-12-29improve the performance of MidiRegionView::find_canvas_patch_change().nick_m
- also fixes patch changes appearing outside region bounds when copied/trimmed.
2016-12-29don't clear note items in MidiRegionView::display_model().nick_m
- redisplay_model() does this for us.
2016-12-24speed up load/quit for sessions containing ~25k events.nick_m
- MGR uses a _note_group to hold events. - MRV & MGR delete canvas notes directly from their note group. - sysex is untested (it uses MRV note group).
2016-12-23hide ghost events appropriately (e.g. after split).nick_m
2016-12-23only update GhostEvents on visible trackviews.nick_m
- this requires that MidiGhostRegion::update_contents_height() also controls visibility.
2016-12-23midi scrooming performance updates.nick_m
- MGR visibility is handled by update_note/hit() MRV unconditionally updates MGR events - remove MidiGhostRegion::update_range() - rename set_contents_height -> update_contents_height
2016-12-21fix various midi display bugs introduced by 9038be49d8.nick_m
2016-12-20improve midi zoom/scroom performance with lots of notes.nick_m
- mostly due to searching a multiset rather than a list of canvas events.
2016-12-16more work on patch change redisplay.nick_m
- fixes just-introduced undo crash.
2016-12-15correct return syntaxPaul Davis
2016-12-15speed up patch change redisplay when using scroomer / adjusting height.nick_m
- zoom is still a bit slow.
2016-12-14test diff for patch change performance when caching colours.nick_m
2016-12-03Remove Evoral::MIDIEventDavid Robillard
It is slightly questionable whether type specific methods like velocity() belong on Event at all, these may be better off as free functions. However the code currently uses them as methods in many places, and it seems like a step in the right direction, since, for example, we might some day have events that have a velocity but aren't stored as MIDI messages (e.g. if Ardour uses an internal musical model that is more expressive). In any case, the former inheritance and plethora of sloppy casts is definitely not the right thing.
2016-11-23MidiRegionView::clear_events() does _selection.clear(). remove the extra one.nick_m
2016-11-23decouple midi region note range and height from midi streamview.nick_m
- this allows a midi region drag to update the visible notes correctly while crossing MIDI streamviews with a differing note range. as a side effect, fixes a bug where changing note range on a track did not draw some notes (apply_note_range redisplays the model).
2016-11-22don't display notes that start at region end.nick_m
- its not obvious that this is happening in sustained mode, but Percussive reveals all.
2016-11-22fix thinko in 8e8c4a73f1e.nick_m
2016-11-22prevent Percussive mode from displaying a ghost hit at region end.nick_m
2016-11-21fix compilation, rename PercussiveCreateDrag -> HitCreateDragnick_m
2016-11-21rework mouse hit creation (percussive mode) - mostly as per #7130.nick_m
- snap behaviour is round to nearest - holding down button 1 while dragging creates many (if not already present) hits.
2016-11-21MRV handles an alt key press even if nothing happened.nick_m
- nothing else treats a modifier press as a key press event, so don't pass it on. amends 0af9fb0d
2016-11-21fix for short notes being displayed as infinitely long.nick_m
2016-11-20pressing alt while creating a note (snap modifier) keeps mouse_state.nick_m
2016-11-20after creating a note, don't add the ghost note until next motion.nick_m
2016-11-20NoteCreateDrag starts on button press.nick_m
- removes the separation between click and drag-creation of notes noth now handled by the drag code).
2016-11-19remove unused variable.nick_m
2016-11-19further to 1a6a72b57, handle deleting a note while a non-selected one is ↵nick_m
entered.
2016-11-19fix for ghost note becoming stuck after note selection deleted.nick_m
- thanks ristic for the report