summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_rulers.cc
AgeCommit message (Collapse)Author
2016-12-08Clarify "frames" (video, timecode) vs "samples" (audio)Robin Gareus
2016-11-02prevent infinite loop when calculating tick marks on low zoom levelsRobin Gareus
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-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-05-27Tempo ramps - rename bbt_time() -> bbt_at_frame(), frame_time() -> ↵nick_m
frame_at_bbt()
2016-05-27Tempo ramps - rulers don't request negative bbt.nick_m
- i'm reluctant to fix this at the map level.
2016-05-27Tempo rambo - more bbt scale fiddling.nick_m
2016-05-27Tempo ramps - bbt ruler scale tweaks.nick_m
2016-05-27Tempo ramps - small tweak to ruler scale.nick_m
2016-05-27Tempo ramps- bbt ruler scale accounts for non-beat ranges for consistent ↵nick_m
results.
2016-05-27Tempo ramps - respect tempo note type and meter note divisor correctly.nick_m
- tempo and meter position is now pulse-based, although meter still has a beat for convenience.
2016-05-27Tempo ramps - audio-locked meters have a bbt of 1|1|0nick_m
- possibly lots going wrong with this due to multiple occurences of 1|1|0.
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.
2016-05-04OMNIBUS COMMIT: prefer const XMLNode::property method (and provide a real one)Paul Davis
2016-02-22change GTKOSX macro constant to use __APPLE__ insteadPaul Davis
2016-02-22remove all trace of SAE from source code.Paul Davis
This had become incoherent over time, and posed a development hazard and burden going forward
2015-12-09Remove two useless separator elements from editor ruler popups.André Nusser
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
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-04-21Update editor_rulers.ccahellquist
Change ruler context actions from "Make Loop range" to "New Loop range" change ruler context actions from "Make Punch range" to "New Loop range" This to make it consistent with other ruler context actions eg. "New....."
2015-04-21merge fix for tempo branchBen Loftis
2015-03-13Right-clicking on the Loop/Punch ruler should "Do Something".Ben Loftis
2015-03-11add video-monitor to timeline context-menuRobin Gareus
2015-02-12Separate out creation of xrun markers from Editor::mouse_add_new_marker()Colin Fletcher
Remove the is_xrun parameter from Editor::mouse_add_new_marker(), and just create the marker directly in ARDOUR_UI::create_xrun_marker(), so that xrun markers don't become automatically selected when they appear.
2014-12-21restore ardour-style ruler labels for timecode ruler.Paul Davis
Also reduce font size used to a cross-platform single definition.
2014-12-11tweaks to minsec and timecode ruler display, especially at very high zoom.Paul Davis
Imported from work on Tracks done in Tel Aviv, November 2014
2014-11-23assign minsec_ruler_scale and minsec_mark_modulo when zoomed very far outPaul Davis
Avoids crash when computing % minsec_mark_modulo.
2014-10-21remove "canvasvar_" from all functions related to obtaining values from ↵Paul Davis
ARDOUR_UI::config()
2014-07-15try to get font size for rulers right or at least better on OS XPaul Davis
2014-06-25move utility functions into a dedicated namespaceRobin Gareus
2014-06-25do not include ruler visibility items in context click menu on timebarsPaul Davis
2014-06-25use new ruler dialog class for context clicks on ruler labels areaPaul Davis
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-13add all the fonts, and use the right name for the rulers as a resultPaul Davis
2014-06-13use canvas ruler font specification rather than get_font_for_style()Paul Davis
2014-06-12remove no-longer-used codePaul Davis
2014-06-12add canvas rulers event dispatch and reinstate scrolling behaviourPaul Davis
2014-06-12use new ArdourCanvas::Ruler constructorPaul Davis
2014-06-12remove header file includes of now-removed gtk custom rulerPaul Davis
2014-06-11use canvas rulers now instead of gtk widgetsPaul Davis
Some bugs that exist in master are still present.
2014-06-03remove useless groups from timebar area, clarify scroll group naming in editorPaul Davis
2014-05-14fix rounding error in the min:sec rulerDevin J. Pohly
When zoomed in to the millisecond level, the framerate was being divided by 1000 as an integer to generate a ruler tick interval, which doesn't work so well at things like 44100 or 88200. Instead, just count this value in milliseconds, dividing by 1000 when we are done. This was purely a display issue - the grid was in the correct place.
2014-05-14fix major/minor ticks on min:sec rulerDevin J. Pohly
All ticks from 0:00.000 to 0:00.999... were major, and everything after was minor, instead of the correct distribution.
2014-02-26convert canvas_event_frame() and window_event_frame() to ↵Paul Davis
canvas_event_sample() and window_event_sample() to go along with the convention adopted in cairocanvas code re: frames+samples
2014-02-25indent/alignPaul Davis
2014-01-10Merge windows+cc branch into cairocanvas branch. Not finished, need to now ↵Paul Davis
merge windows branch to get changes from there
2014-01-04fix dragging playhead using time rulersRobin Gareus