13
0
Commit Graph

10519 Commits

Author SHA1 Message Date
1ee63d2610 Restore state of analyze and soundcloud upload checkboxes in ExportDialog
This should be a proper fix for bug #7003, now that I've spent a bit more time
reading the code. The options are now stored as part of the export format
state.
2016-09-14 20:36:04 +10:00
8e995be5cf copy demo sessions 2016-09-13 19:31:38 +02:00
3193aa93ce Rename Struct defined in freesound header to be less generic
This could potentially conflict with a struct declared in the
ardour/soundcloud_upload.h file.
2016-09-13 14:55:02 +10:00
cec0c57b78 Remove duplicate header includes in gtk2_ardour 2016-09-13 14:55:02 +10:00
7d31ec02b3 Add missing header include guards in various gtk2_ardour headers 2016-09-13 14:54:54 +10:00
55af1d539f allow running from src-tree using system-wide gtk-themes w/color defs 2016-09-12 12:01:07 +02:00
fc0114a7e2 Fix #7015, Crash while aborting Region trim using Esc key
There were two issues:

The first is that TrimDrag::aborted was calling TrimDrag::finished with a null
GdkEvent which caused a segfault when dereferencing. So avoid that by passing
in a dummy event as we are just going to undo the operation in the next step
anyway so it shouldn't matter if it is valid(AFAICT).

The other is that TrimDrag:aborted was calling Editor::undo() which was in turn
calling TrimDrag::aborted leading to infinite recursion and stack overflow.
Calling Session::undo() directly seems to avoid that issue.

This fix feels like a bit of a hack...but it seems to work and is better than a
crash.
2016-09-11 22:53:00 +10:00
dab6e8a2d3 Fix #7003, Store/Restore state of checkboxes in Export dialog 2016-09-11 09:29:53 +10:00
3f95b5ac19 closing the normalize dialog should not run normalize (#7016) 2016-09-09 19:15:10 -04:00
673e580726 fix WM close handling for session lock dialog (#7017) 2016-09-09 19:09:15 -04:00
835b874e1e add ActionManager::rec_sensitive_actions and put "add track/bus" in this group, which is disabled during active recording 2016-09-06 16:56:51 -04:00
73fe0e4b97 use moved version of reset_focus() 2016-09-06 16:56:51 -04:00
c9ece0d6c6 use moved version of reset_focus() 2016-09-06 16:17:39 -04:00
07bb5ff347 move kbd focus reset method into ARDOUR_UI where it (probably) belongs 2016-09-06 16:17:08 -04:00
cooltehno
755010f254 Update clear-gray-ardour.colors
This commit changes item "gtk_bases" from light (color22) to darker (color88). The knob of "Enable/Disable MIDI input" in Edit List had the same colour and was not visible. This commit makes it clear visible, and it has no much influence on a general design.
2016-09-06 15:43:40 -04:00
bfd0f321f6 use existing Editor::reset_focus() method to reset focus after audio clock editing is done 2016-09-06 15:40:22 -04:00
ff4e9cc1df do not set the focus widget to be a toplevel window in Editor::reset_focus.
See comments in code for the reason why
2016-09-06 15:39:50 -04:00
nick_m
fb9f4636e7 Remove unused variable. 2016-09-07 00:27:01 +10:00
nick_m
74a604d261 Fix the tempo note-type hallucination.
- after reports that a tempo with non-4.0 note type
	  would produce a ramp in the preceding section, an incorrect
	  assumption was made leading to a bogus 'fix' that redefined
	  Tempo's pulses_per_minute().
	  the real fix was simple:
	  the ramp's function constant was calculated using the note type
	  of the proceding tempo rather than the current one.

	- this patch reverts e82482e8e9 and a4d67279e0
	  and maintains the old definition of Tempo::pulses_per_minute()
2016-09-05 16:28:46 +10:00
nick_m
a4d67279e0 Fix graphical issues in tempo curve. 2016-09-04 03:18:12 +10:00
nick_m
d7879486a0 Ensure the correct position is passed to MidiRegionView::get_grid_beats(). 2016-09-02 05:18:53 +10:00
nick_m
e689182a6a Editor::get_grid_type_as_beats() returns the quarter note equivalent of BBT beat and bar. 2016-09-02 05:11:54 +10:00
ab76a49b22 Fix a bug when formatting time strings
It seems that 'strftime()' (on Windows) works differently from its non-Windows counterparts. Specifically, some formatting options (e.g. %F) are not recognised in the Windows implementation.

Fortunately, glibmm comes to our rescue here! So let's use the glib implementation which will hopefully work the same on all platforms.
2016-09-01 12:31:33 +01:00
nick_m
34e234825e No-op - rename var in MidiRegionView::note_dropped(). 2016-08-31 23:12:11 +10:00
nick_m
dbb9e8cc31 NoteCreateDrag uses quarter-notes. 2016-08-31 23:12:11 +10:00
nick_m
c0f89e99a2 MidiRegionView uses quarter note snapping.
- also ensures poiinter ghost note respects the snap modifier.
2016-08-31 23:12:11 +10:00
nick_m
086096b465 Use quarter-note based 'beat' when snapping. 2016-08-31 23:12:11 +10:00
b7e8d6f131 NOOP: whitespace 2016-08-29 06:38:48 -04:00
95e3f7663e improved (more general) fix for preferences window visibility 2016-08-29 06:38:34 -04:00
97246e501b Revert "apparent fix for preferences window visibility"
This reverts commit 9d6d9c6501.
2016-08-29 06:37:45 -04:00
9d6d9c6501 apparent fix for preferences window visibility 2016-08-29 06:35:45 -04:00
7336a05110 fix focus-on-clock action 2016-08-28 09:05:31 -04:00
4d7eb04cf6 Fix a crash when toggling back and forth between a generic plugin GUI window and a VST plugin's own GUI 2016-08-28 10:26:02 +01:00
845fb839e8 Fix a crash when we display the 'Plugin Analysis' window (in a generic plugin GUI window) and then close the GUI 2016-08-28 10:23:57 +01:00
400f38c721 single action punch in
Consecutive execution (e.g. from a control surface button) engages punch in, then punch out, then clears both.
Patch by Nathan Stewart
2016-08-27 19:57:40 -04:00
094d08dc2b NO-OP: indentation 2016-08-27 06:02:52 -04:00
3c4025d000 fix display of preferences window when detached.
GTK+ apparently unpacks/hides a widget whose requistion at window show/packing time is negative for x or y axes. The RC option editor
was being created AFTER its Tabbable self packed it into its own window (when detached), and GTK+ rejected it because the
treeview had a size requisition with -1 for width.

So build it first, then call Tabbable::set_state() later
2016-08-27 06:02:52 -04:00
ddc4e61b57 forward Lua print() to Ardour's Log. 2016-08-26 17:02:23 +02:00
5c12de78db Update CC automation menu when changing channel selection 2016-08-26 16:18:46 +02:00
7837122e45 add a static function to access processor selection from a Lua script
local ps = ArdourUI.processor_selection()
  for p in ps:iter() do print (p:name ()) end
2016-08-26 03:24:06 +02:00
07fa803aa1 fix a-eq grid layout 2016-08-26 01:10:38 +02:00
cb13882aa3 add len ovens to the authors list 2016-08-25 13:42:38 -04:00
5af281afb1 add nascent poly-phonic pressure to automation menu for MIDI tracks 2016-08-25 13:42:38 -04:00
2e7e2d2658 Fix astate setting for combo parameters when setting all astate
Don't try to be smart when chosing which parameters need their
automation updated but rather trust the list that was populated at
creation time when all relevant information had been gathered.
2016-08-25 19:23:49 +02:00
3921e33c2a Avoid 1px size changes when sizing_text() is used
When requesting a size for ArdourButton, the width and height of the
button could be increased by one to ensure the center of the text would
lie exactly at the center of the button.

I initially thought that it was a good idea even when the text used for
sizing was frozen, but the main (and only?) use-case for that is to
actually freeze the size of the button regardless of the actual
displayed text, so jittering by one pixel is not welcome.

Only do the centering tweak if there is no sizing text.
2016-08-25 19:23:49 +02:00
b424270208 Fix string to float conversion when typing gain values in Gain Meter
Remove the LocaleGuard so that the value of LC_NUMERIC is that of the users
locale and sscanf will parse the string correctly. For instance, with a locale
like nl_NL or fr_FR where the decimal point is different than the "C" locale,
only the number up to the decimal point will be parsed by sscanf and input
values will be rounded down.
2016-08-24 20:42:56 +10:00
cbc5ec764f fix generic GUI layout for no-control UIs 2016-08-24 03:18:28 +02:00
nick_m
ac8617017a Don't attempt to snap to the current musical grid when dragging tempi. 2016-08-24 03:41:42 +10:00
27f347a5de better late than never 2016-08-22 16:29:57 +02:00
289ad1f3c7 use user-specified insertion point when adding new tracks/busses with a template 2016-08-22 09:44:48 -04:00