Ben Loftis [Wed, 23 Aug 2017 18:13:00 +0000 (13:13 -0500)]
Track Templates:
* Re-rename Track Wizard to Live Band.
* Various ui tweaks to Live Band template script.
Robin Gareus [Thu, 24 Aug 2017 00:56:33 +0000 (02:56 +0200)]
Lua Script Example to toggle monitor section
Robin Gareus [Thu, 24 Aug 2017 00:08:32 +0000 (02:08 +0200)]
Fix session-open after selecting new, template, then back
Robin Gareus [Wed, 23 Aug 2017 21:54:51 +0000 (23:54 +0200)]
Deploy Session-templates
Julien "_FrnchFrgg_" RIVAUD [Wed, 23 Aug 2017 20:04:54 +0000 (22:04 +0200)]
Make the output menu able to connect partial matches
Use the new partial connection feature of IO::connect_ports_to_bundle.
Julien "_FrnchFrgg_" RIVAUD [Wed, 23 Aug 2017 20:03:20 +0000 (22:03 +0200)]
Make IO::connect_ports_to_bundle able to partially connect
Forward the optional |allow_partial| boolean to |Bundle::connect|.
Julien "_FrnchFrgg_" RIVAUD [Wed, 23 Aug 2017 20:01:08 +0000 (22:01 +0200)]
Make Bundle::connect able to connect only some DataTypes
When |allow_partial| is true, only when the number of channels of a
given DataType is the same for both bundles are the corresponding
channels connected together.
When |allow_partial| is false (the default), the number of channels must
match for each DataType (the ChanCounts must be equal) for the
connection to be attempted.
This also fixes the logic in case two bundles have the same number of
channels, or even the same ChanCounts, but not with the DataTypes in the
same order (so connecting the ith channel of the bundle to the ith
channel of the other bundle makes no sense).
Julien "_FrnchFrgg_" RIVAUD [Wed, 23 Aug 2017 18:40:11 +0000 (20:40 +0200)]
Improve getting a Bundle total channel count
|Bundle::nchannels()| creates a ChanCount on demand, by iterating over
the |_channel| member variable. The sum of all |nchannels().n(t)| over
all non-NIL DataTypes |t| is thus equal to |_channel.size()|.
Consequently, calling |nchannels().n_total()| is a convoluted (and slow)
way of getting |_channel.size()|. Add a method |Bundle::n_total()| that
directly returns the latter.
Julien "_FrnchFrgg_" RIVAUD [Tue, 22 Aug 2017 14:04:16 +0000 (16:04 +0200)]
Populate strips output menus with a more user-friendly heuristic
Ensure the master bus is the first proposed bundle if it is present.
Also propose internal route inputs before physical outs or other
software via JACK.
Last, but not least, add to the menu not only exactly matching bundles,
but also bundles that have the same number of channels than the route
output when considering only the DataType we think the user wants to
use. This covers both the case of a MIDI+STEREO instrument track
connecting to master, and the case of a STEREO track connecting to a
MIDI+STEREO vocoder track.
Julien "_FrnchFrgg_" RIVAUD [Tue, 22 Aug 2017 14:02:04 +0000 (16:02 +0200)]
Improve maybe_add_bundle_to_output_menu
Avoid proposing the monitor section in the list if the current route is
not the master bus. Also allow the caller to pass a DataType as argument
to allow partial bundle match on that datatype only.
Julien "_FrnchFrgg_" RIVAUD [Mon, 21 Aug 2017 16:04:25 +0000 (18:04 +0200)]
Use port enumeration instead of manual indexed loop
Julien "_FrnchFrgg_" RIVAUD [Mon, 21 Aug 2017 13:41:29 +0000 (15:41 +0200)]
Generalise heuristic for user-intended main type of a route's IO
The heuristic currently used to display port connections in a
compact user-friendly way only considers Audio and MIDI data types.
Replace it by a better heuristic that does essentially the same thing
with all DataTypes, assuming they are ordered by likeliness of usage.
Currently the result is the same since there are only two DataTypes.
Julien "_FrnchFrgg_" RIVAUD [Wed, 23 Aug 2017 20:44:32 +0000 (22:44 +0200)]
Add a method to get the first DataType
Also put a comment about the ordering of DataTypes.
Julien "_FrnchFrgg_" RIVAUD [Mon, 21 Aug 2017 15:48:04 +0000 (17:48 +0200)]
Remove never changing and/or unused arguments
Julien "_FrnchFrgg_" RIVAUD [Sun, 20 Aug 2017 14:18:58 +0000 (16:18 +0200)]
Use DataType iteration instead of assuming integers
Robin Gareus [Wed, 23 Aug 2017 19:32:53 +0000 (21:32 +0200)]
Fix Route-template file suffix
Robin Gareus [Wed, 23 Aug 2017 17:39:23 +0000 (19:39 +0200)]
Example Stereo to 2 x Mono track Lua script
Robin Gareus [Wed, 23 Aug 2017 17:38:43 +0000 (19:38 +0200)]
Use new separate_by_channel API
Robin Gareus [Wed, 23 Aug 2017 17:37:45 +0000 (19:37 +0200)]
Update "separate_by_channel" API & add Lua bindings
This breaks compilation (GUI)
Ben Loftis [Wed, 23 Aug 2017 17:13:40 +0000 (12:13 -0500)]
Track Templates: remove uninteresting script.
Robin Gareus [Wed, 23 Aug 2017 10:43:48 +0000 (12:43 +0200)]
Use literal for compatibility
Stefan Müller-Klieser [Mon, 21 Aug 2017 18:44:16 +0000 (20:44 +0200)]
backends: jack: display playback only devices
When starting ardour using the jack backend, playback only devices
currently do not get displayed. Mixing and Mastering only workspaces
with e.g. a single USB Dac should be a common use case. Take this use
case into account by adding them to the device list. Tested on Linux
with jack-alsa.
Ben Loftis [Tue, 22 Aug 2017 21:20:26 +0000 (16:20 -0500)]
Track Templates: Add verbose descriptions for the built-in track types.
Ben Loftis [Tue, 22 Aug 2017 19:35:50 +0000 (14:35 -0500)]
Track templates: clean-up widget sensitivity based on selection.
Robin Gareus [Tue, 22 Aug 2017 15:28:08 +0000 (17:28 +0200)]
RouteDialog: implicit "Add (+close)" on <enter> or double-click
Robin Gareus [Tue, 22 Aug 2017 15:07:42 +0000 (17:07 +0200)]
Reset RouteDialog: name edited by-user
* after each "Add" operation
* when cleaning the name field
Robin Gareus [Tue, 22 Aug 2017 14:45:14 +0000 (16:45 +0200)]
Tweak RouteDialog bottom area
Ben Loftis [Tue, 22 Aug 2017 14:19:02 +0000 (09:19 -0500)]
Track Templates: yet another layout tweak.
Robin Gareus [Tue, 22 Aug 2017 13:06:21 +0000 (15:06 +0200)]
Remove cruft
Len Ovens [Tue, 22 Aug 2017 03:06:44 +0000 (20:06 -0700)]
OSC cue button up events should not be errors, fixed
Robin Gareus [Tue, 22 Aug 2017 02:12:18 +0000 (04:12 +0200)]
Mark session dirty after applying MIDI transform
Robin Gareus [Tue, 22 Aug 2017 02:09:19 +0000 (04:09 +0200)]
MIDI Transform channel-count 1..16 (not 0..15)
Robin Gareus [Tue, 22 Aug 2017 01:12:07 +0000 (03:12 +0200)]
Add Lua bindings for ArdourUI's translate_order()
e.g. calculate the route insert position:
print (ArdourUI.translate_order (ArdourUI.InsertAt.BeforeSelection))
Robin Gareus [Tue, 22 Aug 2017 00:17:22 +0000 (02:17 +0200)]
RouteDialog: retain prior type selection
Robin Gareus [Tue, 22 Aug 2017 00:11:56 +0000 (02:11 +0200)]
remove debug output
Robin Gareus [Tue, 22 Aug 2017 00:03:47 +0000 (02:03 +0200)]
RouteDialog: Move built-in types into template list experiment
Len Ovens [Mon, 21 Aug 2017 19:09:48 +0000 (12:09 -0700)]
OSC: /cue/enable feedback not changing fixed
Julien "_FrnchFrgg_" RIVAUD [Mon, 21 Aug 2017 17:44:41 +0000 (19:44 +0200)]
Fix spacing in french usage strings
Len Ovens [Mon, 21 Aug 2017 15:40:22 +0000 (08:40 -0700)]
OSC: aux bus detection fixed for mixbus
Robin Gareus [Mon, 21 Aug 2017 15:07:54 +0000 (17:07 +0200)]
Catch Lua exception when scanning scripts
Paul Hedderly [Mon, 21 Aug 2017 14:08:22 +0000 (15:08 +0100)]
prh: Small fix to /cue/send/enable feedback string
Robin Gareus [Mon, 21 Aug 2017 14:10:20 +0000 (16:10 +0200)]
AddRouteDialog: Indicate Type: template
John Emmas [Mon, 21 Aug 2017 08:22:44 +0000 (09:22 +0100)]
Accommodate newly introduced source(s) in our MSVC project (gtk2_ardour)
Robin Gareus [Sun, 20 Aug 2017 20:26:54 +0000 (22:26 +0200)]
Fix some GUI side XML node mem-leaks
Robin Gareus [Sun, 20 Aug 2017 20:23:10 +0000 (22:23 +0200)]
Fix a tiny memory leak
Johannes Mueller [Sun, 20 Aug 2017 17:53:42 +0000 (19:53 +0200)]
Strip trailing whitespace in template descriptions
Johannes Mueller [Sun, 20 Aug 2017 17:10:50 +0000 (19:10 +0200)]
TemplateDialog: Lable the RESPONSE_OK button "Done" rather than "Ok"
Labeling it "Ok" would imply that by clicking it, descriptions would be saved
without further interaction. If we did so, we would also need to add a
cancel-button or handle simple closing of the dialog window appropriately.
Johannes Mueller [Sun, 20 Aug 2017 12:35:29 +0000 (14:35 +0200)]
TemplateDialog tweaks
* don't ask whether to save the description when renaming the template
* sane behavior when a template is deleted
Johannes Mueller [Sat, 19 Aug 2017 23:36:11 +0000 (01:36 +0200)]
Clear and deactivate description editor widget when nothing is selected
Johannes Mueller [Sat, 19 Aug 2017 22:54:19 +0000 (00:54 +0200)]
TemplateDialog: keep private things private and header files simple
Johannes Mueller [Sat, 19 Aug 2017 22:39:50 +0000 (00:39 +0200)]
Make literals in libs/ardour/template_utils.cc translatable
Johannes Mueller [Sat, 19 Aug 2017 22:29:46 +0000 (00:29 +0200)]
Ask user whether to save or discard unsaved template descriptions
Johannes Mueller [Sat, 19 Aug 2017 17:45:08 +0000 (19:45 +0200)]
Remove the template description XMLNode before saving the template
... to avoid that the new template description is concatenated to the old one.
Johannes Mueller [Sat, 19 Aug 2017 17:42:38 +0000 (19:42 +0200)]
Extract the route template descriptions
... and put them into the template info list.
Johannes Mueller [Sat, 19 Aug 2017 12:52:38 +0000 (14:52 +0200)]
Pass session description or route comment as default description
... to SaveTemplateDialog
Johannes Mueller [Sat, 19 Aug 2017 12:52:14 +0000 (14:52 +0200)]
Use const wherever you can
Johannes Mueller [Sat, 19 Aug 2017 12:51:14 +0000 (14:51 +0200)]
Name tweak (more consistent with other code)
Johannes Mueller [Sat, 19 Aug 2017 11:49:33 +0000 (13:49 +0200)]
Let user add a route template description on saving route templates
Johannes Mueller [Fri, 18 Aug 2017 17:53:46 +0000 (19:53 +0200)]
Let the user add a template description on saving session templates
Johannes Mueller [Fri, 18 Aug 2017 22:04:07 +0000 (00:04 +0200)]
Save template description at toplevel rather than in <Metadata/>
Johannes Mueller [Thu, 17 Aug 2017 19:42:32 +0000 (21:42 +0200)]
Make template descriptions editable in template manager
Robin Gareus [Sun, 20 Aug 2017 17:15:37 +0000 (19:15 +0200)]
Tweak generic audio-track template
* Demo Factory method producing different functions
* Allow to run interactively as Action script
Robin Gareus [Sun, 20 Aug 2017 17:02:17 +0000 (19:02 +0200)]
Don't use references for constant c-types
This fixes various Lua-scripts: There are no explicit bindings to
turn int64_t, uint64_t into a const reference.
Besides it doesn't make sense to use a reference for constant _t that can
be directly loaded in CPU register or on the stack.
Robin Gareus [Sun, 20 Aug 2017 01:46:36 +0000 (03:46 +0200)]
Tweak route-dialog layout & sensitivity
Robin Gareus [Sat, 19 Aug 2017 22:18:58 +0000 (00:18 +0200)]
Cont'd work on route-templates
Robin Gareus [Sat, 19 Aug 2017 21:32:09 +0000 (23:32 +0200)]
Fix "Track Wizard" script
* do check if plugins are available
* only instantiate plugins if they're used (no dangling references)
* check if plugin instantiation worked, before adding them
* fix typos for stereo setup of drum-room & overhead
* add channel-count warning
Robin Gareus [Sat, 19 Aug 2017 20:52:45 +0000 (22:52 +0200)]
More template re-naming
Unify "track-band" & "session-band" setup scripts
Robin Gareus [Sat, 19 Aug 2017 20:30:00 +0000 (22:30 +0200)]
remove unused header (fixes OSX builds)
cocoacarbon.mm -> ardour_ui.h -> LuaBridge.h
Apple's "Nil" vs Lua "Nil"
Robin Gareus [Sat, 19 Aug 2017 20:28:25 +0000 (22:28 +0200)]
unify session-template names
Robin Gareus [Sat, 19 Aug 2017 01:12:28 +0000 (03:12 +0200)]
Backwards compatible LuaDialog layout (+new colspan option)
Robin Gareus [Sat, 19 Aug 2017 00:36:36 +0000 (02:36 +0200)]
Fix copy/paste typo in
e0a83a7
Robin Gareus [Fri, 18 Aug 2017 23:39:43 +0000 (01:39 +0200)]
NO-OP: whitespace & style
Robin Gareus [Fri, 18 Aug 2017 23:32:28 +0000 (01:32 +0200)]
Revert non "aesthetic tweaks" from
f614d10994
Robin Gareus [Fri, 18 Aug 2017 23:29:27 +0000 (01:29 +0200)]
NO-OP: whitespace
Robin Gareus [Fri, 18 Aug 2017 23:05:08 +0000 (01:05 +0200)]
Lua may call C++ functions with throw. Catch them
Robin Gareus [Fri, 18 Aug 2017 23:05:18 +0000 (01:05 +0200)]
Lua may call C++ functions with throw. Catch them
Ben Loftis [Fri, 18 Aug 2017 21:40:06 +0000 (16:40 -0500)]
Templates: Mostly working tabular script.
Ben Loftis [Fri, 18 Aug 2017 20:29:34 +0000 (15:29 -0500)]
Templates: basic support for columns in the script dialog.
Ben Loftis [Fri, 18 Aug 2017 20:28:46 +0000 (15:28 -0500)]
Templates: first stab at a dialog with tabular layout.
Ben Loftis [Fri, 18 Aug 2017 13:37:09 +0000 (08:37 -0500)]
Templates: aesthetic tweaks.
Paul Hedderly [Fri, 18 Aug 2017 20:36:27 +0000 (21:36 +0100)]
prh: Added version 1b of my Mixbus Mix controller.
- Much of it is directly applicable to Ardour obviously, but some parts
wont do anything
Robin Gareus [Fri, 18 Aug 2017 20:45:47 +0000 (22:45 +0200)]
Update Route-template example script & documentation
Robin Gareus [Fri, 18 Aug 2017 20:00:24 +0000 (22:00 +0200)]
Add Lua binding to un/assign VCAs
Robin Gareus [Fri, 18 Aug 2017 19:12:45 +0000 (21:12 +0200)]
Remove old destructive API (non layered is a dynamic mode) 2/2
Robin Gareus [Fri, 18 Aug 2017 18:59:52 +0000 (20:59 +0200)]
Remove old destructive API (non layered is a dynamic mode) 1/2
Robin Gareus [Fri, 18 Aug 2017 18:56:30 +0000 (20:56 +0200)]
amend
e0a83a75 RouteDialog + script details
Robin Gareus [Fri, 18 Aug 2017 18:41:35 +0000 (20:41 +0200)]
Redesign Session+Route Template Meta Script API
Remove special-cased script types. Allow Action-Scripts to be re-used
for session-setup or route-templates.
Robin Gareus [Fri, 18 Aug 2017 18:41:53 +0000 (20:41 +0200)]
Add luaRef is Boolean
Paul Davis [Fri, 18 Aug 2017 13:41:57 +0000 (09:41 -0400)]
NO-OP: whitespace
Paul Davis [Fri, 18 Aug 2017 13:41:45 +0000 (09:41 -0400)]
strip <Actions>/ from displayed path when printing bindings to HTML
Robin Gareus [Fri, 18 Aug 2017 10:49:34 +0000 (12:49 +0200)]
Fix quantization end-grid size.
Robin Gareus [Fri, 18 Aug 2017 10:49:06 +0000 (12:49 +0200)]
Fix MIDI Quantization for internationalized Ardour.
Grid-settings are translatable, parsing a number from a translated string
e.g. "Quart de temps" for "Beats/4" failed.
Robin Gareus [Thu, 17 Aug 2017 23:51:02 +0000 (01:51 +0200)]
Push user track-templates to the template list
Robin Gareus [Thu, 17 Aug 2017 23:12:05 +0000 (01:12 +0200)]
Robin Gareus [Thu, 17 Aug 2017 22:18:59 +0000 (00:18 +0200)]
Initialize an uninitialized variable
Robin Gareus [Thu, 17 Aug 2017 22:18:18 +0000 (00:18 +0200)]
NO-OP: whitespace & scope
Robin Gareus [Thu, 17 Aug 2017 22:09:10 +0000 (00:09 +0200)]
NO-OP: whitespace
Robin Gareus [Thu, 17 Aug 2017 21:50:34 +0000 (23:50 +0200)]
Expose Lua bindings to create/delete VCAs
Robin Gareus [Thu, 17 Aug 2017 21:41:22 +0000 (23:41 +0200)]
Consolidate add/track/route/bus wrappers -- step one.
Ben Loftis [Thu, 17 Aug 2017 21:44:52 +0000 (16:44 -0500)]
Track Templates: shorten some of the track names.