summaryrefslogtreecommitdiff
path: root/gtk2_ardour/tempo_dialog.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-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 - rename meter_at() -> meter_at_frame() & make the ticker ↵nick_m
slightly more efficient.
2016-05-27Tempo ramps - rename tempo_at() -> tempo_at_frame().. 3 decimals for the ↵nick_m
audioclock tempo display.
2016-05-27Tempo rampos -reorder tempo dialog.nick_m
2016-05-27Tempo ramps - newline fix.nick_m
2016-05-27Tempo ramps - first tempo and meter are always audio locked wrt gui.nick_m
- fixes some gtk warnings as well
2016-05-27Tempo ranps - fix compilationnick_m
2016-05-27Tempo ramps - api change, remove some code.nick_m
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 - fix various thinkos.nick_m
2016-05-27Tempo ramps - check for impossible locations tempo dialog bbt entry. ↵nick_m
reorganise code.
2016-05-27Tempo ramps - re-enabe audio-locked meter sections, fix more locking errors.nick_m
2016-05-27Tempo ramps - restore bbt settings in tempo dialog for audio-locked tempo ↵nick_m
markers - see comments
2016-05-27Tempo ramps - first stab at metric marks locked to frames or beats.nick_m
- pretty much untested.
2016-05-27Tempo ramps - fix more namespace confusionnick_m
2016-05-27Tempo ramps - api rename, fix various meter and tempo dialog bugs.nick_m
2016-05-27Tempo ramps - define_one_bar() delivers constant tempo.nick_m
- also some renaming and code review
2016-05-27Tempo ramps - fix changing from const to ramp in the gui.nick_m
- also fixes some midi mouse over problems - start using replacements for frames_per_bar() frames_per_beat() etc.
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-02-18Change the tap tempo estimator to least-squares regressionPavel Potocek
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-09-16Move UIConfiguration Singleton into UIConfiguration headerTim Mayberry
This removes the direct dependence on ardour_ui.h from 39 files
2015-04-21update some calls to use new get_preferred_edit_position; needs testingBen Loftis
2015-04-21merge fix for tempo branchBen Loftis
2015-03-27tap-tempo: reset running average whenever tapped tempo deviates by +/- 20%Colin Fletcher
2015-03-27Go back to using g_get_monotonic_time() for tap tempoColin Fletcher
Using ev->time doesn't work as well as I'd hoped, so revert to the previous method with g_get_monotonic_time().
2015-03-22Right align some more numeric entries in the meter/tempo dialogs.nick_m
2015-03-21tap-tempo: try to make it work properly from the very first clickColin Fletcher
2015-03-14Align number entry in the meter dialog to the right in lieu of findingnick_m
the reason behind ComboBoxText's apparent miscalculation of its' layout width).
2015-03-09Use ev->time rather than g_get_monotonic_time() for tap tempoColin Fletcher
Connect signal_button_press_event of 'Tap Tempo' button rather than signal_clicked so we can use the time member of GdkEventButton to calculate the tapped tempo. It seems to me that this is the right thing to do.
2015-01-13Give tempo dialog initial focus to BPM spinner.David Robillard
2014-12-22move all (G)UI related configuration parameters into UIConfiguration, not ↵Paul Davis
RCConfiguration
2014-12-18Fix crash if new tempo is set to start at bar #0 / Follow-up for non movable ↵Julien de Kozak
meters
2014-12-18Fix crash if new tempo is set to start at bar #0 / Follow-up for non movable ↵Julien de Kozak
tempos
2014-12-18Fix crash if new tempo is set to start at bar #0Julien de Kozak
2014-11-16Use an enum for RoundMode instead of magic numbers.David Robillard
No functional changes in this one (for easier auditing), but towards having round up/down only if necessary modes, rather than kludging around that situation with a double round as we do currently.
2014-07-05Make tap tempo use g_get_monotonic_time(), and fix minimum BPMColin Fletcher
gettimeofday() is not guaranteed to be monotonic: use g_get_monotonic_time() instead. Also, fix calculation of slowest tap tempo BPM so that the slowest tempo which can be set by tapping is 10 BPM rather than 240.
2014-07-05Make 'Tap tempo' set the bpm to a running averageColin Fletcher
Keep a running average of the interval between clicks on the 'Tap tempo' button, and use that average to set the bpm value.
2014-07-05Add 'Tap tempo' button to 'Edit tempo' dialogueColin Fletcher
Add a 'Tap tempo' button to the 'Edit tempo' dialogue box that uses gettimeofday() to time the interval between successive clicks and sets the beats-per-minute appropriately.
2014-06-25move utility functions into a dedicated namespaceRobin Gareus
2012-07-17i18n fixes from alexander prokoudine (#5016)Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@13050 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-02a variety of mostly unused parameter errors from OS X Lion's compilerPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@12148 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-01-07add sixteenths as note type for tempo and meter; fix cursor color, selection ↵Paul Davis
color etc, for tempo & meter dialogs git-svn-id: svn://localhost/ardour2/branches/3.0@11186 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-12-28a huge set of changes to tempo+meter handling. testing feedback requested. ↵Paul Davis
the_CLA, you know who i mean :) git-svn-id: svn://localhost/ardour2/branches/3.0@11103 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-12-21provide config parameter to allow non-quarter note pulses; off by default; ↵Paul Davis
no GUI to reset it at this point git-svn-id: svn://localhost/ardour2/branches/3.0@11046 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-12-20use the same kludge-removal approach in the prior commit for the meter ↵Paul Davis
dialog too, and fix a minor bug in the tempo dialog setup git-svn-id: svn://localhost/ardour2/branches/3.0@11028 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-12-20rework tempo dialog to (a) allow selection of pulse note type (b) avoid ↵Paul Davis
awful kludge to get note type from the combobox; show pulse note type in tempo markers git-svn-id: svn://localhost/ardour2/branches/3.0@11027 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-12-13more fun and games with meter and the tempo map: rename ↵Paul Davis
Meter::beats_per_bar() to Meter::divisions_per_bar() so that its clear(er) on what it is actually returning; use Meter::divisions_per_bar() in more (all?) places that need it; fix up dragging meter marks by removing the relevant meter section from the map while we drag; operator<< for some tempo-related objects git-svn-id: svn://localhost/ardour2/branches/3.0@10995 d708f5d6-7413-0410-9779-e7cbd77b26cf