ardour.git
8 years agoClose export directory browser dialog when clicking on 'Cancel' button, Fixes #6594
Tim Mayberry [Sun, 27 Sep 2015 11:55:20 +0000 (21:55 +1000)]
Close export directory browser dialog when clicking on 'Cancel' button, Fixes #6594

8 years agoupdate semantics of PBD::remove_directory()
Robin Gareus [Sun, 27 Sep 2015 10:44:54 +0000 (12:44 +0200)]
update semantics of PBD::remove_directory()

Remove the directory recursively including itself. The function
is used in two places only:

* LV2Plugin::add_state() -- no change, remove tmp. state
* Session::save_as()  -- on error, remove target

In both cases removing the folder itself is correct.

8 years agofix mixer group-tab width - #6572
Robin Gareus [Sat, 26 Sep 2015 23:33:02 +0000 (01:33 +0200)]
fix mixer group-tab width - #6572

EditorGroupTabs are re-exposed in the idle-callback, widgets
are packed and geometry is valid.

Mixer_UI::redisplay_track_list() does not have this property.

8 years agoaccept/ignore --gcc5abi option during packaging.
Robin Gareus [Sat, 26 Sep 2015 19:23:01 +0000 (21:23 +0200)]
accept/ignore --gcc5abi option during packaging.

8 years ago..and another packaging typo
Robin Gareus [Sat, 26 Sep 2015 18:50:56 +0000 (20:50 +0200)]
..and another packaging typo

8 years agoadd missing space.
Robin Gareus [Sat, 26 Sep 2015 18:29:45 +0000 (20:29 +0200)]
add missing space.

8 years agolinux-installer: gcc4/5 warning.
Robin Gareus [Fri, 11 Sep 2015 16:46:23 +0000 (18:46 +0200)]
linux-installer: gcc4/5 warning.

8 years agonew tool to test gcc4/5 ABI
Robin Gareus [Sat, 26 Sep 2015 16:23:19 +0000 (18:23 +0200)]
new tool to test gcc4/5 ABI

8 years agoremove old gcc ABI (libstc++) test tool
Robin Gareus [Sat, 26 Sep 2015 16:42:38 +0000 (18:42 +0200)]
remove old gcc ABI (libstc++) test tool

8 years agogcc5/c++11 deprecates std::auto_ptr
Robin Gareus [Fri, 25 Sep 2015 22:22:56 +0000 (00:22 +0200)]
gcc5/c++11 deprecates std::auto_ptr

8 years agocopy LV2 options to heap.
Robin Gareus [Fri, 25 Sep 2015 17:43:43 +0000 (19:43 +0200)]
copy LV2 options to heap.

Stack pointer becomes invalid when the array goes out of scope.
Fixes rare crash in suil_wrapper_new() or GUIs iterating over options.

8 years agofix crash at session-close, amend dec4790d
Robin Gareus [Thu, 24 Sep 2015 23:05:13 +0000 (01:05 +0200)]
fix crash at session-close, amend dec4790d

8 years agoAdd some casting to keep MSVC happy
John Emmas [Thu, 24 Sep 2015 08:06:19 +0000 (09:06 +0100)]
Add some casting to keep MSVC happy

8 years agoAdd some newly introduced sources to our MSVC project (libardour)
John Emmas [Thu, 24 Sep 2015 08:05:38 +0000 (09:05 +0100)]
Add some newly introduced sources to our MSVC project (libardour)

8 years agoredisplay markers after removal - fixes #6596
Robin Gareus [Wed, 23 Sep 2015 22:27:32 +0000 (00:27 +0200)]
redisplay markers after removal - fixes #6596

8 years agofix iterator after map::erase().
Robin Gareus [Wed, 23 Sep 2015 20:23:43 +0000 (22:23 +0200)]
fix iterator after map::erase().

The iterator referring to the removed element is invalidated.
Other iterators remain valid.

8 years agostandardize VST Callback debug message print
Robin Gareus [Tue, 22 Sep 2015 18:48:21 +0000 (20:48 +0200)]
standardize VST Callback debug message print

8 years agoadd debug flags for VST Callbacks
Robin Gareus [Tue, 22 Sep 2015 18:37:35 +0000 (20:37 +0200)]
add debug flags for VST Callbacks

8 years agoHide create new item from Group Tab context menu
Todd Naugle [Mon, 21 Sep 2015 21:49:40 +0000 (16:49 -0500)]
Hide create new item from Group Tab context menu

Creating a new empty group from the group tab area just looks broken since
nothing visible happens, so hide this item when the context menu is
triggered from this location.

8 years agoPBD::Debug to stdout
Robin Gareus [Mon, 21 Sep 2015 21:08:45 +0000 (23:08 +0200)]
PBD::Debug to stdout

fixes debug output on windows. std::cerr is lost,
only std::cout, printf() and fprintf(stderr, ..) work.

8 years agoamend 01403dc (VST Pin connected)
Robin Gareus [Mon, 21 Sep 2015 21:01:38 +0000 (23:01 +0200)]
amend 01403dc (VST Pin connected)

8 years agoCreate new Groups with a consistent set of default properties.
Todd Naugle [Mon, 21 Sep 2015 19:52:25 +0000 (14:52 -0500)]
Create new Groups with a consistent set of default properties.

This is part of a larger fix for #6450. Previously new route groups were
created with different default properties depending on which code created
the new group. The group tab method had all properties set and that is now
going to be the default for all other methods (mixer strip button, etc).

8 years agoUpdate RouteGroup property defaults.
Todd Naugle [Mon, 21 Sep 2015 19:49:31 +0000 (14:49 -0500)]
Update RouteGroup property defaults.

This is part of a larger fix for #6450. Previously new route groups were
created with different default properties depending on which code created
the new group. The group tab method had all properties set and that is now
going to be the default.

8 years agoprocessor-box: explicitly check for "Amp" (Fader)
Robin Gareus [Mon, 21 Sep 2015 11:14:29 +0000 (13:14 +0200)]
processor-box: explicitly check for "Amp" (Fader)

8 years agosave-as, update button sensitivity when dir changes
Robin Gareus [Mon, 21 Sep 2015 10:05:31 +0000 (12:05 +0200)]
save-as, update button sensitivity when dir changes

8 years agoadd includes for g_open()
Robin Gareus [Mon, 21 Sep 2015 09:06:34 +0000 (11:06 +0200)]
add includes for g_open()

8 years agofix vst plugin; not sure if this was the intention, but it builds now.
Ben Loftis [Mon, 21 Sep 2015 02:20:12 +0000 (21:20 -0500)]
fix vst plugin; not sure if this was the intention, but it builds now.

8 years agoVpot assign buttons don't do anything, don't light LEDs either.
Len Ovens [Mon, 21 Sep 2015 03:09:42 +0000 (20:09 -0700)]
Vpot assign buttons don't do anything, don't light LEDs either.

8 years agoMake Mackie control surface LEDs for modifier keys only light while pressed. (fixes...
Len Ovens [Mon, 21 Sep 2015 01:26:16 +0000 (18:26 -0700)]
Make Mackie control surface LEDs for modifier keys only light while pressed. (fixes #6601)

8 years agofix VST audioMasterPinConnected callback
Robin Gareus [Mon, 21 Sep 2015 00:20:22 +0000 (02:20 +0200)]
fix VST audioMasterPinConnected callback

8 years agoadd André to authors list.
Robin Gareus [Sun, 20 Sep 2015 20:30:43 +0000 (22:30 +0200)]
add André to authors list.

8 years agofix duplicating multiple selected regions - fixes #6202
André Nusser [Sun, 20 Sep 2015 20:22:39 +0000 (22:22 +0200)]
fix duplicating multiple selected regions - fixes #6202

8 years agoexplicit string.h include for memset()
Robin Gareus [Sun, 20 Sep 2015 18:24:49 +0000 (20:24 +0200)]
explicit string.h include for memset()

8 years agoupdate SFDB settings when track selection changes
Robin Gareus [Sun, 20 Sep 2015 18:03:09 +0000 (20:03 +0200)]
update SFDB settings when track selection changes

8 years agofix initial state of Import Dialog
Robin Gareus [Sun, 20 Sep 2015 18:02:40 +0000 (20:02 +0200)]
fix initial state of Import Dialog

8 years agosilence detection: include fades.
Robin Gareus [Sun, 20 Sep 2015 17:40:32 +0000 (19:40 +0200)]
silence detection: include fades.

Fades must be outside of regions above threshold in order
to properly split drum-hits or fast transients in general.

8 years agofix sndfilesource::open return value typo.
Robin Gareus [Sun, 20 Sep 2015 16:38:52 +0000 (18:38 +0200)]
fix sndfilesource::open return value typo.

8 years agobasic GUI support to auto-align video by LTC.
Robin Gareus [Sun, 20 Sep 2015 16:37:39 +0000 (18:37 +0200)]
basic GUI support to auto-align video by LTC.

8 years agoprepare LTC File Reader
Robin Gareus [Sun, 20 Sep 2015 01:17:26 +0000 (03:17 +0200)]
prepare LTC File Reader

8 years agoGUI part of silence-trim fade constraint.
Robin Gareus [Sat, 19 Sep 2015 23:28:37 +0000 (01:28 +0200)]
GUI part of silence-trim fade constraint.

8 years agoadd silence-stripping fade constraints
Robin Gareus [Sat, 19 Sep 2015 23:28:15 +0000 (01:28 +0200)]
add silence-stripping fade constraints

Ensure that non-silent regions are at least
as long as the selected fade-duration.

8 years agoSilence detect: constrain duration in GUI.
Robin Gareus [Sat, 19 Sep 2015 21:33:35 +0000 (23:33 +0200)]
Silence detect: constrain duration in GUI.

8 years agoNOOP, whitespace.
Robin Gareus [Sat, 19 Sep 2015 18:31:32 +0000 (20:31 +0200)]
NOOP, whitespace.

8 years agoindicate that silence trim is already active.
Robin Gareus [Sat, 19 Sep 2015 18:28:56 +0000 (20:28 +0200)]
indicate that silence trim is already active.

8 years agoband-aid for Glib::operator<<
Robin Gareus [Sat, 19 Sep 2015 16:38:56 +0000 (18:38 +0200)]
band-aid for Glib::operator<<

it seems that g_locale_from_utf8() (called by <<) is not thread safe,
at least not on OSX.

glib error-code 1, Invalid byte sequence in conversion input
-> throws Glib::Error.

possible fix for #6435, route-creation is interrupted via catch(...)

8 years agoDummy: add a CC only test-sequence
Robin Gareus [Sat, 19 Sep 2015 16:32:35 +0000 (18:32 +0200)]
Dummy: add a CC only test-sequence

8 years agofix crash at exit, ctrl+s during quit.
Robin Gareus [Sat, 19 Sep 2015 16:32:23 +0000 (18:32 +0200)]
fix crash at exit, ctrl+s during quit.

8 years agofix possible endless loop in silence detection
Robin Gareus [Sat, 19 Sep 2015 16:31:41 +0000 (18:31 +0200)]
fix possible endless loop in silence detection

8 years agoremove cruft
Robin Gareus [Sat, 19 Sep 2015 16:30:01 +0000 (18:30 +0200)]
remove cruft

8 years agoStripSilence: invalidate Completed connection - fixes #6600
Robin Gareus [Sat, 19 Sep 2015 16:29:51 +0000 (18:29 +0200)]
StripSilence: invalidate Completed connection - fixes #6600

8 years agotweak colors for silence-detection
Robin Gareus [Sat, 19 Sep 2015 16:10:29 +0000 (18:10 +0200)]
tweak colors for silence-detection

The text annotation needs to be visible:
 - above default background (dark gray)
 - above waveform (orange)
 - above silent-highly regions (violet, was bright turqoise)

old color (dark blue) failed for all but the waveform.

8 years agofix silence-strip process report
Robin Gareus [Sat, 19 Sep 2015 15:32:40 +0000 (17:32 +0200)]
fix silence-strip process report

8 years agofix progress reporter, use idle callback.
Robin Gareus [Sat, 19 Sep 2015 15:32:12 +0000 (17:32 +0200)]
fix progress reporter, use idle callback.

do not directly hook into Glib's Main Context.

8 years agounhardcode OSX bundle-name
Robin Gareus [Sat, 19 Sep 2015 13:10:15 +0000 (15:10 +0200)]
unhardcode OSX bundle-name

8 years agoFix windows test to also pass under wine
Tim Mayberry [Sat, 19 Sep 2015 00:59:39 +0000 (10:59 +1000)]
Fix windows test to also pass under wine

It looks as if the default timer resolution for applications running under wine
is different than Windows so just test that the minimum timer resolution is
below a certain amount rather than checking before and after calling
timeBeginPeriod

8 years agono c99
Robin Gareus [Fri, 18 Sep 2015 23:22:14 +0000 (01:22 +0200)]
no c99

8 years agospeed-up smf_track_delete() from O(N^2) to O(n)
Robin Gareus [Fri, 18 Sep 2015 22:38:32 +0000 (00:38 +0200)]
speed-up smf_track_delete() from O(N^2) to O(n)

8 years agocreate new Event-IDs for pasted midi-notes
Robin Gareus [Fri, 18 Sep 2015 18:37:00 +0000 (20:37 +0200)]
create new Event-IDs for pasted midi-notes

8 years agoNOOP - SMF debugging.
Robin Gareus [Fri, 18 Sep 2015 13:13:09 +0000 (15:13 +0200)]
NOOP - SMF debugging.

8 years agoMidi CC events have no event-ID
Robin Gareus [Fri, 18 Sep 2015 15:37:03 +0000 (17:37 +0200)]
Midi CC events have no event-ID

Prior to this change the last iterator's ID was used. (event's ID was
not updated for CCs)

8 years agofix ever increasing MIDI event IDs
Robin Gareus [Fri, 18 Sep 2015 15:34:12 +0000 (17:34 +0200)]
fix ever increasing MIDI event IDs

Iterating over a const Midi-Sequence calls Evoral::Sequence::set_event(),
which in turn used Evoral::Event::operator=()  which always created
a new event-ID (create copy of the event).

Issues fixed:
 - Saving *unmodified* MIDI produced new event-IDs on every save;
   files changed with every save. - greetings to Deva.
 - all [GUI] operations that use IDs to refer to notes e.g. undo.
   invalid undo-history.

Also clarify assignment operator name. Prefer explicit assign() over =.

8 years agoModify Strip Silence so that it can't create regions with -ve lengths
John Emmas [Fri, 18 Sep 2015 09:44:07 +0000 (10:44 +0100)]
Modify Strip Silence so that it can't create regions with -ve lengths

AFAICT this could happen if a region's end time (on the timeline) was earlier than the end time in the actual recording. This could cause a situation where the last block of detected silence would have an end time greater than the end tome for the region being processed. Strip Silence would create its new regions - but the last one it created would usually come out with a negative duration.

8 years agoMSVC - add support for newly introduced gtk2_ardour/tooltips.cc and tooltips.h
John Emmas [Fri, 18 Sep 2015 09:29:31 +0000 (10:29 +0100)]
MSVC - add support for newly introduced gtk2_ardour/tooltips.cc and tooltips.h

8 years agoMake sure that those recently moved functions will be visible if they're needed outsi...
John Emmas [Fri, 18 Sep 2015 09:27:27 +0000 (10:27 +0100)]
Make sure that those recently moved functions will be visible if they're needed outside of libpbd

8 years agoMSVC projects - accommodate some modules that recently got moved or removed
John Emmas [Fri, 18 Sep 2015 09:25:11 +0000 (10:25 +0100)]
MSVC projects - accommodate some modules that recently got moved or removed

(mostly these got moved out of the PortAudio backend and into libpbd)

8 years agoRevert "work around bug or feature of string_compose()"
Robin Gareus [Thu, 17 Sep 2015 22:04:42 +0000 (00:04 +0200)]
Revert "work around bug or feature of string_compose()"

This reverts commit 17baf9362641f024440b61cecc176ee9096e1418.
It's no longer needed since c1d6a2f

8 years agoadd string_compose argument specializations so that empty std::string and empty C...
Paul Davis [Thu, 17 Sep 2015 21:16:05 +0000 (17:16 -0400)]
add string_compose argument specializations so that empty std::string and empty C strings are handled as intended

8 years agoassociate label more closely with VST path button. the plugin tab needs a complete...
Ben Loftis [Thu, 17 Sep 2015 21:07:40 +0000 (16:07 -0500)]
associate label more closely with VST path button.  the plugin tab needs a complete layout rethink, someday

8 years agospeficy gtk treeview style for consistency
Robin Gareus [Thu, 17 Sep 2015 19:09:13 +0000 (21:09 +0200)]
speficy gtk treeview style for consistency

8 years agowork around bug or feature of string_compose()
Robin Gareus [Thu, 17 Sep 2015 18:51:11 +0000 (20:51 +0200)]
work around bug or feature of string_compose()

string_compose("x%1x x%2x x%3x", "A", "", "C")
-> "xAx xCx xx"
and not
-> "xAx xx xCx"

8 years agoAdd test to libpbd to check PBD::touch_file and pbd/gstdio_compat.h
Tim Mayberry [Thu, 17 Sep 2015 05:13:16 +0000 (15:13 +1000)]
Add test to libpbd to check PBD::touch_file and pbd/gstdio_compat.h

GStatBuf is not usable on 32 bit Windows without the redefinition in
pbd/gstdio_compat.h so add a test to check for the correct behavior of
g_stat and g_utime on all platforms now that the issue is fixed.

8 years agofix g_lstat()
Robin Gareus [Thu, 17 Sep 2015 13:01:26 +0000 (15:01 +0200)]
fix g_lstat()

8 years agouse pbd's gstdio compatibility wrapper (GUI)
Robin Gareus [Thu, 17 Sep 2015 12:38:09 +0000 (14:38 +0200)]
use pbd's gstdio compatibility wrapper (GUI)

8 years agouse pbd's gstdio compatibility wrapper
Robin Gareus [Thu, 17 Sep 2015 12:37:57 +0000 (14:37 +0200)]
use pbd's gstdio compatibility wrapper

8 years agoadd glib/stdio compat wrapper for mingw64-w32
Robin Gareus [Thu, 17 Sep 2015 12:36:06 +0000 (14:36 +0200)]
add glib/stdio compat wrapper for mingw64-w32

8 years agoexplicit glibmm/datetime include
Robin Gareus [Thu, 17 Sep 2015 11:37:34 +0000 (13:37 +0200)]
explicit glibmm/datetime include

On some distros. glibmm.h does not include glibmm/datetime.h

8 years agoUse PBD::open_uri in about dialog to open website, should fix #6463
Tim Mayberry [Thu, 17 Sep 2015 01:55:22 +0000 (11:55 +1000)]
Use PBD::open_uri in about dialog to open website, should fix #6463

8 years agofix #6588. use ardour-codename only for Ardour.
Robin Gareus [Wed, 16 Sep 2015 22:40:32 +0000 (00:40 +0200)]
fix #6588. use ardour-codename only for Ardour.

8 years agoRevert "add an Amp to Delivery, remove it from Send, make use of this in various...
Paul Davis [Wed, 16 Sep 2015 22:32:28 +0000 (18:32 -0400)]
Revert "add an Amp to Delivery, remove it from Send, make use of this in various ::run() methods"

This reverts commit 601a34521c2ce1d0167ed2f3c66f2fa6eeeb6b8e.

8 years agofix a tautologically undefined comparison
Robin Gareus [Wed, 16 Sep 2015 22:20:13 +0000 (00:20 +0200)]
fix a tautologically undefined comparison

8 years agodeleting pointers to incomplete types may cause undefined behavior
Robin Gareus [Wed, 16 Sep 2015 22:13:43 +0000 (00:13 +0200)]
deleting pointers to incomplete types may cause undefined behavior

8 years agofix clang compilation.
Robin Gareus [Wed, 16 Sep 2015 22:10:50 +0000 (00:10 +0200)]
fix clang compilation.

pbd/configuration_variable.h:84:6: error: call to function 'operator>>' that is neither visible in the template definition nor found by argument-dependent lookup

ardour/types.h defines  std::istream& operator>> and must be included prior to pbd/configuration_variable.h

8 years agofix missed but required merge resolution related to UIConfiguration's new status...
Paul Davis [Wed, 16 Sep 2015 21:11:54 +0000 (17:11 -0400)]
fix missed but required merge resolution related to UIConfiguration's new status as a singleton in this branch.

8 years agoUse tooltips.h in ArdourButton to remove ardour_ui.h inclusion
Tim Mayberry [Wed, 29 Apr 2015 13:14:58 +0000 (23:14 +1000)]
Use tooltips.h in ArdourButton to remove ardour_ui.h inclusion

8 years agoUse ARDOUR_UI_UTILS::set_tooltip rather than via ARDOUR_UI::set_tip
Tim Mayberry [Mon, 5 Jan 2015 05:32:14 +0000 (12:32 +0700)]
Use ARDOUR_UI_UTILS::set_tooltip rather than via ARDOUR_UI::set_tip

This removes the direct dependence on ARDOUR_UI/Gtk_UI for setting
tooltips. Removes inclusion of ardour_ui.h from 16 files.

8 years agoAdd tooltips.h header for setting tooltips rather than via ardour_ui.h
Tim Mayberry [Mon, 5 Jan 2015 05:28:59 +0000 (12:28 +0700)]
Add tooltips.h header for setting tooltips rather than via ardour_ui.h

8 years agoAdd missing header include in midi_channel_selector.h
Tim Mayberry [Mon, 5 Jan 2015 05:19:44 +0000 (12:19 +0700)]
Add missing header include in midi_channel_selector.h

8 years agoAdd missing header include in shuttle_control.h
Tim Mayberry [Mon, 5 Jan 2015 05:14:30 +0000 (12:14 +0700)]
Add missing header include in shuttle_control.h

8 years agoAdd missing header include in plugin_selector.h
Tim Mayberry [Mon, 5 Jan 2015 04:41:39 +0000 (11:41 +0700)]
Add missing header include in plugin_selector.h

8 years agoRemove ardour_ui.h header inclusion
Tim Mayberry [Mon, 5 Jan 2015 01:54:55 +0000 (08:54 +0700)]
Remove ardour_ui.h header inclusion

8 years agoRemove tooltips() member from ARDOUR_UI and use Gtk_UI::set_tip
Tim Mayberry [Mon, 5 Jan 2015 01:22:37 +0000 (08:22 +0700)]
Remove tooltips() member from ARDOUR_UI and use Gtk_UI::set_tip

8 years agoUse Forward declaration for non-MSVC compilers in ardour_ui.h
Tim Mayberry [Tue, 23 Dec 2014 03:54:25 +0000 (10:54 +0700)]
Use Forward declaration for non-MSVC compilers in ardour_ui.h

I can't test this with MSVC so John might have to fix this, just
adding the necessary header includes inside MSVC specific ifdef
but I think it should be OK

8 years agoForward declare Meterbridge class in ardour_ui.h
Tim Mayberry [Sun, 4 Jan 2015 16:05:12 +0000 (23:05 +0700)]
Forward declare Meterbridge class in ardour_ui.h

8 years agoRemove ui_config.h inclusion from ardour_ui.h
Tim Mayberry [Sun, 4 Jan 2015 15:58:46 +0000 (22:58 +0700)]
Remove ui_config.h inclusion from ardour_ui.h

8 years agoMove UIConfiguration Singleton into UIConfiguration header
Tim Mayberry [Fri, 2 Jan 2015 14:44:54 +0000 (21:44 +0700)]
Move UIConfiguration Singleton into UIConfiguration header

This removes the direct dependence on ardour_ui.h from 39 files

8 years agoMove ARDOUR_UI::ui_scale into UIConfiguration class
Tim Mayberry [Wed, 29 Apr 2015 11:30:07 +0000 (21:30 +1000)]
Move ARDOUR_UI::ui_scale into UIConfiguration class

8 years agoAdd ardour/types.h to ardour/parameter_descriptor.h for AutomationType
Tim Mayberry [Sun, 4 Jan 2015 06:43:29 +0000 (13:43 +0700)]
Add ardour/types.h to ardour/parameter_descriptor.h for AutomationType

8 years agoRemove inclusion of ardour_ui.h from ui_config.cc
Tim Mayberry [Sun, 4 Jan 2015 14:25:07 +0000 (21:25 +0700)]
Remove inclusion of ardour_ui.h from ui_config.cc

8 years agoMove DPIReset and ColorsChanged signals into UIConfiguration
Tim Mayberry [Sun, 4 Jan 2015 14:18:48 +0000 (21:18 +0700)]
Move DPIReset and ColorsChanged signals into UIConfiguration

8 years agoRemove unused header include
Tim Mayberry [Sun, 4 Jan 2015 13:32:48 +0000 (20:32 +0700)]
Remove unused header include