ardour.git
7 years agoAdd some convenient public editor methods (for lua-bindings)
Robin Gareus [Fri, 24 Feb 2017 12:03:24 +0000 (13:03 +0100)]
Add some convenient public editor methods (for lua-bindings)

and s/get// in the old API for consistency.

7 years agothe daily dose of const'ness
Robin Gareus [Fri, 24 Feb 2017 11:59:07 +0000 (12:59 +0100)]
the daily dose of const'ness

7 years agore-order inheritance
Robin Gareus [Fri, 24 Feb 2017 11:53:49 +0000 (12:53 +0100)]
re-order inheritance

LuaBridge only allows one parent class, others need explicit casts.
Allowing RoutUI to be passed as Selectable argument is handy.

7 years agoremove misleading/incorrect comment
Paul Davis [Fri, 24 Feb 2017 09:18:57 +0000 (10:18 +0100)]
remove misleading/incorrect comment

The previously-commented code is precisely what gets invoked
when solo state changes, and had nothing to do with actually
changing solo state in any way.

7 years agoOSC: remove invalid feedback for solo and pan az.
Len Ovens [Thu, 23 Feb 2017 23:45:28 +0000 (15:45 -0800)]
OSC: remove invalid feedback for solo and pan az.

7 years agofix solo + mute controls when slaved
Paul Davis [Thu, 23 Feb 2017 21:53:50 +0000 (22:53 +0100)]
fix solo + mute controls when slaved

clamp/scale by masters only applies to non-boolean controls

7 years agoAdd static Class-Keys for Windows build
Robin Gareus [Thu, 23 Feb 2017 21:31:50 +0000 (22:31 +0100)]
Add static Class-Keys for Windows build

7 years agoLua bindings to access editor selection + region selection bindings
Robin Gareus [Thu, 23 Feb 2017 21:31:03 +0000 (22:31 +0100)]
Lua bindings to access editor selection + region selection bindings

7 years agoLuaBridge: Dedicated type for pointer-lists and const version
Robin Gareus [Thu, 23 Feb 2017 21:21:08 +0000 (22:21 +0100)]
LuaBridge: Dedicated type for pointer-lists and const version

"class C*" cannot be defined nor resolved, so STL containers
to class instance pointers need to be special-cased.

7 years agoluaBridge support const references to class-instance pointers
Robin Gareus [Thu, 23 Feb 2017 21:19:19 +0000 (22:19 +0100)]
luaBridge support const references to class-instance pointers

Support passing "T*" as as "const T* &"  argument
e.g. std::list<T*>::push_back ( const T* & )

7 years agoConstrain VCA slave value to controllable range
Robin Gareus [Thu, 23 Feb 2017 17:33:10 +0000 (18:33 +0100)]
Constrain VCA slave value to controllable range

This prevents overshoot e.g. when writing automation (and related oddities)

7 years agoremove explicit line-break (rely on wrap)
Robin Gareus [Thu, 23 Feb 2017 16:40:33 +0000 (17:40 +0100)]
remove explicit line-break (rely on wrap)

7 years agoDo not bundle default system_config (prefer built-in defaults)
Robin Gareus [Thu, 23 Feb 2017 15:23:10 +0000 (16:23 +0100)]
Do not bundle default system_config (prefer built-in defaults)

Inside the bundle, those files are read-only, anyway.
This alleviates us from generating/updating the files with whenever
the built-in default changes and also makes architecture dependent
default-config (compile time #defines) work.

7 years agoClarify prefs
Robin Gareus [Thu, 23 Feb 2017 14:54:30 +0000 (15:54 +0100)]
Clarify prefs

7 years agoalso fix flying percussive hits while copy-dragging.
nick_m [Thu, 23 Feb 2017 14:11:56 +0000 (01:11 +1100)]
also fix flying percussive hits while copy-dragging.

7 years agohotfix for flying percussive hits while dragging.
nick_m [Thu, 23 Feb 2017 13:36:58 +0000 (00:36 +1100)]
hotfix for flying percussive hits while dragging.

- Hit::position still may not be set correctly,
  but this patch eliminates the error for now.

7 years agoUpdate lua-script to use new playlist-API
Robin Gareus [Thu, 23 Feb 2017 02:22:13 +0000 (03:22 +0100)]
Update lua-script to use new playlist-API

7 years agoMove Select-All-Tracks into the Selection category. Currently used only when printing...
Ben Loftis [Wed, 22 Feb 2017 16:29:37 +0000 (10:29 -0600)]
Move Select-All-Tracks into the Selection category. Currently used only when printing keybindings.  But we should also use this for categorizing the keybindings dialog IMHO.

7 years agofix deadlock when assigning a VCA master
Paul Davis [Wed, 22 Feb 2017 17:27:07 +0000 (18:27 +0100)]
fix deadlock when assigning a VCA master

7 years agoUpdate processor Lua bindings
Robin Gareus [Wed, 22 Feb 2017 14:24:33 +0000 (15:24 +0100)]
Update processor Lua bindings

7 years agoamend a2d54c3d9710 (w64 debug builds)
Robin Gareus [Wed, 22 Feb 2017 11:28:56 +0000 (12:28 +0100)]
amend a2d54c3d9710 (w64 debug builds)

7 years agoGUI support to re-locate missing external (abs-path) files
Robin Gareus [Wed, 22 Feb 2017 09:38:43 +0000 (10:38 +0100)]
GUI support to re-locate missing external (abs-path) files

7 years agoPrepare re-locating missing external files.
Robin Gareus [Wed, 22 Feb 2017 09:38:17 +0000 (10:38 +0100)]
Prepare re-locating missing external files.

7 years agoNO-OP: whitespace
Robin Gareus [Wed, 22 Feb 2017 09:26:58 +0000 (10:26 +0100)]
NO-OP: whitespace

7 years agoNO-OP; whitespace
Robin Gareus [Wed, 22 Feb 2017 09:25:58 +0000 (10:25 +0100)]
NO-OP; whitespace

7 years agoThe return of the w64 debug build
Robin Gareus [Wed, 22 Feb 2017 09:17:33 +0000 (10:17 +0100)]
The return of the w64 debug build

7 years agoremove cruft
Robin Gareus [Wed, 22 Feb 2017 09:13:26 +0000 (10:13 +0100)]
remove cruft

7 years agoif a slave's masters are at zero, lock slave to zero and not NaN
Paul Davis [Wed, 22 Feb 2017 08:35:49 +0000 (09:35 +0100)]
if a slave's masters are at zero, lock slave to zero and not NaN

7 years agofix crash when removing a TimeAxisView from the selection
Paul Davis [Tue, 21 Feb 2017 18:11:14 +0000 (19:11 +0100)]
fix crash when removing a TimeAxisView from the selection

7 years agofix thinko/typo which failed to notify when a VCA is unassigned
Paul Davis [Tue, 21 Feb 2017 17:50:32 +0000 (18:50 +0100)]
fix thinko/typo which failed to notify when a VCA is unassigned

7 years agoPBD::Signal<...>::connect() is already thread safe, so drop intermediate proxy/call_s...
Paul Davis [Tue, 21 Feb 2017 17:45:16 +0000 (18:45 +0100)]
PBD::Signal<...>::connect() is already thread safe, so drop intermediate proxy/call_slot() invocation in handling Controllable::Changed within AutomationController

7 years agoAdd Lua binding to query monotonic time (in microseconds)
Robin Gareus [Tue, 21 Feb 2017 15:13:25 +0000 (16:13 +0100)]
Add Lua binding to query monotonic time (in microseconds)

7 years agoupdate plugin-utils Lua example script
Robin Gareus [Tue, 21 Feb 2017 15:12:24 +0000 (16:12 +0100)]
update plugin-utils Lua example script

7 years agoAllow to access/load LuaDSP plugins with default plugin lua-bindings API
Robin Gareus [Tue, 21 Feb 2017 15:11:34 +0000 (16:11 +0100)]
Allow to access/load LuaDSP plugins with default plugin lua-bindings API

7 years agoRevert "ARDOUR_UI transport buttons should use ArdourButton::set_related_action()."
Paul Davis [Tue, 21 Feb 2017 14:44:12 +0000 (15:44 +0100)]
Revert "ARDOUR_UI transport buttons should use ArdourButton::set_related_action()."

This reverts commit 35f35ad662933e30242c825fb5317f181e9a232c.

This commit was a mistake: the controllables are needed to allow MIDI binding
to transport buttons.

7 years agoImplementations for Plugin-Preset-Load to set automation
Robin Gareus [Tue, 21 Feb 2017 14:24:02 +0000 (15:24 +0100)]
Implementations for Plugin-Preset-Load to set automation

7 years agoAdd API allowing plugin preset load to affect automation
Robin Gareus [Tue, 21 Feb 2017 14:02:29 +0000 (15:02 +0100)]
Add API allowing plugin preset load to affect automation

7 years agoredesign VCA control over gain (and theoretically other scalar controls)
Paul Davis [Tue, 21 Feb 2017 14:04:20 +0000 (15:04 +0100)]
redesign VCA control over gain (and theoretically other scalar controls)

master(s) value now just scales the control's own value; a trivial
bit of math at assign/deassign ensures that values do not change
during add/remove master operations

7 years agobetter solution of 3c25d26e9
Robin Gareus [Tue, 21 Feb 2017 11:25:57 +0000 (12:25 +0100)]
better solution of 3c25d26e9

7 years agoFix potential crash at exit/close.
Robin Gareus [Tue, 21 Feb 2017 00:35:18 +0000 (01:35 +0100)]
Fix potential crash at exit/close.

~DisplaySuspender's  PresentationInfo::unsuspend_change_signal
can try to update Stripable PresentationInfo for a session that's
no longer present.

7 years agoGroup-Tabs keyboard shortcuts
Robin Gareus [Mon, 20 Feb 2017 23:11:38 +0000 (00:11 +0100)]
Group-Tabs keyboard shortcuts

* The return of the ctrl+right-click (edit)
* and consistent shift+right click (remove)

7 years agofix typo in prev commit
Robin Gareus [Mon, 20 Feb 2017 23:07:47 +0000 (00:07 +0100)]
fix typo in prev commit

7 years agoMB: prefs are detached initially
Robin Gareus [Mon, 20 Feb 2017 21:55:46 +0000 (22:55 +0100)]
MB: prefs are detached initially

7 years agoAllow to pre-seed Tabbable detached state.
Robin Gareus [Mon, 20 Feb 2017 21:55:31 +0000 (22:55 +0100)]
Allow to pre-seed Tabbable detached state.

7 years agofix thinko in prev commit
Robin Gareus [Mon, 20 Feb 2017 20:52:13 +0000 (21:52 +0100)]
fix thinko in prev commit

7 years agoFix iterator off-by-one: Allow to move top-most track. via ctrl up/down
Robin Gareus [Mon, 20 Feb 2017 20:37:50 +0000 (21:37 +0100)]
Fix iterator off-by-one: Allow to move top-most track. via ctrl up/down

7 years agoFirst-time startup logic update.
Robin Gareus [Mon, 20 Feb 2017 19:47:57 +0000 (20:47 +0100)]
First-time startup logic update.

When *not* copying old config, Ardour should display the "first time"
dialog.

7 years agoConsistent VCA naming (Ardour/Mixbus)
Robin Gareus [Mon, 20 Feb 2017 15:50:42 +0000 (16:50 +0100)]
Consistent VCA naming (Ardour/Mixbus)

7 years agoconsolidate Ardour+Mixbus code, fix duplicate SeparatorElem in MB.
Robin Gareus [Mon, 20 Feb 2017 15:35:38 +0000 (16:35 +0100)]
consolidate Ardour+Mixbus code, fix duplicate SeparatorElem in MB.

7 years agouse "VCA" rather than "Control Master" in the GUI
Paul Davis [Mon, 20 Feb 2017 14:40:24 +0000 (15:40 +0100)]
use "VCA" rather than "Control Master" in the GUI

7 years agoensure that when mixer is shown in its own tab, it has a default focus widget, so...
Paul Davis [Mon, 20 Feb 2017 11:58:09 +0000 (12:58 +0100)]
ensure that when mixer is shown in its own tab, it has a default focus widget, so that alt-m will always work

7 years agoAdd a missing #define to our MSVC project (portaudio_backend)
John Emmas [Mon, 20 Feb 2017 09:16:51 +0000 (09:16 +0000)]
Add a missing #define to our MSVC project (portaudio_backend)

7 years agoAnd some more action-script icons
Robin Gareus [Mon, 20 Feb 2017 02:58:52 +0000 (03:58 +0100)]
And some more action-script icons

7 years agoIncrease default size of script-editor pane
Robin Gareus [Mon, 20 Feb 2017 02:57:53 +0000 (03:57 +0100)]
Increase default size of script-editor pane

7 years agoLua binding for pango_cairo_layout_path (text outlines)
Robin Gareus [Mon, 20 Feb 2017 02:56:32 +0000 (03:56 +0100)]
Lua binding for pango_cairo_layout_path (text outlines)

7 years agoAdd 2 more action-script icons
Robin Gareus [Sun, 19 Feb 2017 23:53:09 +0000 (00:53 +0100)]
Add 2 more action-script icons

7 years agoNO-OP; clean up script spacing and remove goto
Robin Gareus [Sun, 19 Feb 2017 23:52:40 +0000 (00:52 +0100)]
NO-OP; clean up script spacing and remove goto

7 years agoAdd a Lua script to send multiple tracks to an aux-bus.
Robin Gareus [Sun, 19 Feb 2017 23:29:39 +0000 (00:29 +0100)]
Add a Lua script to send multiple tracks to an aux-bus.

7 years agoAllow to create aux sends from Lua scripts
Robin Gareus [Sun, 19 Feb 2017 23:17:42 +0000 (00:17 +0100)]
Allow to create aux sends from Lua scripts

7 years agoAdd Lua bindings for std::list ::front() and ::back()
Robin Gareus [Sun, 19 Feb 2017 23:17:08 +0000 (00:17 +0100)]
Add Lua bindings for std::list ::front() and ::back()

7 years agoprobable fix for crash while dragging playhead
Paul Davis [Sun, 19 Feb 2017 18:44:13 +0000 (19:44 +0100)]
probable fix for crash while dragging playhead

7 years agoConsistent dialog title (match "Show Protocol Settings" button)
Robin Gareus [Sun, 19 Feb 2017 16:14:59 +0000 (17:14 +0100)]
Consistent dialog title (match "Show Protocol Settings" button)

7 years agoClean up create drum-tracks script (no global variables)
Robin Gareus [Sun, 19 Feb 2017 15:03:17 +0000 (16:03 +0100)]
Clean up create drum-tracks script (no global variables)

7 years agoAllow to keep environment C/XXFLAGS with debug builds
Robin Gareus [Sun, 19 Feb 2017 15:01:25 +0000 (16:01 +0100)]
Allow to keep environment C/XXFLAGS with debug builds

this is needed for e.g. windows debug builds to pass mstackrealign

7 years agoConnect Script Manager "Edit" -> Lua Scripting Window
Robin Gareus [Sun, 19 Feb 2017 00:27:16 +0000 (01:27 +0100)]
Connect Script Manager "Edit" -> Lua Scripting Window

7 years agoBuild-in some doc (script types)
Robin Gareus [Sat, 18 Feb 2017 23:58:39 +0000 (00:58 +0100)]
Build-in some doc (script types)

This should probably be optional, but there's space in the dialog.

7 years agoRemove unused ArdourUI code to add/remove Lua Session Scripts.
Robin Gareus [Sat, 18 Feb 2017 23:11:08 +0000 (00:11 +0100)]
Remove unused ArdourUI code to add/remove Lua Session Scripts.

7 years agoUpdate menu for Lua
Robin Gareus [Sat, 18 Feb 2017 23:09:52 +0000 (00:09 +0100)]
Update menu for Lua

- remove "Session > Scripting" entry point
- change ActionScripts to LuaScripts (all of them sans DSP)

7 years agoAllow to un/load Lua Session Scripts in the Script Manager
Robin Gareus [Sat, 18 Feb 2017 23:07:16 +0000 (00:07 +0100)]
Allow to un/load Lua Session Scripts in the Script Manager

7 years agoEmit a signal when Lua session script change (prepare UI update to un/set)
Robin Gareus [Sat, 18 Feb 2017 23:06:01 +0000 (00:06 +0100)]
Emit a signal when Lua session script change (prepare UI update to un/set)

7 years agofix missing command in Editor::snap_regions_to_grid ()
nick_m [Sat, 18 Feb 2017 20:13:26 +0000 (07:13 +1100)]
fix missing command in Editor::snap_regions_to_grid ()

- fixes 7246

7 years agore-layout script-selector (only grow description vertically)
Robin Gareus [Sat, 18 Feb 2017 18:01:00 +0000 (19:01 +0100)]
re-layout script-selector (only grow description vertically)

7 years agoFix 32bit compilation
Robin Gareus [Sat, 18 Feb 2017 15:22:34 +0000 (16:22 +0100)]
Fix 32bit compilation

7 years agoConsolidate ActionChanged callbacks, add tooltips
Robin Gareus [Sat, 18 Feb 2017 15:14:41 +0000 (16:14 +0100)]
Consolidate ActionChanged callbacks, add tooltips

7 years agoRemove LuaCairo.color_to_rgba (now Ardour.LuaAPI.color_to_rgba)
Robin Gareus [Sat, 18 Feb 2017 15:13:49 +0000 (16:13 +0100)]
Remove LuaCairo.color_to_rgba (now Ardour.LuaAPI.color_to_rgba)

7 years agoSome more EditorAction icons & color API update
Robin Gareus [Sat, 18 Feb 2017 15:12:59 +0000 (16:12 +0100)]
Some more EditorAction icons & color API update

7 years agomove color_to_rgba to LuaAPI for consistency
Robin Gareus [Sat, 18 Feb 2017 15:11:18 +0000 (16:11 +0100)]
move color_to_rgba to LuaAPI for consistency

7 years agoptformat: Update lib to upstream 624671c
Damien Zammit [Sat, 18 Feb 2017 02:16:31 +0000 (13:16 +1100)]
ptformat: Update lib to upstream 624671c

Temporary measure to prevent bogus data being parsed:

Until .ptx decryption is fully solved, we protect
the MIDI data output against bogus values being parsed.

7 years agoBundle Audio to MIDI Lua script
Robin Gareus [Sat, 18 Feb 2017 01:25:28 +0000 (02:25 +0100)]
Bundle Audio to MIDI Lua script

7 years agoAllow to un-assign action-scripts via shift+right-click
Robin Gareus [Sat, 18 Feb 2017 01:24:23 +0000 (02:24 +0100)]
Allow to un-assign action-scripts via shift+right-click

7 years agoDon't scroll-jump when selecting all tracks
Robin Gareus [Sat, 18 Feb 2017 00:25:13 +0000 (01:25 +0100)]
Don't scroll-jump when selecting all tracks

7 years agoPrevent direct and indirect selection of VCAs
Robin Gareus [Fri, 17 Feb 2017 23:45:37 +0000 (00:45 +0100)]
Prevent direct and indirect selection of VCAs

the ::selection_filter() does not cover select-all and various other
indirect selection operations.

7 years agoVCA spill should not show hidden tracks
Robin Gareus [Fri, 17 Feb 2017 23:09:52 +0000 (00:09 +0100)]
VCA spill should not show hidden tracks

7 years agoAllow to re-scan VST plugins after changing VST-paths
Robin Gareus [Fri, 17 Feb 2017 22:30:30 +0000 (23:30 +0100)]
Allow to re-scan VST plugins after changing VST-paths

7 years agoAdd gcc suggested parentheses
Robin Gareus [Fri, 17 Feb 2017 22:29:12 +0000 (23:29 +0100)]
Add gcc suggested parentheses

7 years agoUpdate Lua action-icon doc
Robin Gareus [Fri, 17 Feb 2017 22:28:53 +0000 (23:28 +0100)]
Update Lua action-icon doc

7 years agoAdd Lua API to convert Canvas::Color to Cairo RGBA
Robin Gareus [Fri, 17 Feb 2017 22:28:03 +0000 (23:28 +0100)]
Add Lua API to convert Canvas::Color to Cairo RGBA

7 years ago..and another action-button icon
Robin Gareus [Fri, 17 Feb 2017 20:03:30 +0000 (21:03 +0100)]
..and another action-button icon

7 years agoFix button sizing for IconRenderCallback
Robin Gareus [Fri, 17 Feb 2017 19:51:15 +0000 (20:51 +0100)]
Fix button sizing for IconRenderCallback

7 years agoExample Lua action script icon
Robin Gareus [Fri, 17 Feb 2017 17:56:41 +0000 (18:56 +0100)]
Example Lua action script icon

7 years agoAllow Lua action scripts to provide a button icon
Robin Gareus [Fri, 17 Feb 2017 17:56:18 +0000 (18:56 +0100)]
Allow Lua action scripts to provide a button icon

7 years agoAllow to use any Lua function factory, produce bytecode
Robin Gareus [Fri, 17 Feb 2017 17:28:40 +0000 (18:28 +0100)]
Allow to use any Lua function factory, produce bytecode

7 years agoImplement icon-render callback in ArdourButton
Robin Gareus [Fri, 17 Feb 2017 17:26:30 +0000 (18:26 +0100)]
Implement icon-render callback in ArdourButton

7 years agoptformat: Update lib to upstream 3b60276
Damien Zammit [Fri, 17 Feb 2017 16:01:16 +0000 (03:01 +1100)]
ptformat: Update lib to upstream 3b60276

bugfix: Empty out MIDI events per region

Signed-off-by: Damien Zammit <damien@zamaudio.com>
7 years agoPT import: Add MIDI import functionality
Damien Zammit [Fri, 17 Feb 2017 09:03:21 +0000 (20:03 +1100)]
PT import: Add MIDI import functionality

This change adds support for importing all MIDI regions
from a PT session onto a single track.

Unfortunately, currently we don't know how to set the start
offset of MIDI regions reliably, therefore all midi regions
get dumped at the beginning of the Ardour session.

Signed-off-by: Damien Zammit <damien@zamaudio.com>
7 years agoptformat: Update the lib to 9d0b64f (upstream ptformat)
Damien Zammit [Fri, 17 Feb 2017 08:43:04 +0000 (19:43 +1100)]
ptformat: Update the lib to 9d0b64f (upstream ptformat)

Adds MIDI region import support and simplifies XOR decryption.

Signed-off-by: Damien Zammit <damien@zamaudio.com>
7 years agoRefine faders-to-trim script
Robin Gareus [Fri, 17 Feb 2017 10:19:15 +0000 (11:19 +0100)]
Refine faders-to-trim script

7 years agoMark session dirty when changing scripts
Robin Gareus [Fri, 17 Feb 2017 10:17:54 +0000 (11:17 +0100)]
Mark session dirty when changing scripts

7 years agoAllow binding Lua Action Scripts via right-click
Robin Gareus [Fri, 17 Feb 2017 10:15:14 +0000 (11:15 +0100)]
Allow binding Lua Action Scripts via right-click

7 years agoDon't bundle rewind example script
Robin Gareus [Fri, 17 Feb 2017 10:14:43 +0000 (11:14 +0100)]
Don't bundle rewind example script