d3d7428a18
tap-tempo: reset running average whenever tapped tempo deviates by +/- 20%
2015-03-27 13:23:33 +00:00
3127587f9a
Go back to using g_get_monotonic_time() for tap tempo
...
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-27 13:22:38 +00:00
ee959e73fd
tap-tempo: try to make it work properly from the very first click
2015-03-21 12:19:25 +00:00
37b0e8ac90
Use ev->time rather than g_get_monotonic_time() for tap tempo
...
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-03-09 19:19:16 +00:00
f7a2df1c9a
Make editing of meter work at the current position
...
Add a function TempoMap::meter_section_at(), similar to
TempoMap::tempo_section_at() but returning the meter section at the given
position, and use this to make editing meter changes from the main clock
work on the meter that's in effect at the current position.
2015-03-09 19:17:53 +00:00
99e15d9402
Make left-click on tempo/meter in main clock edit current tempo/meter
2015-03-09 19:17:52 +00:00
760e00b028
Remove useless parameters from MainClock constructor
...
Remove (always false) duration & is_transient and (always true) editable,
with_info & follows_playhead parameters from MainClock constructor, and just
pass the requisite true & false values along to the AudioClock constructor
instead.
2015-03-09 19:17:52 +00:00
714677f036
Change order of midi entries so a new backend will default to a working midi system.
...
Needs testing on all platforms.
2015-03-03 15:52:44 -06:00
ecd265222a
Add/edit tempo/meter change at right position with 'delta to edit cursor'
...
Find the absolute position of the main clock when 'display delta to edit
cursor' is set when adding/editing tempo/meter changes from the context
menu.
2015-02-12 18:06:16 +00:00
24e8e865a6
Ignore playhead when finding delta from edit position for main clocks
...
Pass 'ignore_playhead == true' to Editor::get_preferred_edit_position()
when calculating offset of the primary and secondary main clocks if 'delta
to edit cursor' is selected, so that if the edit point is playhead, the
selected marker (if any) or mouse position will be used as the delta origin
instead.
2015-02-12 18:06:16 +00:00
1973243a98
Separate out creation of xrun markers from Editor::mouse_add_new_marker()
...
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.
2015-02-12 18:06:16 +00:00
7de6128169
Add tempo and meter editing functions to main clock context menu
...
Add 'Edit Tempo/Meter' and 'Insert Tempo/Meter Change' to the main clock's
context menu.
2015-02-12 18:06:16 +00:00
ee6ecf9034
A few whitespace fixes
...
A few trivial whitesapce fixes, including replacing leading spaces with tabs in
editor.h.
2015-02-12 18:06:16 +00:00
bd6ef95989
add accessor methods for single_exposure
2015-02-12 11:35:35 -06:00
b8ec035b24
_single_exposure is now a member variable for each GtkCanvas.
...
Gtk coalesces multiple exposes into a single combined rect.
If _single_exposure is disabled, we break apart the individual expose rects for the canvas rendering.
2015-02-12 11:35:35 -06:00
16346296d3
windows: deploy suil modules
2015-02-12 17:37:24 +01:00
180b705643
Fix whitespace in pbd/debug.h
2015-02-12 22:10:51 +10:00
0550ec31bc
Add local PwdReset class to reset pwd in event of test failure
...
This fixes subsequent tests that rely on pwd but not PBD::path_is_within
breakage caused by commit 2689848e
2015-02-12 20:06:47 +10:00
9a7ae1ad99
Add some more test assertions so that tests fail when they should
2015-02-12 20:06:47 +10:00
0f0aebf26b
remove naive attempt to avoid drawing first vertical pixel line of Canvas::WaveView
...
And add commented out attempt at more subtle attempt to get it right
2015-02-11 21:59:38 -05:00
11cfdd4c6d
remove use of TimeRectangle
2015-02-11 21:59:38 -05:00
a992a2e6e0
simplify Canvas::Rectangle rendering to avoid unnecessary nonsense, and remove TimeRectangle
2015-02-11 21:59:38 -05:00
2a5921ecf1
Canvas::Rect::contains() should treat its right/left coordinates as exclusive
2015-02-11 21:59:38 -05:00
9090057f6e
When setting the duration of a TimeAxisViewItem, do not round before computing pixel width
2015-02-11 21:59:38 -05:00
baf10dc4e3
Editor::sample_to_pixel() always returns an integer value, but it should use explicit rounding
2015-02-11 21:59:38 -05:00
e8c24f1efd
fix midi-capture filter
...
diskstream reads directly from port, Route
use prefilled buffer-set.
2015-02-12 01:05:16 +01:00
d92608b05f
use magic strings instead of magic numbers (allow profiles to leave out some track type options)
2015-02-11 14:29:50 -06:00
b1f9b644fc
desensitize redirect-menu Send and Control items when they are not applicable
2015-02-11 11:13:24 -06:00
b2d4c731e8
properly activating MIDI parsing for traced ports
2015-02-10 19:48:47 -05:00
eddcd7128f
infrastructure to allow tracing of all MIDI ports
2015-02-10 19:48:47 -05:00
266ac60941
skip drawing the first pixel of waves in an audio region view.
...
This means that they do no overwrite the frame border of the time axis item
2015-02-10 19:48:47 -05:00
34779ee81e
add a sort-of hack to allow us to avoid drawing the first pixel of a waveview when necessary
2015-02-10 19:48:47 -05:00
99054ea415
fix previous commit
2015-02-10 14:54:43 -06:00
d273bb3de8
Track Mode is too vague; rename to Record Mode
2015-02-10 14:43:17 -06:00
e9e29bf2b0
flip the priority of input and output buttons and menus
...
left-click should show the simple input picker menu.
right-click shows the routing grid.
also reordered the menu to give lower precedence to {add/remove}-port
2015-02-10 14:43:17 -06:00
6cad07fc11
fix boot message always sticking on the last loaded route; it looked like an error
2015-02-10 14:43:16 -06:00
f131e15545
fixed collision with <SECONDARY>n binding
2015-02-10 14:43:16 -06:00
c679d616f6
correct drawing of rectangle borders.
...
They need to use fractional coordinates, and the border position needed
generalizing for other border widths. See verbose comment for details
2015-02-09 16:41:28 -05:00
736038556f
canvas items must be able to use fractional positions when rendering.
...
This is required to be able to draw precise single pixel lines, as described
in the Cairo FAQ
2015-02-09 16:40:10 -05:00
ef79d1c4d4
fix last cherry-pick
2015-02-09 14:46:20 -05:00
b2e93b8fba
fix color and alpha of timestretch rect
2015-02-09 14:46:20 -05:00
6dbc0c0919
put function into namespace
2015-02-09 14:46:20 -05:00
429da16b60
Fix sending out of bounds events to LV2 plugins.
2015-02-09 13:45:37 -05:00
abcd70c1d2
After dragging from multiple tracks to the dropzone, create the right number of new tracks.
...
This does not address the visual flattening that occurs before the drop
is complete. Doing that is complex and there is no immediate solution
visible. The result after the drop is complete is correct, however.
Conflicts:
gtk2_ardour/editor_drag.cc
2015-02-09 11:03:03 -05:00
nick_m
b1dafe9a31
Properly deallocate memory when clearing selection_op_history and
...
before XMLNode*s.
Improve some comments.
2015-02-07 23:33:09 +11:00
ae09d7132d
fix 192k rate
2015-02-06 13:57:22 -06:00
af174c0519
when the user changes devices, notify the backend
2015-02-06 13:55:00 -06:00
63a1b56560
fix (and comment) on subtle bug with audio file data width function
2015-02-06 10:33:01 -05:00
nick_m
6b9415aedb
Make undo/redo work for:
...
undo (n) where n > 1
redo (m) where m < n
new transaction.
Previously the redo list was left untouched.
This would lead to utter nonsense in the redo list.
AFAICT this never worked.
2015-02-06 21:54:27 +11:00
ec37c83507
fixup cherry-picked changes from Waves Tracks, and fix for Ardour
2015-02-05 20:26:02 -05:00