summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_tempodisplay.cc
AgeCommit message (Collapse)Author
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.
2018-07-27new_grid: fix some thinkos in ruler math, to better match sensible grid lines.Ben Loftis
Tweak enums to better match the Grid values they represent.
2018-02-26Switch CDFrame grid to use MinSec ruler rather than Sample ruler.Ben Loftis
2018-02-26Rename SMPTE enum back to Timecode.Ben Loftis
2018-02-26Fix a rather large naming thinko: GridTypeSamples should be CDFrames.Ben 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.
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-07-22Remove redundant beat arg from TempoMap::add_meternick_m
BBT time should be enough to determine the beat.
2017-07-01NO-OP whitespace (updated GH PR #357)Thomas Brand
2017-06-09Fix incorrect positioning of tempo line subdivisions if first meter is non-zeronick_m
Commit cebefe6 assumed that frame 0 was the music origin. Silly me.
2017-06-09Tempo lines display subdivisions correctly over a tempo changenick_m
TempoMap::get_grid() supplies a list of beat positions, leaving the lines to work out any subdivision positions. This is fine, unless a tempo section falls in between beats. Use a BeatsFramesConverter along with a quarter note position (in the BBTPointsList) to make this easier.
2017-03-10compute_bbt_ruler_scale should not be necessary for every redraw of the ↵Ben Loftis
timeline. Works OK here without it...
2017-03-07allow setting end bpm in new tempo from tempo dialog.nick_m
2017-03-05tempo editing updatesnick_m
- a tempo marker may now be set to always continue (clamped) this means that the end tempo of the previous section will track the start tempo during tempo ops. it mimics the behaviour in 5.8, with the gui indicating the curves to be changed.
2017-02-27initial rework of tempo text display (numbers are curve items)nick_m
- move tempo numbers to a layer above the curve. - the offset of the text box in Marker is horrible here. what to do?
2017-02-27fix compilationnick_m
2017-02-27poor man's display of end tempo for ramps.nick_m
2017-02-27Tempo Marks : set point colour by discontinuity, display non-quarter pulse ↵nick_m
if we are non-quarter. - a jump in tempo by more than 1 ntpm results in a red tempo mark pointer. - ignore UIConfiguration::get_allow_non_quarter_pulse() when displaying note type in the marker text (only display note type if we are non-quarter).
2017-02-27highlight the tempo curve that is to be altered, modify text to suit.nick_m
2017-02-27complete changes to tempo type.nick_m
- this implements in the intention behind the previous commit. a tempo mark is constant until its end has been changed by a shift-drag on the next marker.
2017-02-27rework tempo editing.nick_m
most changes are due to a new design where tempo discontinuities at the beginning of a ramped section may be set. this allows easier mapping of live performance, especially in the common case of a ramped ritard before the beginning of a new section. feature summary: holding constraint modifier (shift) while dragging the BBT ruler area drags the tempo lines by changing the start tempo (as before) holding copy modifier (control) while dragging the BBT ruler area drags the tempo lines by changing the end tempo (ahem. not quite there) dragging a tempo mark while holding constraint (shift) will change the previous end tempo to match the marker position *worth trying*. holding constraint and copy modifier (control + shift) while dragging the BBT ruler area attempts to'pinch' or twist the surrounding tempi sp that later ones are not repositioned (currently suffereng from rounding errors)
2017-01-27mark session dirty when dragging tempo markers.nick_m
2017-01-07amend 4cb009058 (if newly active tempo became last it had no curve)nick_m
2017-01-07fix some inactive tempi bugsnick_m
- no tempo curve for inactive tempi - inactive and meter-locked tempi cannot be deleted.
2016-12-19add frame parameter for Meter ctor and TempoMap::replace_meter(). allow for ↵nick_m
various failures.
2016-12-12sort tempo curves initially as well.nick_m
2016-12-12amend previous commitnick_m
2016-12-11fix flickering in tempo curve when markers are reordered.nick_m
2016-11-11rename Tempo _beats_per_minute to _note_types_per_minute, provide pulse helpers.nick_m
- adds quarter_notes_per_minute(), note_divisions_per_minute (double) pulses_per_minute() and frames_per_quarter_note() - this should be a no-op except for the use of tempo by the vst callback which definitely uses quarter notes per minute. - the XML node for TempoSection named 'beats-per-minute' has been renamed.
2016-11-11MidiRegion _start/_length beats are frame based only when lock style is ↵nick_m
Audiotime
2016-11-11Refactor tempo api, include quarter-note distance in frames method.nick_m
- moves frame rounding up to TempoMap, which is needed in order to calculate pulse distance without frame rounding. - the time unit for tempo is still minute, but this now also applies to meter sections. (new audio locked meter sections no longer require a frame position). - there is no longer a discontinuity in the pulse for audio-locked meter/tempi. - temporarily add debugging output in Region::set_position() to test for region beat not matching region frame.
2016-10-19Improve bbt ruler drawing performance for large time ranges.nick_m
- when the timeline displays many bars, zoom/autoscroll speed is improved by calculating the bbt ruler scale first then requesting a suitably scaled grid.
2016-08-20Add a colour for music-locked meters.nick_m
2016-08-14Allow negative return in TempoMap::beat_at_frame() and its exact_ variant.nick_m
- audio-locked midi regions can be start-trimmed properly when close to 1|1|0 - a midi region placed before the first meter will continue the tempo curve and first meter. Only a couple of callers require change, as bbt_at_beat() already deals with this.
2016-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2016-07-10Simplify Editor::mouse_add_new_meter_event() a bit.nick_m
2016-07-10Stop passing references to things that may disappear when a metric section ↵nick_m
is replaced.
2016-07-10Indicate meter frame even when adding a music-locked meter from the gui.nick_m
2016-06-16Register colour aliases for tempo curve.nick_m
2016-06-13Pick a colour for music-locked tempo markers.nick_m
2016-05-27Tempo ramps - rename bbt_time() -> bbt_at_frame(), frame_time() -> ↵nick_m
frame_at_bbt()
2016-05-27Tempo ramps - rename tempo_at() -> tempo_at_frame().. 3 decimals for the ↵nick_m
audioclock tempo display.
2016-05-27Gd Lk ramps - rework auto scaling. change colour.nick_m
2016-05-27Tempo ramps - fix huge marker height mark, remove unused var.nick_m
2016-05-27Tempo ramps - rename for consistency, remove some testing code, add meter ↵nick_m
based bbt->pulse conversions.
2016-05-27Tempo ramps - rework tempo drags, improve comments.nick_m
2016-05-27Tempo ramps - consolidate TempoMap::predict_tempo()nick_m
2016-05-27Tempo ramps - more code cleanup, fix cross-marker jumping using tempo dialog bbtnick_m
2016-05-27Tempo ramps - more code consolidation wrt add meter/tempo.nick_m
2016-05-27Tempo ramps - clean up add/replace temponick_m