Robin Gareus [Thu, 27 Apr 2017 17:43:34 +0000 (19:43 +0200)]
Fix flow for latency measurements that needs an engine stop.
Make AudioEngine::prepare_for_latency_measurement() idempotent. There are
multple calls (when switching to the measurement page and every time
a measurement is preformed).
Also the Stopped() signal is important for the Dialog state regardless
if the engine was stopped for latency or not.
Robin Gareus [Thu, 27 Apr 2017 14:21:27 +0000 (16:21 +0200)]
Fix Editor/Mixer visibility (OSX, NSGLCanvas)
Only unpacking a widget retains the GdkWindow and and the widget is still
mapped. The NSView is still visible. See also
235631a6.
Robin Gareus [Thu, 27 Apr 2017 13:36:50 +0000 (15:36 +0200)]
Annotate CC-to-Automation Lua-script and fix start/pos offset.
Robin Gareus [Wed, 26 Apr 2017 22:25:57 +0000 (00:25 +0200)]
Consistent button visibility (mixer-strips + VCAs)
Robin Gareus [Wed, 26 Apr 2017 22:11:18 +0000 (00:11 +0200)]
Fix nested VCA assigns and mixer-layout:
Show initial VCA assign button on all mixer-strips and VCAs if
there's no assignment.
Robin Gareus [Wed, 26 Apr 2017 21:42:47 +0000 (23:42 +0200)]
fix a -Wreorder following
d837914e2
Robin Gareus [Wed, 26 Apr 2017 14:21:39 +0000 (16:21 +0200)]
AutomationLine time-unit conversion and paste API update
This fixes copy/paste of MIDI automation (time-unit: beat) from/to
Parameter automation (time-unit: samples).
It also fixes repeatedly pasting with tempo-ramps: pre-multiply length
before converting to samples.
Robin Gareus [Wed, 26 Apr 2017 17:45:03 +0000 (19:45 +0200)]
Skip script-setup if there are no parameters (and name is unique)
Tim Mayberry [Wed, 26 Apr 2017 07:33:55 +0000 (17:33 +1000)]
Use a const iterator for sorted RouteList in Session::state
Tim Mayberry [Fri, 21 Apr 2017 10:33:05 +0000 (20:33 +1000)]
Sort Route xml node order by PBD::ID instead of by PresentationInfo
This prevents the node order from changing when the display order of the Routes
changes, which helps to reduce the amount of Session file change.
This is useful for testing and if keeping sessions under version control.
Resolves: #7327
John Emmas [Wed, 26 Apr 2017 07:09:35 +0000 (08:09 +0100)]
Accommodate newly introduced source(s) in our MSVC project (gtk2_ardour)
Robin Gareus [Tue, 25 Apr 2017 16:40:43 +0000 (18:40 +0200)]
Assume VST chunks are portable (Mac, Linux, Windows VST)
Robin Gareus [Tue, 25 Apr 2017 15:22:39 +0000 (17:22 +0200)]
Fix conversion in
41b997a90 (monitor cut, invert)
Robin Gareus [Tue, 25 Apr 2017 14:46:21 +0000 (16:46 +0200)]
Update LuaDialog scripts
Robin Gareus [Tue, 25 Apr 2017 14:45:18 +0000 (16:45 +0200)]
Lua Dialog refinements:
* Add Heading Widget
* Swap OK/Cancel Buttons
* Update table layout (spacing + alignment)
* Some whitespace tweaks
Robin Gareus [Tue, 25 Apr 2017 13:48:14 +0000 (15:48 +0200)]
Add missing Lua ClassKeys (windows build)
Robin Gareus [Tue, 25 Apr 2017 12:05:34 +0000 (14:05 +0200)]
Fix Windows build: declare static class-keys (amend
201fd5574)
Robin Gareus [Tue, 25 Apr 2017 12:00:29 +0000 (14:00 +0200)]
Update CC-to-Automation script: use Lua-Dialog for parameters
Robin Gareus [Tue, 25 Apr 2017 03:26:56 +0000 (05:26 +0200)]
Add a Lua script to exercise the LuaDialog
Robin Gareus [Mon, 24 Apr 2017 20:12:09 +0000 (22:12 +0200)]
Lua: Action Script Dialog & MessageBox
Robin Gareus [Tue, 25 Apr 2017 11:59:43 +0000 (13:59 +0200)]
Some more Lua ARDOUR::Plugin bindings
Robin Gareus [Tue, 25 Apr 2017 11:59:15 +0000 (13:59 +0200)]
Add an API to conveniently query plugin-parameter labels
Robin Gareus [Tue, 25 Apr 2017 08:57:35 +0000 (10:57 +0200)]
Expose ArdourDropdown's menu for submenu packing
Robin Gareus [Tue, 25 Apr 2017 01:55:25 +0000 (03:55 +0200)]
Remove old special case (ArdourDialog::on_response hides the dialog)
Robin Gareus [Mon, 24 Apr 2017 19:08:32 +0000 (21:08 +0200)]
de-select WASAPI by default
Robin Gareus [Mon, 24 Apr 2017 02:15:16 +0000 (04:15 +0200)]
Add example script to convert MIDI-CC to Plugin Automation
Robin Gareus [Mon, 24 Apr 2017 02:12:13 +0000 (04:12 +0200)]
Simplify example script
Now that AutomationList is-a ControlList no explicit cast is needed.
Robin Gareus [Mon, 24 Apr 2017 02:10:10 +0000 (04:10 +0200)]
Add ControlEvent Lua bindings and related methods to access MIDI-CC
Robin Gareus [Mon, 24 Apr 2017 02:08:53 +0000 (04:08 +0200)]
Swap inheritance, simplifies Lua Bindings
Tim Mayberry [Sun, 23 Apr 2017 11:32:09 +0000 (21:32 +1000)]
Add regions at once rather than individually when restoring Selection state
This is a workaround for performance issues with the current implementation
when adding many regions to the selection one at a time.
If the Selection implementation was to change at some point and adding regions
to the selection only takes a small constant amount of time, then this
optimization may no longer be necessary.
Related to: #7274
Len Ovens [Sat, 22 Apr 2017 22:32:48 +0000 (15:32 -0700)]
Changed "ardour" to PROGRAM_NAME
Robin Gareus [Sat, 22 Apr 2017 21:05:37 +0000 (23:05 +0200)]
Close all dialogs when closing a session (not only at exit).
Robin Gareus [Sat, 22 Apr 2017 21:01:26 +0000 (23:01 +0200)]
Reset process-graph semaphores on engine-restart
Robin Gareus [Sat, 22 Apr 2017 21:00:53 +0000 (23:00 +0200)]
Add mechanism to reset/lock semaphores
Robin Gareus [Sat, 22 Apr 2017 20:16:06 +0000 (22:16 +0200)]
remove unused semaphore
Robin Gareus [Sat, 22 Apr 2017 19:28:05 +0000 (21:28 +0200)]
NO-OP: whitespace
Robin Gareus [Sat, 22 Apr 2017 19:27:00 +0000 (21:27 +0200)]
Privatize non-public methods
Len Ovens [Sat, 22 Apr 2017 15:07:35 +0000 (08:07 -0700)]
Set -b switch to only two columns, correct options text.
Robin Gareus [Sat, 22 Apr 2017 14:09:10 +0000 (16:09 +0200)]
NO-OP: whitespace
Robin Gareus [Sat, 22 Apr 2017 14:04:35 +0000 (16:04 +0200)]
Add a Readme pertaining to GH release tarballs
Robin Gareus [Sat, 22 Apr 2017 13:19:34 +0000 (15:19 +0200)]
Remove stub file which was used for pre-commit hook testing
Robin Gareus [Fri, 21 Apr 2017 23:06:54 +0000 (01:06 +0200)]
Robin Gareus [Fri, 21 Apr 2017 21:54:17 +0000 (23:54 +0200)]
fix endless loop when clicking on the canvas w/o backend
Len Ovens [Fri, 21 Apr 2017 19:58:59 +0000 (12:58 -0700)]
Add HTML output for -b so that output can replace actions page in manual.
Len Ovens [Fri, 21 Apr 2017 14:29:13 +0000 (07:29 -0700)]
OSC: correct spelling
Robin Gareus [Fri, 21 Apr 2017 14:05:24 +0000 (16:05 +0200)]
Resolve potential variable name ambiguity for older compilers
Robin Gareus [Fri, 21 Apr 2017 08:43:22 +0000 (10:43 +0200)]
Re-nice ALSA MIDI port names
Robin Gareus [Fri, 21 Apr 2017 08:26:59 +0000 (10:26 +0200)]
Do not clear pretty-names set by the backend
Since
7dde6c3b8f pretty-names are no longer saved and hence initially
empty. The port-manager cleared existing pretty-port-names.
Robin Gareus [Fri, 21 Apr 2017 03:36:52 +0000 (05:36 +0200)]
Fix thinko in
6ae047cdd and
8f488515 (prefer LV2 symbol over ID)
Tim Mayberry [Thu, 20 Apr 2017 00:55:31 +0000 (10:55 +1000)]
Use correct property names in PBD::Undo class
These have been "normalized" in XMLProperty ctor for many years, so this does
not change the Session format.
Tim Mayberry [Wed, 19 Apr 2017 12:21:03 +0000 (22:21 +1000)]
Use XMLNode::get_property in Session::restore_history
Avoid using std::stringstream due to potential future issues with C++ locale.
Also avoids potential NULL pointer dereferences.
Tim Mayberry [Wed, 19 Apr 2017 10:57:18 +0000 (20:57 +1000)]
Use hyphen for XML property names
These have been normalized/modified by the XMLProperty ctor for many years (~9)
so special treatment when reading properties should not be needed.
Tim Mayberry [Wed, 19 Apr 2017 10:48:47 +0000 (20:48 +1000)]
Use XMLNode::get_property in Session::memento_command_factory
Avoids potential issues with dereferencing a NULL XMLProperty pointer and
improves readability by using better locally scoped variable names.
Tim Mayberry [Fri, 21 Apr 2017 01:40:03 +0000 (11:40 +1000)]
Fix restoration of Plugin Controllable state ID's
Caused by thinko when merging/replacing two conditional clauses in the
string-convert changes which resulted in bindings not being restored and
regeneration of id's in XML.
Robin Gareus [Fri, 21 Apr 2017 01:47:26 +0000 (03:47 +0200)]
Retain state of disabled ctrl-surfaces
Robin Gareus [Fri, 21 Apr 2017 01:37:26 +0000 (03:37 +0200)]
Fix adeadlock (or rather NDEADLCK)
ControlProtocolManager::set_state() already takes the protocols_lock.
However effectively this is a NO-OP. During ::set_state no CPI should
be instantiated and ControlProtocolManager::teardown() returns early.
Robin Gareus [Fri, 21 Apr 2017 00:56:29 +0000 (02:56 +0200)]
Update preferences when Ctrl-surfaces change with session.
Robin Gareus [Fri, 21 Apr 2017 00:53:51 +0000 (02:53 +0200)]
Notify GUI when tearing down ctrl-surfaces
Robin Gareus [Thu, 20 Apr 2017 22:12:20 +0000 (00:12 +0200)]
squelch "curl failed: No Error"
Robin Gareus [Thu, 20 Apr 2017 21:47:39 +0000 (23:47 +0200)]
NO-OP: whitespace
Robin Gareus [Thu, 20 Apr 2017 21:16:09 +0000 (23:16 +0200)]
Show the splash-screen if the engine dialog's run() hid it.
Robin Gareus [Thu, 20 Apr 2017 21:15:13 +0000 (23:15 +0200)]
Run gtk-main iteration after hiding dialogs
Robin Gareus [Thu, 20 Apr 2017 20:47:45 +0000 (22:47 +0200)]
Fix operator precedence (amend
e7e9e025)
Robin Gareus [Thu, 20 Apr 2017 20:14:36 +0000 (22:14 +0200)]
Remove unused enum
Robin Gareus [Thu, 20 Apr 2017 20:11:50 +0000 (22:11 +0200)]
Relax LocaleGuards
Arodur itself on longer depends on C/C++ locale for saving/loading sessions.
However, the Localeguard is kept for 3rd party plugins: Reset the C locale
to "C" to enforce consisten numerics and portable sessions as well
as verify that no plugin changes the C++ locale.
Robin Gareus [Thu, 20 Apr 2017 20:12:18 +0000 (22:12 +0200)]
Do not set C++ locale.
Ardour translations and GUI string formatting only depends on the C locale.
Modifying the C++ locale may produce erratic results on various systems
(in particular OSX and macOS) and cause incompatibilies with plugins.
Robin Gareus [Thu, 20 Apr 2017 17:41:06 +0000 (19:41 +0200)]
Fix crash when clicking on the canvas while un/loading a session.
GTK events are still handled while un/loading a session (e.g display
"Loading" message or showing the splash triggers an event-loop run).
Global canvas elements (e.g. Rulers) may respond to session-specific
actions.
Robin Gareus [Thu, 20 Apr 2017 17:03:52 +0000 (19:03 +0200)]
Keep Dialogs which report process around.
Since
5.8-245-g3e43585fa, a response hides the dialog Window
in ArdourDialog::on_response (to prevent dialogs windows staying
around unresponsively while Ardour does background work).
This logic does not apply to Dialog Windows which implement
ProgressReporter or support dialog responses other than OK, Close.
Robin Gareus [Thu, 20 Apr 2017 15:19:03 +0000 (17:19 +0200)]
NO-OP: re-order code, add comments
Robin Gareus [Thu, 20 Apr 2017 14:06:47 +0000 (16:06 +0200)]
FP8: some code comments and cleanup
John Emmas [Wed, 19 Apr 2017 16:23:52 +0000 (17:23 +0100)]
Changes needed for building Tim's new 'string_convert' stuff with MSVC (gtk2_ardour)
John Emmas [Wed, 19 Apr 2017 16:22:44 +0000 (17:22 +0100)]
Changes needed for building Tim's new 'string_convert' stuff with MSVC (libardour)
John Emmas [Wed, 19 Apr 2017 16:21:12 +0000 (17:21 +0100)]
Changes needed for building Tim's new 'string_convert' stuff with MSVC (libpbd)
Robin Gareus [Wed, 19 Apr 2017 14:38:41 +0000 (16:38 +0200)]
Don't explicitly store Auditioner -> Monitor connections.
The monitor section connection is implicit and done by default.
This fixes an issue with the auditioner connections being lost when
switching between sessions that use/don't use the monitor-section.
Previously:
1) load session with monitor section, save session
-> global config explicitly saved
"auditioner-output-left" -> "ardour:Monitor/audio_in 1"
2) Load a session w/o monitor-section. The config is parsed,
"ardour:Monitor/audio_in" port does not exist, connection was lost.
Robin Gareus [Wed, 19 Apr 2017 10:51:11 +0000 (12:51 +0200)]
Prefer boolean over literal
Robin Gareus [Wed, 19 Apr 2017 09:43:08 +0000 (11:43 +0200)]
Remove cruft. ChanCount::INFINITE is not used
Tim Mayberry [Wed, 19 Apr 2017 08:04:10 +0000 (18:04 +1000)]
Change header include order to try and avoid INFINITE define on windows
This doesn't seem to be an issue with a newer version of the Mingw-w64 headers
that I use (5.0.2rc2).
Tim Mayberry [Tue, 4 Apr 2017 07:54:52 +0000 (17:54 +1000)]
Use PBD::string_to_uint32 in Playlist class instead of boost::lexical_cast
Tim Mayberry [Tue, 4 Apr 2017 07:50:54 +0000 (17:50 +1000)]
Use fixed size type for Playlist sort id as it is serialized
Tim Mayberry [Tue, 4 Apr 2017 07:42:22 +0000 (17:42 +1000)]
Use PBD::to_string in AutomationTimeAxis instead of boost::lexical_cast and string_compose
Tim Mayberry [Sat, 15 Apr 2017 12:02:40 +0000 (22:02 +1000)]
Add additional PBD::string_to/to_string specializations for PBD::ID
Tim Mayberry [Tue, 27 Sep 2016 09:57:26 +0000 (19:57 +1000)]
Use PBD::to_string to set state-dir property in LV2Plugin
To prevent issues with numeric grouping with formatting used by string_compose
template/stringstream when global C++ locale != "C"
Tim Mayberry [Tue, 27 Sep 2016 06:33:05 +0000 (16:33 +1000)]
Use PBD::to_string() in LV2Plugin instead of string_compose for state_dir
To prevent issues with numeric grouping with formatting used by string_compose
template/stringstream when global C++ locale != "C"
Tim Mayberry [Tue, 27 Sep 2016 06:59:52 +0000 (16:59 +1000)]
Use std::string::operator+ instead of string_compose in VSTPlugin
Tim Mayberry [Tue, 27 Sep 2016 06:03:54 +0000 (16:03 +1000)]
Use std::string::operator+() instead of string_compose template in Route class
Using string_compose in this instance doesn't seem necessary, is worse in terms
of readability and is no doubt slower.
Tim Mayberry [Wed, 21 Sep 2016 06:23:34 +0000 (16:23 +1000)]
Remove PBD::to_string() function from pbd/convert.h
All uses of this function have now been replaced by PBD::to_string() from
pbd/string_convert.h
Remove this function so that it isn't mistakenly used to perform numeric to
string conversion when the result is being used for serialization as that only
works if the global C++ locale is set with LC_NUMERIC=C, which is the case
currently but may not be in the future.
Tim Mayberry [Wed, 21 Sep 2016 05:43:56 +0000 (15:43 +1000)]
Use PBD::to_string() from pbd/string_convert.h in VCATimeAxisView
Tim Mayberry [Wed, 21 Sep 2016 05:38:42 +0000 (15:38 +1000)]
Use PBD::to_string from pbd/string_convert.h in VCAMasterStrip class
Tim Mayberry [Wed, 7 Dec 2016 05:48:23 +0000 (15:48 +1000)]
Use PBD::to_string from pbd/string_convert.h in SoundFileBox class
Numeric formatting is equivalent.
Tim Mayberry [Wed, 21 Sep 2016 05:25:30 +0000 (15:25 +1000)]
Use PBD::to_string from pbd/string_convert.h in RouteTimeAxis
Numeric formatting is equivalent as LC_NUMERIC=C in global C++ locale
Tim Mayberry [Wed, 21 Sep 2016 05:20:22 +0000 (15:20 +1000)]
Use PBD::to_string from pbd/string_convert.h in MixerStrip class
The numeric formatting is equivalent. Even though this string is being used in
the UI as a label I think this is another case where we don't want a localized
numeric string, which would only be relevant with a track count >=1000.
Tim Mayberry [Wed, 21 Sep 2016 04:50:01 +0000 (14:50 +1000)]
Use PBD::to_string from pbd/string_convert.h in MeterStrip class
The numeric formatting is equivalent. The string is being used in a label so it
could be argued that we want localized numeric formatting in this case, but as
it is only relevant if we have >=1000 meter strip keep it the same for now.
Tim Mayberry [Wed, 21 Sep 2016 04:42:13 +0000 (14:42 +1000)]
Use PBD::to_string from pbd/string_convert.h in ExportTimespanSelector
The C++ global locale is currently set to LC_NUMERIC=C by the first instance of
LocaleGuard so this change means numeric formatting is equivalent.
As the string is being used to construct a label, perhaps we do want to
generate localized numeric formatting in this case. Anyway keep it the same for
now.
Tim Mayberry [Wed, 21 Sep 2016 02:58:56 +0000 (12:58 +1000)]
Use PBD::to_string() from pbd/string_convert.h in ControlSlaveUI
The numeric formatting is equivalent.
Tim Mayberry [Wed, 21 Sep 2016 02:52:36 +0000 (12:52 +1000)]
Use PBD::to_string from pbd/string_convert.h in WaveView debug code
Tim Mayberry [Wed, 21 Sep 2016 02:41:42 +0000 (12:41 +1000)]
Use PBD::to_string from pbd/string_convert.h in ARDOUR::VCAManager
The numeric formatting is equivalent to iostreams when global C++ locale is set
to "C" without the need for a LocaleGuard.
I'm not sure this would have been an issue as the number of VCA's may never get
high enough for digit grouping of the locale to affect numeric output, but now
it is not a possibility.
Tim Mayberry [Wed, 21 Sep 2016 02:17:19 +0000 (12:17 +1000)]
Use PBD::string_to/to_string in ARDOUR::user_config_directory_name()
The numeric formatting is equivalent without requiring a LocaleGuard or the
global C++ locale is "C".
Tim Mayberry [Wed, 21 Sep 2016 01:38:22 +0000 (11:38 +1000)]
Use PBD::to_string from pbd/string_convert.h in ARDOUR::ExportFilename
The numeric formatting is equivalent to using iostreams in the C locale without
having to use a LocaleGuard or set global C++ locale.
Tim Mayberry [Wed, 21 Sep 2016 01:30:31 +0000 (11:30 +1000)]
Use XMLNode::get_property in ARDOUR::ElementImporter
Tim Mayberry [Wed, 21 Sep 2016 01:25:51 +0000 (11:25 +1000)]
Use PBD::to_string/string_to in ARDOUR::ElementImporter class