ardour.git
6 years agoCoalesce visual changes to canvas/items and allow canvas to render
Tim Mayberry [Sat, 1 Apr 2017 11:33:59 +0000 (21:33 +1000)]
Coalesce visual changes to canvas/items and allow canvas to render

First visual change will be processed as normal and then blocked until the
canvas renders the change. If further visual changes need processing then
Editor::pre_render callback will schedule another expose/redraw/render.

This prevents an issue where idle_visual_changer is called many times in
response to events(keys/motion/etc) but the canvas does not get a chance to
render any but the last one which results in a big pause/jump.

This results in a more responsive canvas and in particular a smoother and more
predictable zooming experience.

6 years agoAdd PreRender signal to the canvas
Tim Mayberry [Mon, 13 Mar 2017 10:45:13 +0000 (20:45 +1000)]
Add PreRender signal to the canvas

Emitted by the canvas immediately before rendering.

6 years agoWhitespace fixes in canvas.h
Tim Mayberry [Mon, 13 Mar 2017 03:31:26 +0000 (13:31 +1000)]
Whitespace fixes in canvas.h

6 years agoTweak/Change the zoom scale in RulerZoomDrag
Tim Mayberry [Mon, 13 Mar 2017 12:00:32 +0000 (22:00 +1000)]
Tweak/Change the zoom scale in RulerZoomDrag

This multiplier really should be based on the "responsiveness" of the
canvas..or something. I think this is an improvement for more complex sessions
with many regions.

6 years agoOutput the setting of the --no-threaded-waveviews option during configure
Tim Mayberry [Mon, 13 Mar 2017 09:31:37 +0000 (19:31 +1000)]
Output the setting of the --no-threaded-waveviews option during configure

6 years agoAllow saving state w/o backend
Robin Gareus [Sun, 25 Jun 2017 20:03:42 +0000 (22:03 +0200)]
Allow saving state w/o backend

Connections are remembered by ARDOUR::Port to re-establish at load.

6 years agoReport Dummy as not available if not running
Robin Gareus [Sun, 25 Jun 2017 18:53:47 +0000 (20:53 +0200)]
Report Dummy as not available if not running

This fixes an issue with port-connections being polled from the backend
even when it's not running.

6 years agoCreate a deep-copy of MIDI sources when saving snapshots
Robin Gareus [Sat, 24 Jun 2017 23:56:53 +0000 (01:56 +0200)]
Create a deep-copy of MIDI sources when saving snapshots

6 years agoExtend API to allow calling new_midi_source_path() with source_lock held
Robin Gareus [Sat, 24 Jun 2017 23:23:03 +0000 (01:23 +0200)]
Extend API to allow calling new_midi_source_path() with source_lock held

This is in preparation for cloning MIDI-sources during snapshot save.

6 years agoOSC: simplify GUI and make less error-prone
Len Ovens [Sat, 24 Jun 2017 20:13:53 +0000 (13:13 -0700)]
OSC: simplify GUI and make less error-prone

6 years agoOSC: Allow /bank_up to accept -1 as well as 1 so encoder can work.
Len Ovens [Sat, 24 Jun 2017 01:08:04 +0000 (18:08 -0700)]
OSC: Allow /bank_up to accept -1 as well as 1 so encoder can work.

6 years agoOSC: make sed_fader work with banking too.
Len Ovens [Sat, 24 Jun 2017 00:34:22 +0000 (17:34 -0700)]
OSC: make sed_fader work with banking too.

6 years agoOSC: Add master_send_enable for MB
Len Ovens [Sat, 24 Jun 2017 00:07:11 +0000 (17:07 -0700)]
OSC: Add master_send_enable for MB

6 years agoOSC: redo math for redux control with fewer calls.
Len Ovens [Fri, 23 Jun 2017 22:30:01 +0000 (15:30 -0700)]
OSC: redo math for redux control with fewer calls.

6 years agoOSC: Messages too fast at bank_change/refresh slowed down.
Len Ovens [Fri, 23 Jun 2017 22:03:37 +0000 (15:03 -0700)]
OSC: Messages too fast at bank_change/refresh slowed down.

6 years agoAdd missing `echo` in ardev_common.sh.in
nickolas360 [Fri, 23 Jun 2017 21:26:33 +0000 (14:26 -0700)]
Add missing `echo` in ardev_common.sh.in

6 years agoFix metronome + capture alignment for Mixbus
Robin Gareus [Fri, 23 Jun 2017 23:22:17 +0000 (01:22 +0200)]
Fix metronome + capture alignment for Mixbus

6 years agoNO-OP: whitespace
Robin Gareus [Fri, 23 Jun 2017 21:42:42 +0000 (23:42 +0200)]
NO-OP: whitespace

6 years agoMixbus GUI updates (VCA layout, no panners)
Robin Gareus [Fri, 23 Jun 2017 21:40:19 +0000 (23:40 +0200)]
Mixbus GUI updates (VCA layout, no panners)

6 years agoOSC: Fix math error in send fader feedback
Len Ovens [Fri, 23 Jun 2017 20:12:43 +0000 (13:12 -0700)]
OSC: Fix math error in send fader feedback

6 years agoamend 5e5f7a55; re-add wrongly removed variable
Robin Gareus [Fri, 23 Jun 2017 16:15:50 +0000 (18:15 +0200)]
amend 5e5f7a55; re-add wrongly removed variable

6 years agoleave a hint for clang's static analyzer
Robin Gareus [Fri, 23 Jun 2017 15:39:09 +0000 (17:39 +0200)]
leave a hint for clang's static analyzer

6 years agoRemove Automation Types that should never have existed.
Robin Gareus [Fri, 23 Jun 2017 15:37:19 +0000 (17:37 +0200)]
Remove Automation Types that should never have existed.

6 years agoMCU: Remove use of AutomationType as ID, part two.
Robin Gareus [Fri, 23 Jun 2017 13:58:50 +0000 (15:58 +0200)]
MCU: Remove use of AutomationType as ID, part two.

This may need some small tweaks for MB channelstrip to set
print-format (like LV2 plugins would) for cases where the default
value_as_string() differs.

6 years agoMCU: Remove use of AutomationType as ID, part one.
Robin Gareus [Fri, 23 Jun 2017 13:55:42 +0000 (15:55 +0200)]
MCU: Remove use of AutomationType as ID, part one.

6 years agoImplement undo for merging VCA-master automation/value on disconnect.
Robin Gareus [Fri, 23 Jun 2017 13:51:46 +0000 (15:51 +0200)]
Implement undo for merging VCA-master automation/value on disconnect.

6 years agoImprove default parameter display
Robin Gareus [Fri, 23 Jun 2017 13:51:17 +0000 (15:51 +0200)]
Improve default parameter display

6 years agoOSC: only show visible plugins (not MB channel strip PI)
Len Ovens [Fri, 23 Jun 2017 05:37:38 +0000 (22:37 -0700)]
OSC: only show visible plugins (not MB channel strip PI)

6 years agoRemove unnecessary LocaleGuard header include
Tim Mayberry [Thu, 22 Jun 2017 23:10:08 +0000 (09:10 +1000)]
Remove unnecessary LocaleGuard header include

6 years agoUpdate GUI to follow Slavable API change
Robin Gareus [Thu, 22 Jun 2017 19:06:24 +0000 (21:06 +0200)]
Update GUI to follow Slavable API change

6 years agoUpdate Slavable API
Robin Gareus [Thu, 22 Jun 2017 19:06:12 +0000 (21:06 +0200)]
Update Slavable API

Do not use AutomationType to identify parameters, use complete
Evoral::Parameter and Automatable.

For "batch connections", a Slavables needs to implement an API to return
the relevant controls.

This is only a first step towards a more generic Master/Slave framework.

6 years agoNO-OP: whitespace
Robin Gareus [Thu, 22 Jun 2017 16:08:38 +0000 (18:08 +0200)]
NO-OP: whitespace

6 years agoOSC: Add increment fader.
Len Ovens [Thu, 22 Jun 2017 19:54:03 +0000 (12:54 -0700)]
OSC: Add increment fader.

6 years agoOSC: allow mixbuses to show
Len Ovens [Thu, 22 Jun 2017 17:20:02 +0000 (10:20 -0700)]
OSC: allow mixbuses to show

6 years agoAccommodate newly introduced source(s) in our MSVC project (libpbd)
John Emmas [Thu, 22 Jun 2017 16:25:44 +0000 (17:25 +0100)]
Accommodate newly introduced source(s) in our MSVC project (libpbd)

6 years agoOSC: use internal_to_interface or reverse
Len Ovens [Thu, 22 Jun 2017 16:21:15 +0000 (09:21 -0700)]
OSC: use internal_to_interface or reverse

6 years agoRemove LocaleGuard from Plugin::get_state
Tim Mayberry [Wed, 21 Jun 2017 11:27:45 +0000 (21:27 +1000)]
Remove LocaleGuard from Plugin::get_state

Let the plugin implementation of Plugin::add_state use a LocaleGuard if it is
necessary (VST/LV2). This puts the LocaleGuards where they are required but the
LocaleGuards in Session::set/get_state will mean these LocaleGuards are a noop.
They are still useful for documentation purposes and in case the code is called
from a non-Session context at some point.

6 years agoRemove LocaleGuards from LadspaPlugin::set/add_state
Tim Mayberry [Wed, 21 Jun 2017 11:23:56 +0000 (21:23 +1000)]
Remove LocaleGuards from LadspaPlugin::set/add_state

String <-> type conversion is being performed by the pbd/string_convert.h API
via PBD::XMLNode so LocaleGuards are not necessary.

6 years agoRemove unnecessary LocaleGuards from VSTPlugin derived classes
Tim Mayberry [Wed, 7 Dec 2016 07:02:18 +0000 (17:02 +1000)]
Remove unnecessary LocaleGuards from VSTPlugin derived classes

VSTPlugin::set_state and VSTPlugin::add_state methods both already contain
LocaleGuard instances.

6 years agoRemove unused ArdourCanvas::HSV constructor
Tim Mayberry [Tue, 6 Sep 2016 09:57:36 +0000 (19:57 +1000)]
Remove unused ArdourCanvas::HSV constructor

Using stringstream for this is not locale independant. If this constructor is
needed at a later stage it should be reimplemented.

6 years agoRemove locale_guard.h from ardour/ardour.h header
Tim Mayberry [Mon, 5 Sep 2016 00:22:39 +0000 (10:22 +1000)]
Remove locale_guard.h from ardour/ardour.h header

Add to source files that use LocaleGuard

Results in far less recompiling when pbd/locale_guard.h changes

6 years agoRemove unused pbd/locale_guard.h header from Gtkmm2ext::Barcontroller class
Tim Mayberry [Sun, 4 Sep 2016 23:40:45 +0000 (09:40 +1000)]
Remove unused pbd/locale_guard.h header from Gtkmm2ext::Barcontroller class

6 years agoRemove LocaleGuard from ARDOUR_UI::save_ardour_state method
Tim Mayberry [Sun, 4 Sep 2016 23:35:03 +0000 (09:35 +1000)]
Remove LocaleGuard from ARDOUR_UI::save_ardour_state method

All float <=> string conversions are now done using PBD::to_string/string_to()
in ConfigVariable class or via XMLNode::get/set_property()

6 years agoRemove LocaleGuards from VideoTimeLine class
Tim Mayberry [Sun, 4 Sep 2016 23:32:45 +0000 (09:32 +1000)]
Remove LocaleGuards from VideoTimeLine class

float <=> string conversion is done using PBD::string_to/to_string() via
XMLNode::get/set_property so the LocaleGuards are no longer necessary

6 years agoRemove LocaleGuard from VideoUtils::video_query_info
Tim Mayberry [Sun, 4 Sep 2016 23:30:20 +0000 (09:30 +1000)]
Remove LocaleGuard from VideoUtils::video_query_info

PBD::string_to is now used for float <=> string conversions so a LocaleGuard is
no longer necessary.

6 years agoRemove LocaleGuards from UIConfiguration class
Tim Mayberry [Sun, 4 Sep 2016 23:21:22 +0000 (09:21 +1000)]
Remove LocaleGuards from UIConfiguration class

all float <=> string conversions are done via PBD::to_string/string_to. Either
via XMLNode::get/set_property or directly in HSV and SVAModifier classes

6 years agoRemove LocaleGuard from MixerUI class
Tim Mayberry [Sun, 4 Sep 2016 23:06:17 +0000 (09:06 +1000)]
Remove LocaleGuard from MixerUI class

The float <=> string conversions that this guard was protecting are now using
PBD::to_string/string_to() via XMLNode::get/set_property()

6 years agoRemove LocaleGuards from LuaInstance state methods
Tim Mayberry [Sun, 4 Sep 2016 23:03:40 +0000 (09:03 +1000)]
Remove LocaleGuards from LuaInstance state methods

There are no float <=> string conversions in these methods and g_base64_encode
etc functions are not affected by locale.

6 years agoRemove LocaleGuards from ExportVideoDialog class
Tim Mayberry [Sun, 4 Sep 2016 22:59:36 +0000 (08:59 +1000)]
Remove LocaleGuards from ExportVideoDialog class

All float <=> string conversion is now done using PBD::to_string/string_to()
via XMLNode::get/set_property()

6 years agoRemove LocaleGuards from Editor class
Tim Mayberry [Sun, 4 Sep 2016 22:02:36 +0000 (08:02 +1000)]
Remove LocaleGuards from Editor class

All float <=> string conversions are now done using locale independent
PBD::to_string/string_to() via XMLNode::get/set_property

6 years agoRemove LocaleGuards from SVAModifier and HSV classes
Tim Mayberry [Sun, 4 Sep 2016 12:52:58 +0000 (22:52 +1000)]
Remove LocaleGuards from SVAModifier and HSV classes

float <=> string conversion now done using PBD::to_string/string_to so
LocaleGuards are no longer needed.

6 years agoRemove LocaleGuard from ARDOUR::PannerShell
Tim Mayberry [Sun, 4 Sep 2016 12:49:07 +0000 (22:49 +1000)]
Remove LocaleGuard from ARDOUR::PannerShell

All Panner implementations using PBD::to_string/string_to for float <=> string
conversion and no longer require a LocaleGuard.

6 years agoRemove LocaleGuard from ARDOUR::Pannable class
Tim Mayberry [Sun, 4 Sep 2016 12:47:32 +0000 (22:47 +1000)]
Remove LocaleGuard from ARDOUR::Pannable class

string <=> float conversions are using PBD::to_string/string_to and no longer
require a LocaleGuard

6 years agoRemove LocaleGuards from ARDOUR::Tempo class
Tim Mayberry [Sun, 4 Sep 2016 12:44:27 +0000 (22:44 +1000)]
Remove LocaleGuards from ARDOUR::Tempo class

All float <=> string conversions are done for PBD::string_to/to_string and no
longer require a LocaleGuard.

6 years agoRemove LocaleGuards from ARDOUR::Speakers class
Tim Mayberry [Sun, 4 Sep 2016 12:40:47 +0000 (22:40 +1000)]
Remove LocaleGuards from ARDOUR::Speakers class

float <=> string conversions are now using PBD::to_string/string_to via XMLNode
for locale independent conversion and these guards are not necessary.

6 years agoRemove LocaleGuards from ARDOUR::Session transport related methods
Tim Mayberry [Sun, 4 Sep 2016 12:38:41 +0000 (22:38 +1000)]
Remove LocaleGuards from ARDOUR::Session transport related methods

ARDOUR::AutomationList is no longer using LocaleGuards as float <=> string
conversion is using PBD::to_string/string_to so the reason for adding these
guards as per comment no longer applies.

6 years agoRemove LocaleGuard from Session::load_options
Tim Mayberry [Fri, 16 Jun 2017 00:56:15 +0000 (10:56 +1000)]
Remove LocaleGuard from Session::load_options

PBD::ConfigVariable uses PBD::to_string/string_to methods so this LocaleGuard
is no longer necessary.

6 years agoRemove LocaleGuards from SessionConfiguration class
Tim Mayberry [Sun, 4 Sep 2016 12:27:37 +0000 (22:27 +1000)]
Remove LocaleGuards from SessionConfiguration class

ConfigurationVariable is now using PBD::to_string/string_to for float <=>
string conversions so LocaleGuard is no longer necessary.

6 years agoRemove LocaleGuard from Session::immediately_post_engine method
Tim Mayberry [Sun, 4 Sep 2016 12:22:09 +0000 (22:22 +1000)]
Remove LocaleGuard from Session::immediately_post_engine method

I think this was only to protect the float <=> string conversion in
Session::setup_click_state related to click gain which is now using
PBD::to_string/string_to and so no longer necessary.

6 years agoRemove LocaleGuard from ARDOUR::Route class
Tim Mayberry [Sun, 4 Sep 2016 12:13:14 +0000 (22:13 +1000)]
Remove LocaleGuard from ARDOUR::Route class

Route and all members are now using locale independent string <=> float
conversions.

6 years agoRemove LocaleGuard from ARDOUR::MonitorProcessor state method
Tim Mayberry [Sun, 4 Sep 2016 12:08:47 +0000 (22:08 +1000)]
Remove LocaleGuard from ARDOUR::MonitorProcessor state method

All float <=> string conversions are done using PBD::to_string/string_to via
XMLNode and LocaleGuard is not necessary.

6 years agoRemove LocaleGuard from ARDOUR::RCConfiguration class
Tim Mayberry [Sun, 4 Sep 2016 12:04:00 +0000 (22:04 +1000)]
Remove LocaleGuard from ARDOUR::RCConfiguration class

This presumes that all ControlProtocol implementations either use
PBD::to_string/string_to for float <=> string conversions, which is now the
case.

6 years agoRemove LocaleGuards from LuaProc class
Tim Mayberry [Sun, 4 Sep 2016 11:56:02 +0000 (21:56 +1000)]
Remove LocaleGuards from LuaProc class

All float <=> string conversions are done using PBD::to_string/string_to via
XMLNode so no LocaleGuard is necessary.

6 years agoRemove LocaleGuard from ARDOUR::MidiTrack class
Tim Mayberry [Sun, 4 Sep 2016 11:36:14 +0000 (21:36 +1000)]
Remove LocaleGuard from ARDOUR::MidiTrack class

There are no float <=> string conversions and they are all now performed using
PBD::to_string/string_to via XMLNode

6 years agoRemove LocaleGuard from ARDOUR::MidiDiskstream class
Tim Mayberry [Sun, 4 Sep 2016 11:29:41 +0000 (21:29 +1000)]
Remove LocaleGuard from ARDOUR::MidiDiskstream class

There are no float <=> string conversions in MidiDiskstream state methods,
these guards must have been to protect conversions in Diskstream state methods
which are now using PBD::to_string/string_to via XMLNode so no longer need
guarding.

6 years agoRemove LocaleGuards from ARDOUR::ExportFormatSpecification state methods
Tim Mayberry [Sun, 4 Sep 2016 11:26:11 +0000 (21:26 +1000)]
Remove LocaleGuards from ARDOUR::ExportFormatSpecification state methods

All float <=> string conversions are performed by PBD::to_string/string_to via
XMLNode.

6 years agoRemove LocaleGuard from ARDOUR::Diskstream state method
Tim Mayberry [Sun, 4 Sep 2016 11:18:47 +0000 (21:18 +1000)]
Remove LocaleGuard from ARDOUR::Diskstream state method

The float conversion in Diskstream::get_state is now done using
PBD::to_string/string_to via XMLNode::set_property API.

There was no explicit LocaleGuard protecting the string -> float conversion to
remove so it was probably protected by the caller.

6 years agoRemove LocaleGuard from ARDOUR::AutomationList class
Tim Mayberry [Sun, 4 Sep 2016 11:16:49 +0000 (21:16 +1000)]
Remove LocaleGuard from ARDOUR::AutomationList class

All float conversions are using PBD::to_string/string_to via
XMLNode::get/set_property API

6 years agoRemove LocaleGuard from ARDOUR::Region class
Tim Mayberry [Sun, 4 Sep 2016 11:11:14 +0000 (21:11 +1000)]
Remove LocaleGuard from ARDOUR::Region class

Property conversions <=> string use PBD::to_string/string_to so float
conversions don't need to be protected by a LocaleGuard

6 years agoRemove LocaleGuard from ARDOUR::AudioRegion state methods
Tim Mayberry [Sun, 4 Sep 2016 11:08:18 +0000 (21:08 +1000)]
Remove LocaleGuard from ARDOUR::AudioRegion state methods

float <=> string conversions are performed using PBD::to_string/string_to via
XMLNode

6 years agoRemove LocaleGuard from ARDOUR::AudioTrack class
Tim Mayberry [Sun, 4 Sep 2016 11:03:51 +0000 (21:03 +1000)]
Remove LocaleGuard from ARDOUR::AudioTrack class

The gain property float <=> string conversion is now performed using
PBD::to_string/string_to via XMLNode

6 years agoRemove LocaleGuard from AudioFileSource::get_state
Tim Mayberry [Sun, 1 Jan 2017 11:34:35 +0000 (21:34 +1000)]
Remove LocaleGuard from AudioFileSource::get_state

Not necessary when using XMLNode::set_property API

6 years agoRemove LocaleGuard from ARDOUR::AudioDiskstream state methods
Tim Mayberry [Sun, 4 Sep 2016 11:00:14 +0000 (21:00 +1000)]
Remove LocaleGuard from ARDOUR::AudioDiskstream state methods

There are no float <=> string conversions and they are all now performed using
PBD::to_string/string_to via XMLNode

6 years agoRemove LocaleGuard from ARDOUR::IO class state methods
Tim Mayberry [Sun, 4 Sep 2016 10:51:06 +0000 (20:51 +1000)]
Remove LocaleGuard from ARDOUR::IO class state methods

There are no float <=> string conversions that require a LocaleGuard and all
conversions are performed using PBD::to_string/string_to via XMLNode

6 years agoRemove LocaleGuard from PBD::Controllable state methods
Tim Mayberry [Sun, 4 Sep 2016 10:38:30 +0000 (20:38 +1000)]
Remove LocaleGuard from PBD::Controllable state methods

These are no longer necessary as float <=> string conversion is handled by
locale independent PBD::to_string/string_to via XMLNode::get/set_property

6 years agoOSC: Accept mixed parameter types for touch
Len Ovens [Wed, 21 Jun 2017 22:17:43 +0000 (15:17 -0700)]
OSC: Accept mixed parameter types for touch

6 years agocompilation requires <stdint.h>
Paul Davis [Wed, 21 Jun 2017 18:19:21 +0000 (14:19 -0400)]
compilation requires <stdint.h>

6 years agoSome ToDo notes about AutomationTypes
Robin Gareus [Mon, 19 Jun 2017 14:45:57 +0000 (16:45 +0200)]
Some ToDo notes about AutomationTypes

6 years agoRemove internal_to_user/user_to_internal API
Robin Gareus [Wed, 21 Jun 2017 15:08:59 +0000 (17:08 +0200)]
Remove internal_to_user/user_to_internal API

Also GainControl can just use the AutomationControl's implementation of
get_user_string()

6 years agoPrepare removal of redundant get_user/set_user API.
Robin Gareus [Wed, 21 Jun 2017 15:05:03 +0000 (17:05 +0200)]
Prepare removal of redundant get_user/set_user API.

6 years agoTemporary session-format compatibility (revert before release)
Robin Gareus [Wed, 21 Jun 2017 11:55:49 +0000 (13:55 +0200)]
Temporary session-format compatibility (revert before release)

Saving the new ControlList interpolation methods (enum) breaks loading
the session in older version. The session-format version will
need to be increased.

Until then:
 * Fader automation + region gain envelope uses linear fades
 * The automation-line visible in the GUI does not match the actual fade
   (the y-axis is log/exp-scale, the fade is linear)
 * Adding new points on the line is not using the correct initial value
 * Custom changes of interpolation mode are not available

Neither of these issues is a regression.

6 years agoFix VST default value. query once at instantiation time.
Robin Gareus [Wed, 21 Jun 2017 12:39:56 +0000 (14:39 +0200)]
Fix VST default value. query once at instantiation time.

6 years agoConsolidate ParameterDescriptor settings+ranges
Robin Gareus [Wed, 21 Jun 2017 12:41:40 +0000 (14:41 +0200)]
Consolidate ParameterDescriptor settings+ranges

6 years agoAdd interpolation-mode menu to ATAV.
Robin Gareus [Tue, 20 Jun 2017 12:48:38 +0000 (14:48 +0200)]
Add interpolation-mode menu to ATAV.

6 years agoLog-scale/relative automation point dragging
Robin Gareus [Wed, 21 Jun 2017 11:03:00 +0000 (13:03 +0200)]
Log-scale/relative automation point dragging

6 years agoupdate GUI to use new APIs
Robin Gareus [Mon, 19 Jun 2017 14:51:17 +0000 (16:51 +0200)]
update GUI to use new APIs

6 years agoSet default interpolation type (for new lanes)
Robin Gareus [Mon, 19 Jun 2017 14:47:02 +0000 (16:47 +0200)]
Set default interpolation type (for new lanes)

6 years agoAdd API to compute parameter delta, depending on AutomationType
Robin Gareus [Tue, 20 Jun 2017 21:41:05 +0000 (23:41 +0200)]
Add API to compute parameter delta, depending on AutomationType

6 years agoCentralize Parameter scaling
Robin Gareus [Mon, 19 Jun 2017 14:34:29 +0000 (16:34 +0200)]
Centralize Parameter scaling

This exposes an AutomationType dependent abstract version of
inteface_to_internal(), internal_to_interface().

6 years agoRemove duplicates from ControlList
Robin Gareus [Wed, 21 Jun 2017 10:07:12 +0000 (12:07 +0200)]
Remove duplicates from ControlList

6 years agoClamp values in ControlList
Robin Gareus [Wed, 21 Jun 2017 10:08:12 +0000 (12:08 +0200)]
Clamp values in ControlList

6 years agoImplement additional ControlList interpolation methods.
Robin Gareus [Mon, 19 Jun 2017 13:45:47 +0000 (15:45 +0200)]
Implement additional ControlList interpolation methods.

The Control and ControlList uses the raw value (eg. coefficient for gain,
Hz for frequencies) and those Lists are stored in existing sessions.

In the vast majority of cases interpolating automation values using exp/log
scale for dB, freq makes more sense -- it's also what the fader does.

Adding additional interpolation methods is future proof (we might at allow
to even add different methods per automation point (to the next) like other
DAWs do.

Currently it's mainly used in preparation for consistent GUI automation-
lanes. Between 2 points there's always a visual straight line.

6 years agoRemove separate ControlList min/max/default, use ParameterDescriptor.
Robin Gareus [Wed, 21 Jun 2017 11:40:41 +0000 (13:40 +0200)]
Remove separate ControlList min/max/default, use ParameterDescriptor.

6 years agoremove min/max unbound -- LADSPA special case.
Robin Gareus [Mon, 19 Jun 2017 10:40:51 +0000 (12:40 +0200)]
remove min/max unbound -- LADSPA special case.

This explicit case should never have existed in the first place.

Plugins can always implicitly exceed the range and are expected to
cope with out-of-range values (e.g. meters when fed with a peaking signal
may return an out-of-bounds value)

6 years agoGUI: prepare for API changes
Robin Gareus [Mon, 19 Jun 2017 10:33:43 +0000 (12:33 +0200)]
GUI: prepare for API changes

remove use of
- unbound_min/max
- list->default_value and min/max_y

6 years agoMove logarithmic property into Evoral, add rangesteps
Robin Gareus [Mon, 19 Jun 2017 07:52:11 +0000 (09:52 +0200)]
Move logarithmic property into Evoral, add rangesteps

This allows complete mathematical description of a given parameter
and parameter values.

Semantic type abstraction is reserved for Ardour::ParameterDescriptor.

6 years agoRemove old API
Robin Gareus [Sun, 18 Jun 2017 22:58:10 +0000 (00:58 +0200)]
Remove old API

6 years agoFix/update maximum gain computation
Robin Gareus [Mon, 19 Jun 2017 15:00:57 +0000 (17:00 +0200)]
Fix/update maximum gain computation

6 years agoSwitch to PBD control-math and prefer Controllable API
Robin Gareus [Sun, 18 Jun 2017 22:57:53 +0000 (00:57 +0200)]
Switch to PBD control-math and prefer Controllable API

Note: Control-surfaces should always use interface_to_internal()
and internal_to_interface().

6 years agoCentralize control-parameter math functions in libpbd.
Robin Gareus [Sun, 18 Jun 2017 22:28:43 +0000 (00:28 +0200)]
Centralize control-parameter math functions in libpbd.

Functions formerly in ardour/util.h and some more functions.
The main motivation is libevoral which can use libpbd but not libardour.

The eventual goal is to consolidate various different interpolation,
scaling and deflection methods.