Robin Gareus
7daee17f87
fix buffer overflow printing tempo/meter
2016-11-12 16:19:27 +01:00
nick_m
33e95a1577
rename Tempo _beats_per_minute to _note_types_per_minute, provide pulse helpers.
...
- 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-11 03:37:08 +11:00
nick_m
99fbdee0d8
bbt duration clock tweak.
2016-10-21 02:49:04 +11:00
nick_m
3fa9dd51b2
bbt duration clock - revert 3d38b4f58e and a32aea4201. use an alternate fix.
2016-10-20 03:40:06 +11:00
nick_m
3d38b4f58e
Duration clock edit uses current time to resolve meter.
...
- should fix the remaining part of #7072
2016-10-19 23:09:24 +11:00
nick_m
a32aea4201
BBT duration clock can only compare musical times.
2016-10-16 05:09:49 +11:00
nick_m
50963a03c2
AudioClock: remove duplicated code. amends 3a0a628a7
2016-10-16 03:26:30 +11:00
nick_m
3a0a628a75
Rework duration clock and TempoMap::insert_time to include meter at offset.
...
- should fix 7072
- also fixes scroll behavior over multiple tempi.
2016-10-16 02:33:49 +11:00
Paul Davis
c9ece0d6c6
use moved version of reset_focus()
2016-09-06 16:17:39 -04:00
Paul Davis
bfd0f321f6
use existing Editor::reset_focus() method to reset focus after audio clock editing is done
2016-09-06 15:40:22 -04:00
Paul Davis
cf52d6e4b4
enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
2016-07-14 14:45:23 -04:00
nick_m
34c9ac9dd7
Tempo ramps - rename bbt_time() -> bbt_at_frame(), frame_time() -> frame_at_bbt()
2016-05-27 23:38:17 +10:00
nick_m
8f3bc6f809
Tempo ramps - rename tempo_at() -> tempo_at_frame().. 3 decimals for the audioclock tempo display.
2016-05-27 23:38:17 +10:00
nick_m
3f2a8fe81d
Tempo ramps - display bbt in audio clock correctly when dragging tempos/meters.
2016-05-27 23:38:12 +10:00
nick_m
b415b59f79
Tempo ramps - respect tempo note type and meter note divisor correctly.
...
- tempo and meter position is now pulse-based,
although meter still has a beat for convenience.
2016-05-27 23:38:11 +10:00
nick_m
ec791c8dd4
Tempo ramps - hook up tempo display, a new approach to audio-locked meters
...
- audio locked meters define an offset which is used for all public
TempoMap methods while the internal map remains contiguous.
Probably a few unexpected consequences here, but seems to work mostly.
2016-05-27 23:38:11 +10:00
Paul Davis
17ace643e4
OMNIBUS COMMIT: prefer const XMLNode::property method (and provide a real one)
2016-05-04 23:09:45 -04:00
Robin Gareus
e025c45cda
fix crash when loading a session with non-default clock modes.
...
set_mode() emits ModeChanged which results in save_extra_xml().
If this happens during session-load, the XML iterator is invalidated.
2016-04-24 14:43:18 +02:00
Paul Davis
6991a07902
remove all trace of SAE from source code.
...
This had become incoherent over time, and posed a development hazard and burden going forward
2016-02-22 15:31:24 -05:00
André Nusser
7a846b7e6d
Make capitalization consistent and other minor spelling corrections.
2015-12-01 00:39:35 +01:00
Robin Gareus
22b07e0233
NOOP, remove trailing tabs/whitespace.
2015-10-05 16:17:49 +02:00
Paul Davis
7f86418340
Revert "change the way the audio clock cursor is drawn (somewhat of an experiment but it has some benefits"
...
This reverts commit 601770837e .
This work continued in the "clockwork" branch where it was done correctly.
2015-09-28 20:28:40 -04:00
Paul Davis
601770837e
change the way the audio clock cursor is drawn (somewhat of an experiment but it has some benefits
2015-09-28 17:42:11 -04:00
Paul Davis
3e0d801509
when editing an audio clock, swallow illegal keys rather than allowing them to reach the rest of the GUI
2015-09-28 17:42:11 -04:00
Tim Mayberry
6b019a4953
Move UIConfiguration Singleton into UIConfiguration header
...
This removes the direct dependence on ardour_ui.h from 39 files
2015-09-16 16:55:17 -04:00
Tim Mayberry
fc1e7dbb55
Move DPIReset and ColorsChanged signals into UIConfiguration
2015-09-16 16:55:17 -04:00
Colin Fletcher
3cb2f25d89
Add 'accept on focus out' parameter (default false) to AudioClock
...
If this parameter is passed as 'true', then edits to the clock will be
accepted when the user clicks away from the clock, rather than
unconditionally discarded as hitherto.
2015-06-17 17:15:21 +01:00
Ben Loftis
cb2186b118
tweak layout of main clocks so that HMS display remains center-justified
2015-05-21 17:23:04 -05:00
Ben Loftis
91fac4c96d
merge fix for tempo branch
2015-04-21 08:35:20 -05:00
Robin Gareus
2d8aa1d2ff
simplify coaxing clock value out of ardour
2015-04-14 12:09:45 +02:00
Robin Gareus
47110c983c
fix OSX/PPC 10.4 long maths
2015-03-31 16:05:15 +02:00
Colin Fletcher
99e15d9402
Make left-click on tempo/meter in main clock edit current tempo/meter
2015-03-09 19:17:52 +00:00
Paul Davis
d8405e2ebe
add the ability to use cairo scaling to warp the rendering of the main clock text
2014-12-31 07:20:48 -05:00
Robin Gareus
815a8b09e4
follow 113bc3b38e, tentative clock-font size update.
...
This really needs a better solution.
2014-12-29 00:05:58 +01:00
Paul Davis
64fa63212f
move all (G)UI related configuration parameters into UIConfiguration, not RCConfiguration
2014-12-22 13:39:46 -05:00
Paul Davis
318a9edab9
massive reworking of color selection implementation
2014-11-26 18:22:22 +02:00
Robin Gareus
df19c576c7
fix a bunch of memory leaks
2014-09-11 03:04:11 +02:00
Robin Gareus
01864b43e0
redraw clock(s) only when needed.
2014-08-30 20:17:34 +02:00
Robin Gareus
6157c685d9
fix TC entry beyond 2^31 frames.
2014-07-10 19:09:12 +02:00
Paul Davis
eab61cbafe
break out AudioClock::print_minsec() so that AudioClock and VerboseCursor can use the same formatting code.
2014-07-09 19:13:18 -04:00
Robin Gareus
a3c378cf62
move utility functions into a dedicated namespace
2014-06-25 21:47:54 +02:00
Robin Gareus
ab44e41dfd
change the meters into CairoWidget, add expose_area to CairoWidget::render()
2014-03-20 23:50:40 +01:00
Paul Davis
3020b224fa
Merge windows+cc branch into cairocanvas branch. Not finished, need to now merge windows branch to get changes from there
2014-01-10 16:07:57 -05:00
Robin Gareus
2da67fb99f
fix audio-clock sample entry, handle empty entry as NOOP
2013-11-11 02:33:57 +01:00
John Emmas
300b484cf6
Merge branch 'master' into windows+cc
...
Conflicts (hopefully resolved):
gtk2_ardour/ardour_ui.cc
gtk2_ardour/ardour_ui.h
gtk2_ardour/ardour_ui_options.cc
2013-10-06 11:56:03 +01:00
John Emmas
8bf59e88e5
'gtk2_ardour' - Use 'floor / floorf' instead of 'trunc / truncf'
2013-10-03 09:32:08 +01:00
John Emmas
f8574fc39d
'gtk2_ardour' - Add namespaces + casting where necessary + general bits of 'correctness' to keep MSVC happy
2013-10-03 09:06:56 +01:00
Paul Davis
960a47330a
switch from JACK_Slave to Engine_Slave
2013-09-19 17:34:23 -04:00
Robin Gareus
c7fcba77b8
correct error message
2013-07-31 19:29:15 +02:00
Michael R. Fisher
3e11c80ac3
C++11 Building - Add space between macros and quoted strings
2013-07-15 22:57:34 -05:00