ardour.git
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

7 years agoleave a ToDo note for the mackie surface
Robin Gareus [Fri, 17 Feb 2017 03:02:15 +0000 (04:02 +0100)]
leave a ToDo note for the mackie surface

7 years agoRemove direct calls to set solo_control()
Robin Gareus [Fri, 17 Feb 2017 02:58:51 +0000 (03:58 +0100)]
Remove direct calls to set solo_control()

Changing solo-state needs to be done in rt-context to atomically
propagate solo/mute.

set_control() queues a rt-event, later Session::rt_set_control() calls
Session::update_route_solo_state() to propagate solo/mute.

7 years agoUpdate solo/mute example script (use sessions' set_control(s)
Robin Gareus [Fri, 17 Feb 2017 02:38:15 +0000 (03:38 +0100)]
Update solo/mute example script (use sessions' set_control(s)

7 years agoAdd Lua bindings related to solo/mute and realtime control changes
Robin Gareus [Fri, 17 Feb 2017 02:37:51 +0000 (03:37 +0100)]
Add Lua bindings related to solo/mute and realtime control changes

7 years agoVersion keybindings file.
Robin Gareus [Thu, 16 Feb 2017 23:59:48 +0000 (00:59 +0100)]
Version keybindings file.

Allow to run both Ardour 5.5 and later (changed bindings name)
with the same config folder.

Like with .color files, custom .keys files won't be taken into account
when updating to a new version.

This is mostly a stopgap solution. Eventually we'll have to come up with a
merge&prune mechanism for bindings or maintain a separate version for
these files. Hopefully some better idea will come up...

7 years agoFix initial order-keys when creating tracks/busses
Robin Gareus [Thu, 16 Feb 2017 23:50:52 +0000 (00:50 +0100)]
Fix initial order-keys when creating tracks/busses

.. and leave some notes for the day when UI treemodel won't be canonical
to set order-keys.

7 years agoFix route ordering (mixer TV lacks master-bus)
Robin Gareus [Thu, 16 Feb 2017 23:44:02 +0000 (00:44 +0100)]
Fix route ordering (mixer TV lacks master-bus)

Skip master bus' order-key when re-ordering routes in the mixer.

This also fixes a related issue:
When a new track is added, Session::RouteAdded will call be handled by
Editor::add_routes AND Mixer_UI::add_routes, leading to calls to both:

- EditorRoutes::sync_presentation_info_from_treeview()
- Mixer_UI::sync_presentation_info_from_treeview ()

which potentially set different order-keys.

7 years agoToolbar spacing: Add back one pixel of vertical padding, and preserve it regardless...
Ben Loftis [Thu, 16 Feb 2017 20:37:56 +0000 (14:37 -0600)]
Toolbar spacing: Add back one pixel of vertical padding, and preserve it regardless of which button sections are hidden.

7 years agoPrevent "punch" and "mon" buttons from increasing toolbar height.
Robin Gareus [Thu, 16 Feb 2017 19:49:18 +0000 (20:49 +0100)]
Prevent "punch" and "mon" buttons from increasing toolbar height.

7 years agoBetter solution 213cc1d32
Robin Gareus [Thu, 16 Feb 2017 15:08:33 +0000 (16:08 +0100)]
Better solution 213cc1d32

7 years agoProperly update main window-title.
Robin Gareus [Thu, 16 Feb 2017 15:07:59 +0000 (16:07 +0100)]
Properly update main window-title.

This fixes an issue with Session > Snapshot & switch, not updating
the widow title to the new snapshot (and probably some other edge cases
where it was possible for a detached editor and main window to
have different titles).

The main UI now updates the window-title like the Editor on StateSaved.
(it may lead to dup updates with DirtyChanged, c'est la vie)

7 years agocheck region action sensitivity from two more places that may alter it
Paul Davis [Thu, 16 Feb 2017 09:29:32 +0000 (10:29 +0100)]
check region action sensitivity from two more places that may alter it

7 years agoimprove logic for region action sensitivity settings
Paul Davis [Thu, 16 Feb 2017 09:29:04 +0000 (10:29 +0100)]
improve logic for region action sensitivity settings

7 years agoamend 32248b755ba (legacy tempo map).
nick_m [Wed, 15 Feb 2017 22:06:07 +0000 (09:06 +1100)]
amend 32248b755ba (legacy tempo map).

7 years agofix constrained region drags across tracks (7242).
nick_m [Wed, 15 Feb 2017 21:57:03 +0000 (08:57 +1100)]
fix constrained region drags across tracks (7242).

7 years agosimplify arguments to Editor::sensitize_the_right_region_actions()
Paul Davis [Wed, 15 Feb 2017 18:50:51 +0000 (19:50 +0100)]
simplify arguments to Editor::sensitize_the_right_region_actions()

7 years agouse leave/enter from track canvas to be the primary driver of region action sensitivity
Paul Davis [Wed, 15 Feb 2017 18:00:28 +0000 (19:00 +0100)]
use leave/enter from track canvas to be the primary driver of region action sensitivity

This works for context menus also, because GTK sends us leave/enter notify
events when they appear.

7 years agoclassify all region actions based on how they get a list of regions to operate on...
Paul Davis [Tue, 14 Feb 2017 15:09:32 +0000 (16:09 +0100)]
classify all region actions based on how they get a list of regions to operate on; use this in Editor::sensitize_the_right_region_actions()

There are still problems because actions like trim_front()
that use the edit point get the edit point with different
results than the code that sensitizes actions

7 years agotentative steps in trying to fix region action sensitivity
Paul Davis [Fri, 10 Feb 2017 21:12:28 +0000 (22:12 +0100)]
tentative steps in trying to fix region action sensitivity

7 years agoAllow bundling suil/qt4,5 using system-wide QT
Robin Gareus [Wed, 15 Feb 2017 18:42:34 +0000 (19:42 +0100)]
Allow bundling suil/qt4,5 using system-wide QT

7 years agofix loading of 4.x sessions with a missing initial tempo section.
nick_m [Wed, 15 Feb 2017 17:58:45 +0000 (04:58 +1100)]
fix loading of 4.x sessions with a missing initial tempo section.

- behaviour should match that of 4.x (move the first tempo
  to frame 0).

7 years agoExample lua script to re-order/reverse plugins
Robin Gareus [Wed, 15 Feb 2017 17:12:51 +0000 (18:12 +0100)]
Example lua script to re-order/reverse plugins

7 years agoAdd Lua bindings for plugin re-ordering
Robin Gareus [Wed, 15 Feb 2017 17:12:28 +0000 (18:12 +0100)]
Add Lua bindings for plugin re-ordering

7 years agoDon't copy-construct MusicFrame, pass const reference.
Robin Gareus [Wed, 15 Feb 2017 13:20:26 +0000 (14:20 +0100)]
Don't copy-construct MusicFrame, pass const reference.

7 years agounconditionally set region quarter note in set_position().
nick_m [Wed, 15 Feb 2017 11:55:51 +0000 (22:55 +1100)]
unconditionally set region quarter note in set_position().

- this fixes incorrect timing of new regions recorded
  before the music origin.

7 years agoSeparate MSB/LSB MIDI Bank select
Robin Gareus [Tue, 14 Feb 2017 22:46:22 +0000 (23:46 +0100)]
Separate MSB/LSB MIDI Bank select

7 years agoSave/restore location clock mode
Robin Gareus [Tue, 14 Feb 2017 16:15:16 +0000 (17:15 +0100)]
Save/restore location clock mode

- save mode separately for Editor-sidebar and Location Window
- cache mode (multiple calls to set_session())
- fix restore: after creating the editor, instant_save() is called,
  potentially overwriting the previous value.

7 years agoNO-OP: whitespace
Robin Gareus [Tue, 14 Feb 2017 14:46:37 +0000 (15:46 +0100)]
NO-OP: whitespace

7 years agoAnother update for Lua-documentation (new manual.ardour.org)
Robin Gareus [Tue, 14 Feb 2017 14:05:07 +0000 (15:05 +0100)]
Another update for Lua-documentation (new manual.ardour.org)

7 years agoUpdate Lua script - API change after 59daffea1
Robin Gareus [Tue, 14 Feb 2017 13:52:07 +0000 (14:52 +0100)]
Update Lua script - API change after 59daffea1

7 years agoAdd missing bindings (after 59daffea1)
Robin Gareus [Tue, 14 Feb 2017 13:45:21 +0000 (14:45 +0100)]
Add missing bindings (after 59daffea1)

7 years agoupdate luadoc tool (new manual website system)
Robin Gareus [Tue, 14 Feb 2017 13:44:51 +0000 (14:44 +0100)]
update luadoc tool (new manual website system)

7 years agoFix lua-doc (Null pointer c'tor doc)
Robin Gareus [Tue, 14 Feb 2017 13:43:29 +0000 (14:43 +0100)]
Fix lua-doc (Null pointer c'tor doc)

7 years agoReset window-size when switching between custom and generic plugin UI.
Robin Gareus [Tue, 14 Feb 2017 00:05:43 +0000 (01:05 +0100)]
Reset window-size when switching between custom and generic plugin UI.

Both views have uncorrelated geometry, apply one size to the other
makes no sense and usually results in odd window sizes, particularly
for custom plugin UIs with aspect-ratio constraints.

7 years agoClarify session property (now that there's an action)
Robin Gareus [Mon, 13 Feb 2017 22:00:56 +0000 (23:00 +0100)]
Clarify session property (now that there's an action)

7 years agoGUI action Transport/RecordCountIn
Robin Gareus [Mon, 13 Feb 2017 21:59:51 +0000 (22:59 +0100)]
GUI action Transport/RecordCountIn

7 years agoPrepare record with count-in action
Robin Gareus [Mon, 13 Feb 2017 21:59:20 +0000 (22:59 +0100)]
Prepare record with count-in action

7 years agoreinstate ensure-time-axis-visible after move-selected-tracks
Paul Davis [Mon, 13 Feb 2017 21:22:53 +0000 (22:22 +0100)]
reinstate ensure-time-axis-visible after move-selected-tracks

7 years agonew implementation of move-selected-tracks
Paul Davis [Mon, 13 Feb 2017 21:09:55 +0000 (22:09 +0100)]
new implementation of move-selected-tracks

This does not modify the editor treeview/treemodel at all
but instead works directly on the PresentationInfo order
data. Likely needs more testing etc.

7 years agoupdate email address
Paul Davis [Mon, 13 Feb 2017 21:08:56 +0000 (22:08 +0100)]
update email address

7 years agoUpdate scripts for API change in 59daffea1
Robin Gareus [Mon, 13 Feb 2017 17:44:36 +0000 (18:44 +0100)]
Update scripts for API change in 59daffea1

7 years agoremove unused background expose
Robin Gareus [Mon, 13 Feb 2017 13:01:32 +0000 (14:01 +0100)]
remove unused background expose

7 years agolatest Czech translation for libs/ardour, from Pavel Fric (December 2016)
Paul Davis [Mon, 13 Feb 2017 13:14:21 +0000 (14:14 +0100)]
latest Czech translation for libs/ardour, from Pavel Fric (December 2016)

7 years agofix 'snap to beat' havoc-causing misplaced bracket.
nick_m [Mon, 13 Feb 2017 13:16:52 +0000 (00:16 +1100)]
fix 'snap to beat' havoc-causing misplaced bracket.

- should fix 7234

7 years agofix missing position property in MidiRegion::clone()
nick_m [Sun, 12 Feb 2017 15:03:05 +0000 (02:03 +1100)]
fix missing position property in MidiRegion::clone()

7 years agocredit where credit is due
Paul Davis [Sun, 12 Feb 2017 10:35:02 +0000 (11:35 +0100)]
credit where credit is due

7 years agoUpdate Japanese translation
Hiroki Inagaki [Sun, 12 Feb 2017 09:49:33 +0000 (01:49 -0800)]
Update Japanese translation

7 years agoThis is the wrong approach to this problem. 5.6
Paul Davis [Thu, 9 Feb 2017 16:03:42 +0000 (17:03 +0100)]
This is the wrong approach to this problem.

Revert "3 actions (trim-front, trim-back, set-sync-position) do not need to be region-selection sensitive."

This reverts commit 4aaf3fcb95e280a4348bced300553d4166f72a71.

7 years agoremove debug output from PresentationInfo changes
Paul Davis [Thu, 9 Feb 2017 15:49:11 +0000 (16:49 +0100)]
remove debug output from PresentationInfo changes

7 years agoNO-OP: whitespace conversion
Paul Davis [Thu, 9 Feb 2017 15:27:34 +0000 (16:27 +0100)]
NO-OP: whitespace conversion

7 years agowhen considering whether or not to autoscroll teh canvas, first translate allocation...
Paul Davis [Thu, 9 Feb 2017 15:27:16 +0000 (16:27 +0100)]
when considering whether or not to autoscroll teh canvas, first translate allocation boundary into toplevel coordinates