summaryrefslogtreecommitdiff
path: root/gtk2_ardour/tempo_lines.cc
AgeCommit message (Collapse)Author
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-10-19Tempo lines drawing performance tweak.nick_m
2016-10-19Tempo line tweaks.nick_m
- ensure lines don't get too dense in the all bars case. - never draw tick divisions in the all bar case.
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-05-27Tempo ramps - fix various sub-beat tempo line bugs.nick_m
- actual meter is taken into account now.
2016-05-27Tempo ramps - fix BBTPoint wtf.nick_m
- tempo tick lines should draw properly now.
2016-05-27Tempo ramps - tempos now musically snap to their future.nick_m
2016-05-27Tempo rambo - more bbt scale fiddling.nick_m
2016-05-27Tempo rampo - tempo tick lines no longer assume constant tempo.nick_m
2016-05-27Tempo ramps - fix compilationnick_m
2016-05-27Initial stab at tempo ramps.nick_m
Replaces the list of points in TempoMap with TempoSection functions, which compute tempo-at or tick-at time relative to tempo section start. TempoMap consults them additively to determine things like bbt_time(), frame_time() get_grid() etc. This has a marked effect on scrolling speed along with the code simplification in the places it has been attempted. Several things are broken here. Currently every ramp except the last one is an exponential ramp. this may be simple to fix :). Mouse-over midi grid doesn't match mouse click grid. should also be simple. Many things seem to work, but their accuracy should be in question until each area has been addressed.
2015-10-04globally remove all trailing whitespace from ardour code base.Paul Davis
Paul Davis was responsible for introducing almost all of this.
2015-09-16Move UIConfiguration Singleton into UIConfiguration headerTim Mayberry
This removes the direct dependence on ardour_ui.h from 39 files
2015-01-10Raise threshold for showing ticks for a bit.David Robillard
This fixes two zoom levels (the closest that shows bars, and the next closest) that had the same tick resolution despite enough space.
2015-01-08More contrast between different division lines.David Robillard
2015-01-08Stop showing bar lines sooner.David Robillard
Not sure if this is a DPI dependent thing, but when zooming out some of the steps had way too dense bar lines for me.
2015-01-08Slightly more distinct beat/subdivision lines.David Robillard
2015-01-07Draw beat sudivisions according to snap setting.David Robillard
2015-01-07High resolution tempo lines.David Robillard
2014-12-15next modifierPaul Davis
2014-12-14fix up requested color names everywhere.Paul Davis
Thank <deity> for emacs ... space-uncamelcase-word-at-point FTW
2014-12-14initial pass to replace all UIConfiguration::get_XXXXXX() calls with ↵Paul Davis
UIConfiguration::color(name). IMPORTANT: names have not been downcased and spaced yet, so many colors are not found
2014-10-21remove "canvasvar_" from all functions related to obtaining values from ↵Paul Davis
ARDOUR_UI::config()
2014-06-22more canvas refactoring.Paul Davis
Remove Canvas::Layout, use Canvas::Container for the same purpose, move child-rendering into Item::render_children() so that it could theoretically be used by any derived type.
2014-06-21use newly factored canvas in gtk2_ardourPaul Davis
2014-06-19Summary changes :nick_m
* Use correct image format for background image * Construct thr ImageSurface as per cairo docs * Place start/end markers in background image Tempo bars : * adjust beats display threshold to (hopefully) coincide with BBT ruler better.
2014-06-09use Canvas::LineSet for tempolines rather than N different Canvas::Line ↵Paul Davis
items plus a cache
2014-06-03initial redesign of canvas scrolling to facilitate independent x- and y-axis ↵Paul Davis
scrolling of specific groups within the canvas. This commit should cause no change in behaviour, but contains all the code and changes necessary for the next step
2014-02-12make measure line positioning use Editor::sample_to_pixel() and avoid extra ↵Paul Davis
0.5 pixel shift
2013-06-24fix up size and drawing of measure lines, even when vertically scrolledPaul Davis
2013-06-24an awful lot of tweaks to drawing detailsPaul Davis
2013-04-24many pervasive changes primarily related to waveform drawing, particular ↵Paul Davis
content-dragging, colors, and more
2013-04-21remove probably premature-or-no-longer-necessary optimization of measure ↵Paul Davis
line drawing
2013-04-21Revert "add Group::clear(), do not clear _canvas member of Item when ↵Paul Davis
unparented (only the parent is changed)" This reverts commit a4df65a56f83823aba27432685977f420458a213.
2013-04-21add Group::clear(), do not clear _canvas member of Item when unparented ↵Paul Davis
(only the parent is changed)
2013-04-17fix clamping of line and rect coordinates to avoid issues with cairo when ↵Paul Davis
drawing way outside a surface's dimensions; move various coordinate methods down to Canvas, because they don't require GTK information; make visible_area() a Canvas virtual method so that we don't have to cast to call it
2013-04-16change UIConfig to use accessor/setter methods like RCConfig so that ↵Paul Davis
ParameterChanged methods can actually be emitted; add variable (over a small range) background shading for all TimeAxisViewItems
2013-04-16fix bug with tempo lines not extending far enough in the y-axis - since this ↵Paul Davis
is the cairo canvas now, just extend them to COORD_MAX .. yay!
2013-04-15a few changes to fix region dragging, all related to coordinate system ↵Paul Davis
handling, which is now much simpler with the new canvas; more debugging output when asked for
2013-04-12change frames_per_pixel to samples_per_pixelPaul Davis
2013-04-06merge with master, including manual merge conflict resolutionPaul Davis
2013-04-04commit immediately post linkingPaul Davis
2013-04-04initial commit of hand merging, plus getting "ancient" waf script to work ↵Paul Davis
correctly
2013-03-30Fix some compilation warningsJulien de Kozak
2013-01-27fix crash when zoom level leads to multiple tempo lines on the same pixel ↵Paul Davis
(may affect several mantis reports) git-svn-id: svn://localhost/ardour2/branches/3.0@14015 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-11Slightly expanded version of patch from epitech_user toCarl Hetherington
fix use of invalidated iterator (#4823). git-svn-id: svn://localhost/ardour2/branches/3.0@11889 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-07Remove use of invalidated iterator (#4826).Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@11807 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-01-04use BBTPoint::is_bar() rather than ::beat == 1 ; implement ↵Paul Davis
TempoMap::framepos_plus_{beats,bbt}() with new map structure (not totally finished or accurate yet); prevent crash when dragging a marker to replace the initial tempo/meter markers git-svn-id: svn://localhost/ardour2/branches/3.0@11154 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-01-03save 4 bytes per Bar|Beat point in the tempo mapPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@11147 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-01-03return two iterators into the Bars|Beats list of the tempo map rather than ↵Paul Davis
making a copy; use iterators in the GUI git-svn-id: svn://localhost/ardour2/branches/3.0@11146 d708f5d6-7413-0410-9779-e7cbd77b26cf