summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.cc
AgeCommit message (Collapse)Author
2020-01-28shortest note length after a drag-trim is 1 tick, not 1/512 beatsPaul Davis
2020-01-28correct computation of new note length after a front-drag-trimPaul Davis
2020-01-14fix 03c4335c1e20311 to use the correct test for zero lengthPaul Davis
That commit used the dangerous Beats::operator== (int) comparison, which only campares the beat portion
2020-01-11fix drawing of zero-length notesPaul Davis
Note that the result is too narrow to be manipulated, though it can be moved
2020-01-11use Note::end_time() == numeric_limits<Beats>::max() as the indicator that a ↵Paul Davis
note is in-process w.r.t. recording We used to use length() == 0, but this clashes with actual zero-length notes
2020-01-08prevent MIDI note starts being drawn earlier than their region startPaul Davis
2019-11-02rename all Evoral source from .(hpp|cpp)$ to .(h|cc)Paul Davis
2019-11-02various adjustments so that a MidiPlaylist gets re-rendered whenever it changes.Paul Davis
This may still be missing a few changes (i.e. they do not cause re-rendering)
2019-11-02alter where note resolution happens when a re-rendering is scheduled for a ↵Paul Davis
MIDI track
2019-09-20fix commented out decision on whether or not to hide/show sysexes in MIDI ↵Paul Davis
regions
2019-08-03Update GPL boilerplate and (C)Robin Gareus
Copyright-holder and year information is extracted from git log. git history begins in 2005. So (C) from 1998..2005 is lost. Also some (C) assignment of commits where the committer didn't use --author.
2019-08-01(Source List) Clean up the natural_position implementation (gtk2 part).Ben Loftis
2019-04-09Replace some more "samples" with "frames" (rectangles)Robin Gareus
2019-04-09Another round of whitespace fixesRobin Gareus
2019-04-08Revert more "frame/sample" replacementsRobin Gareus
- Coverage concerns rectangles (frames, not sample) - frame-handles are rectangles - layout container boxes are frames - inline display boxes are display_frame
2019-04-08Yet another "Rect frame" (not a sample)Robin Gareus
2019-04-08Frame as in "picture frame", not sampleRobin Gareus
2018-08-09Ignore scroll-wheel while dragging notes.Robin Gareus
Previously, dragging a MIDI note and scrolling with scroll wheel (to change velocity) made the note jump back to location before drag.
2018-07-27new_grid: The Return of the snap_to_X functions.Ben Loftis
We no longer assume that Snap always uses the visible ruler lines. If you want to snap to the grid, and ignore the users zoom scale, use SnapPref::SnapToGrid_Unscaled This fixes 2 (known) oversights: "snap region(s) to grid" and "regions whose start are left of the canvas edge".
2018-07-05remove more unused MIDI note colorsPaul Davis
2018-07-03make use-note-color-for-velocity much much more efficientPaul Davis
(by not invoking the global color change signal)
2018-07-03call Note::set_velocity() at an appropriate timePaul Davis
2018-02-17Fix a few warningsBen Loftis
2018-02-09new_grid: Rewrite of Snap and Grid. (squashed commit)Ben Loftis
Separate Snap from Grid. Lots of naming changes. Multiple simultaneous snap options allowed. Grid is one of the possible Snap options. Grid uses the same data as the rulers. Replace complicated tempo_lines with simple grid_lines. The Grid is zoom-scale-sensitive along with the rulers. If you are zoomed out, grid becomes coarser.
2018-02-09new_grid: MidiRegionView::motion should propagate thru RegionView, so ↵Ben Loftis
snapped_cursor is updated. This probably fixes other bugs as well.
2018-02-09new_snap: Snapped Cursor ( squashed commit )Ben Loftis
Snapped Cursor is a line that follows the edit point, and indicates where the operation will occur. This replaces and extends the line that appears with the Cut tool. New associated preferences: snap_threshold and show_snap_cursor.
2017-09-24fix header order and space alignmentPaul Davis
2017-09-24convert codebase to use Temporal for various time typesPaul Davis
2017-09-19fix unintentionally edited color/theme name from f2s editPaul Davis
2017-09-18globally change all use of "frame" to refer to audio into "sample".Paul Davis
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible
2017-09-18changes required to operate with the Evoral::Beats ticktime commitPaul Davis
2017-07-22Call Editor::abort_reversible_command() in MidiRegionView::abort_command()nick_m
Fixes broken undo stack if no changes occurred. Edit note dialog is currently the only user.
2017-05-14Fix compiler warning of unused variable.André Nusser
2017-03-29When adding a PC, use the channel given in the dialog.Robin Gareus
2017-03-06more linked midi region trim drag fixes.nick_m
- freeze the correct playlists on fiorst move. - only update the start offset of linked regions once the drag has finished.
2017-03-05rework percussive hit spraying.nick_m
- the spray is limited to the first entered note. - all new notes are selected (requires a selection change to MRV::create_note_at()
2017-03-04offset linked regions to compensate for negative start after trim drag.nick_m
- should fix 7105
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