ardour.git
7 years agoUse a real dropdown for AutoState in automation lanes
Julien "_FrnchFrgg_" RIVAUD [Wed, 17 Aug 2016 21:37:17 +0000 (23:37 +0200)]
Use a real dropdown for AutoState in automation lanes

7 years agoAlign the currently selected automation state on dropdown
Julien "_FrnchFrgg_" RIVAUD [Wed, 17 Aug 2016 19:14:47 +0000 (21:14 +0200)]
Align the currently selected automation state on dropdown

By passing the current text of the automation button we can make the
dropdown menu align with the current mode. This will only work for
full-size automation buttons, not when use-knob is true, but in that
case it feels wrong to popup on top of the button anyway.

Also make the menu show on mouse down like a real dropdown.

7 years agoReport quarter note rather than beat position to AU plugins.
nick_m [Wed, 17 Aug 2016 19:42:30 +0000 (05:42 +1000)]
Report quarter note rather than beat position to AU plugins.

7 years agoUse quarter pulses (quarter notes) for VST's ppqBar, ppqPos and cycleStart/EndPos.
nick_m [Wed, 17 Aug 2016 19:39:44 +0000 (05:39 +1000)]
Use quarter pulses (quarter notes) for VST's ppqBar, ppqPos and cycleStart/EndPos.

7 years agoAdd methods for plugin APIs to obtsin quarter pulses ('beats' for AU) from the tempo...
nick_m [Wed, 17 Aug 2016 19:36:24 +0000 (05:36 +1000)]
Add methods for plugin APIs to obtsin quarter pulses ('beats' for AU) from the tempo map.

7 years agoadd some track properties example script
Robin Gareus [Wed, 17 Aug 2016 18:30:20 +0000 (20:30 +0200)]
add some track properties example script

7 years agoOSC: Add value feedback to strip fader and trim
Len Ovens [Wed, 17 Aug 2016 15:24:57 +0000 (08:24 -0700)]
OSC: Add value feedback to strip fader and trim

7 years agofix ramped BPM reporting to AU and VST plugins
Robin Gareus [Wed, 17 Aug 2016 15:17:00 +0000 (17:17 +0200)]
fix ramped BPM reporting to AU and VST plugins

7 years agoupcoming codenames
Robin Gareus [Wed, 17 Aug 2016 15:03:06 +0000 (17:03 +0200)]
upcoming codenames

7 years agofix LV2 BPM report (use ramped tempo)
Robin Gareus [Wed, 17 Aug 2016 15:02:56 +0000 (17:02 +0200)]
fix LV2 BPM report (use ramped tempo)

7 years agoa-Reverb: Fixed bug with the reverb all pass filters causing bad sound
Damien Zammit [Wed, 17 Aug 2016 14:39:54 +0000 (00:39 +1000)]
a-Reverb: Fixed bug with the reverb all pass filters causing bad sound

7 years agoMake MixerStrip's automation menu behave like a dropdown
Julien "_FrnchFrgg_" RIVAUD [Wed, 17 Aug 2016 12:30:28 +0000 (14:30 +0200)]
Make MixerStrip's automation menu behave like a dropdown

7 years agoThese are not the scripts you're looking for
Julien "_FrnchFrgg_" RIVAUD [Wed, 17 Aug 2016 00:04:27 +0000 (02:04 +0200)]
These are not the scripts you're looking for

7 years agoMake the group button in MixerStrip behave like a dropdown
Julien "_FrnchFrgg_" RIVAUD [Tue, 16 Aug 2016 01:05:43 +0000 (03:05 +0200)]
Make the group button in MixerStrip behave like a dropdown

Since it mostly is a multiple-choice menu.

7 years agoFix anchored popups with separators in them
Julien "_FrnchFrgg_" RIVAUD [Tue, 16 Aug 2016 23:38:19 +0000 (01:38 +0200)]
Fix anchored popups with separators in them

The code computing the position of the popup menu used to compare the
given string to each MenuItem::get_label() result, but that method
actually replaces the content (child) of the MenuItem if that child is
not already a Gtk::Label. In particular, this breaks menu separators.

Avoid the issue by checking by hand if the only child of the MenuItem is
a Label, and directly compare the label text.

7 years agoReplace positioning function with popup helper
Julien "_FrnchFrgg_" RIVAUD [Mon, 15 Aug 2016 23:57:58 +0000 (01:57 +0200)]
Replace positioning function with popup helper

Because all uses of the function positioning menus anchored to a widget
were as callback argument to Gtk::Menu::popup() where the caller needed
to correctly bind arguments, this led to repeated and a bit obscure code.

Wrap the logic into an helper function that takes care of all that, and
update the callers.

7 years agofix issue with WM close/delete ("X") button not working for window proxied dialogs...
Paul Davis [Tue, 16 Aug 2016 17:56:53 +0000 (13:56 -0400)]
fix issue with WM close/delete ("X") button not working for window proxied dialogs (e.g. add route dialog)

7 years agoAlso send lv2:timePosition whenever BBT or Tempo changes
Robin Gareus [Tue, 16 Aug 2016 11:11:49 +0000 (13:11 +0200)]
Also send lv2:timePosition whenever BBT or Tempo changes

This mostly fixes an issue with notifying plugins about tempo-ramps
and BPM changes.

remaining to be fixed (in tempo.h):
```
_session.tempo_map().metric_at(frame_position).tempo().beats_per_minute()
```
currently returns the most recent *fixed* tempo at or before
`frame_position`. All other Plugin types are affected by this as well.

7 years agofix copy/paste typo in bc0bb6cae
Robin Gareus [Mon, 15 Aug 2016 23:01:36 +0000 (01:01 +0200)]
fix copy/paste typo in bc0bb6cae

7 years agoturn comments into doxygen doc
Robin Gareus [Mon, 15 Aug 2016 22:22:49 +0000 (00:22 +0200)]
turn comments into doxygen doc

7 years agoextend lua-doc to show properties
Robin Gareus [Mon, 15 Aug 2016 22:21:59 +0000 (00:21 +0200)]
extend lua-doc to show properties

7 years agoadd some missing enum bindings (for config variables)
Robin Gareus [Mon, 15 Aug 2016 22:20:36 +0000 (00:20 +0200)]
add some missing enum bindings (for config variables)

7 years agoallow for whitespace in XDG_DESKTOP_DIR
Robin Gareus [Mon, 15 Aug 2016 20:18:23 +0000 (22:18 +0200)]
allow for whitespace in XDG_DESKTOP_DIR

This allows for example "Área de Trabalho"

7 years agoexpose SessionConfiguration as lua bindings
Robin Gareus [Mon, 15 Aug 2016 20:16:08 +0000 (22:16 +0200)]
expose SessionConfiguration as lua bindings

7 years agoRe-enable luabridge addProperty()
Robin Gareus [Mon, 15 Aug 2016 20:13:29 +0000 (22:13 +0200)]
Re-enable luabridge addProperty()

In preparation to expose ARDOUR::SessionConfiguration.
Also change the return-type to bool to match Ardour's set/get API

7 years agoallow constrained-drag of MIDI notes to work
Paul Davis [Mon, 15 Aug 2016 15:20:17 +0000 (11:20 -0400)]
allow constrained-drag of MIDI notes to work

7 years agoAdd missing line feed in midi_region_view.cc
nick_m [Mon, 15 Aug 2016 14:56:08 +0000 (00:56 +1000)]
Add missing line feed in midi_region_view.cc

7 years agoMidi region ghost note uses beat-based note time calculation.
nick_m [Mon, 15 Aug 2016 14:52:18 +0000 (00:52 +1000)]
Midi region ghost note uses beat-based note time calculation.

7 years agoFix frame-based beat calculation in MidiRegionView::snap_frame_to_grid_underneath()
nick_m [Mon, 15 Aug 2016 14:48:54 +0000 (00:48 +1000)]
Fix frame-based beat calculation in MidiRegionView::snap_frame_to_grid_underneath()

- this caused the ghost note under the pointer to behave badly when
  hovering near an audio-locked meter.

7 years agoEnforce rounding to beat as >= 0.0
nick_m [Mon, 15 Aug 2016 14:43:08 +0000 (00:43 +1000)]
Enforce rounding to beat as >= 0.0

7 years agoExpose Stripable Color & Ordering API to Lua
Robin Gareus [Mon, 15 Aug 2016 14:37:44 +0000 (16:37 +0200)]
Expose Stripable Color & Ordering API to Lua

We can't easily use C++ references with Lua closures, so
new API (pointer to PresentationInfo) was added.

7 years agoedit text regarding the "required" nature of JACK during installation process
Paul Davis [Sun, 14 Aug 2016 13:53:07 +0000 (09:53 -0400)]
edit text regarding the "required" nature of JACK during installation process

7 years agochange PBD::Transmitter code to use PBD::Signal<> not sigc::signal<>, since the latte...
Paul Davis [Sun, 14 Aug 2016 12:33:23 +0000 (08:33 -0400)]
change PBD::Transmitter code to use PBD::Signal<> not sigc::signal<>, since the latter is not thread safe

7 years agoDon't call any Transmitter from realtime context
Robin Gareus [Sat, 13 Aug 2016 22:47:03 +0000 (00:47 +0200)]
Don't call any Transmitter from realtime context

This fixes a crash when TempoMap::bbt_at_frame_rt() is called
for a latent effect at position 00:00:00:00 and frame is < 0.

7 years agoRemove assumption that the meter starts at frame 0 in Editor::apply_midi_note_edit_op...
nick_m [Sat, 13 Aug 2016 18:49:37 +0000 (04:49 +1000)]
Remove assumption that the meter starts at frame 0 in Editor::apply_midi_note_edit_op_to_region().

7 years agoSync User Interactoin tooltips with new default settings.
nick_m [Sat, 13 Aug 2016 17:03:16 +0000 (03:03 +1000)]
Sync User Interactoin tooltips with new default settings.

7 years agoChoose some non-overlapping defaults for User Interaction modifier keys.
nick_m [Sat, 13 Aug 2016 16:41:20 +0000 (02:41 +1000)]
Choose some non-overlapping defaults for User Interaction modifier keys.

7 years agoAdd a new modifier combination that allows overlap with snap-related defaults.
nick_m [Sat, 13 Aug 2016 16:15:03 +0000 (02:15 +1000)]
Add a new modifier combination that allows overlap with snap-related defaults.

- this should be enough to handle all of the current possibilities.

7 years agoUser Interaction pref shows the push points modifier in the 'beginning a drag' row.
nick_m [Sat, 13 Aug 2016 16:07:34 +0000 (02:07 +1000)]
User Interaction pref shows the push points modifier in the 'beginning a drag' row.

- it is currently dual use (move both ends of a range marker
    during drag / push control points at the beginning of a drag).
  this may have to be separated, but as it is called the push
  points modifier, it belongs here.

7 years agoResolve potential ambiguity between the constraint modifier and the copy modifier...
nick_m [Sat, 13 Aug 2016 15:50:51 +0000 (01:50 +1000)]
Resolve potential ambiguity between the constraint modifier and the copy modifier when beginning a drag.

7 years agoEnsure RelevantModifierKeyMask is updated on each modifier change.
nick_m [Sat, 13 Aug 2016 15:16:48 +0000 (01:16 +1000)]
Ensure RelevantModifierKeyMask is updated on each modifier change.

- fixes bug where changing prefs in User Interaction
  only took effect on restart.

7 years agoEnsure BBTRulerDrag operates within the tempo map.
nick_m [Fri, 12 Aug 2016 19:37:18 +0000 (05:37 +1000)]
Ensure BBTRulerDrag operates within the tempo map.

7 years agoEnsure positive length whan drag-adding new midi region.
nick_m [Fri, 12 Aug 2016 19:23:59 +0000 (05:23 +1000)]
Ensure positive length whan drag-adding new midi region.

7 years agoAlways send start property changes when a midi region trim alters position.
nick_m [Fri, 12 Aug 2016 18:18:21 +0000 (04:18 +1000)]
Always send start property changes when a midi region trim alters position.

- ensures gui updates correctly.

7 years agoAudio-locked midi region fixes.
nick_m [Fri, 12 Aug 2016 18:02:46 +0000 (04:02 +1000)]
Audio-locked midi region fixes.

- don't alter region frame length on tempo change or position change.

- set region _start correctly (see comments) on tempo map change.

- ensure audio-locked region's beat is set on tempo map change

7 years agoAllow negative return in TempoMap::beat_at_frame() and its exact_ variant.
nick_m [Fri, 12 Aug 2016 16:23:07 +0000 (02:23 +1000)]
Allow negative return in TempoMap::beat_at_frame() and its exact_ variant.

- audio-locked midi regions can be start-trimmed properly
  when close to 1|1|0
- a midi region placed before the first meter
  will continue the tempo curve and first meter.

Only a couple of callers require change, as bbt_at_beat() already
deals with this.

7 years agoadd nstewart to authors
Robin Gareus [Sat, 13 Aug 2016 14:12:12 +0000 (16:12 +0200)]
add nstewart to authors

7 years agoAdd "Marker Toggle" #5193
Nathan Stewart [Sat, 13 Aug 2016 14:02:43 +0000 (16:02 +0200)]
Add "Marker Toggle" #5193

7 years agoNobody expects the LV2 inquisition!
Robin Gareus [Sat, 13 Aug 2016 12:51:57 +0000 (14:51 +0200)]
Nobody expects the LV2 inquisition!

7 years agotweak strings now that 5.0 is out
Robin Gareus [Sat, 13 Aug 2016 12:51:15 +0000 (14:51 +0200)]
tweak strings now that 5.0 is out

7 years agoadd RMS region normalization option
Robin Gareus [Sat, 13 Aug 2016 12:50:59 +0000 (14:50 +0200)]
add RMS region normalization option

7 years agoAnother step towards gcc-ABI detection when installing as root
Robin Gareus [Fri, 12 Aug 2016 22:31:56 +0000 (00:31 +0200)]
Another step towards gcc-ABI detection when installing as root

makeself extracts the file with owner-only access.
When the installer itself runs as root, NORM_USER won't be able to
call the abi-test tool.

7 years agorevert 388a8fc9; prefer gcc4 if we can't determine the ABI
Robin Gareus [Fri, 12 Aug 2016 20:21:29 +0000 (22:21 +0200)]
revert 388a8fc9; prefer gcc4 if we can't determine the ABI

7 years agocheck for null pointer in Locations::remove()
Paul Davis [Fri, 12 Aug 2016 16:48:29 +0000 (12:48 -0400)]
check for null pointer in Locations::remove()

7 years agofix path to glibmm that we check
Robin Gareus [Fri, 12 Aug 2016 11:46:17 +0000 (13:46 +0200)]
fix path to glibmm that we check

libglibmm-2.4.so comes with the -dev package
libglibmm-2.4.so.1 is the actual library

7 years agoallow to manually override gcc ABI selection in the installer
Robin Gareus [Fri, 12 Aug 2016 11:36:04 +0000 (13:36 +0200)]
allow to manually override gcc ABI selection in the installer

7 years agofix crash when copy'ing latent plugins 5.0
Robin Gareus [Wed, 10 Aug 2016 14:31:56 +0000 (16:31 +0200)]
fix crash when copy'ing latent plugins

7 years agoremove debug output
Paul Davis [Wed, 10 Aug 2016 01:26:22 +0000 (21:26 -0400)]
remove debug output

7 years agoremove debug output
Robin Gareus [Wed, 10 Aug 2016 01:25:25 +0000 (03:25 +0200)]
remove debug output

7 years agodon't bundle no-inst scripts
Robin Gareus [Wed, 10 Aug 2016 01:18:07 +0000 (03:18 +0200)]
don't bundle no-inst scripts

7 years agoprefix no-inst script with an underscore and skip install
Robin Gareus [Wed, 10 Aug 2016 01:12:11 +0000 (03:12 +0200)]
prefix no-inst script with an underscore and skip install

7 years agoprefix blessed scripted DSP plugins with a-*
Robin Gareus [Wed, 10 Aug 2016 01:11:49 +0000 (03:11 +0200)]
prefix blessed scripted DSP plugins with a-*

7 years agomerge source-defaults into system-config file
Robin Gareus [Tue, 9 Aug 2016 20:13:59 +0000 (22:13 +0200)]
merge source-defaults into system-config file

(generated by ./arcfg)

7 years agoclean up plugin ttls - always add semicolon for compatibility
Robin Gareus [Tue, 9 Aug 2016 20:00:29 +0000 (22:00 +0200)]
clean up plugin ttls - always add semicolon for compatibility

7 years agoFix test compilation error.
nick_m [Tue, 9 Aug 2016 17:16:49 +0000 (03:16 +1000)]
Fix test compilation error.

7 years agoBBTTest::addTest() should add a meter rather than replacing the first one.
nick_m [Tue, 9 Aug 2016 15:56:55 +0000 (01:56 +1000)]
BBTTest::addTest() should add a meter rather than replacing the first one.

7 years agoMake tempo tests use the api more correctly.
nick_m [Tue, 9 Aug 2016 15:46:05 +0000 (01:46 +1000)]
Make tempo tests use the api more correctly.

- TempoMap initially contains a tempo and meter.
  using add_tempo/meter() using the position of an
  existing section does the right thing, but prints a warning.
  Use replace_tempo/meter().

7 years agoAllow -ve framepos handling in TempoMap::framepos_plus_beats()
nick_m [Tue, 9 Aug 2016 14:48:53 +0000 (00:48 +1000)]
Allow -ve framepos handling in TempoMap::framepos_plus_beats()

- also handles frame positions previous to the initial
  meter (beat_at_frame() would return 0 in this case).

7 years agoadd plural forms for pt to gtk2_ardour/po/pt.po 5.0-rc2
Paul Davis [Tue, 9 Aug 2016 00:24:46 +0000 (20:24 -0400)]
add plural forms for pt to gtk2_ardour/po/pt.po

7 years ago(updated) pt(_BR) update for gtk2_ardour from Marcelo Teles
Paul Davis [Tue, 9 Aug 2016 00:20:45 +0000 (20:20 -0400)]
(updated) pt(_BR) update for gtk2_ardour from Marcelo Teles

7 years agoRevert "pt(_BR) update for gtk2_ardour from Marcelo Teles"
Paul Davis [Tue, 9 Aug 2016 00:19:55 +0000 (20:19 -0400)]
Revert "pt(_BR) update for gtk2_ardour from Marcelo Teles"

This reverts commit cf08eaa32d0d7b17f44cec616f3c9bb0430ba19c.

7 years agoupdated russian translation from Alexandre Prokoudine
Paul Davis [Tue, 9 Aug 2016 00:12:47 +0000 (20:12 -0400)]
updated russian translation from Alexandre Prokoudine

7 years agofix definition of PrimaryModifier for Keyboard for OS X
Paul Davis [Mon, 8 Aug 2016 21:59:11 +0000 (17:59 -0400)]
fix definition of PrimaryModifier for Keyboard for OS X

7 years agofix display of modifiers on OS X in the bindings editor
Paul Davis [Mon, 8 Aug 2016 21:47:02 +0000 (17:47 -0400)]
fix display of modifiers on OS X in the bindings editor

7 years agofix thinko that causes near duplicate menu items in group context menu when not in...
Paul Davis [Mon, 8 Aug 2016 21:20:59 +0000 (17:20 -0400)]
fix thinko that causes near duplicate menu items in group context menu when not in group tabs

7 years agofix bug when appdata.pot file cannot be regenerated
Paul Davis [Mon, 8 Aug 2016 17:51:20 +0000 (13:51 -0400)]
fix bug when appdata.pot file cannot be regenerated

7 years agoGenericUI: better popup placement for automation mode
Julien "_FrnchFrgg_" RIVAUD [Mon, 8 Aug 2016 14:33:29 +0000 (16:33 +0200)]
GenericUI: better popup placement for automation mode

7 years agoMove anchored menu placement strategy to Gtkmm2ext utils
Julien "_FrnchFrgg_" RIVAUD [Mon, 8 Aug 2016 13:35:19 +0000 (15:35 +0200)]
Move anchored menu placement strategy to Gtkmm2ext utils

So that it can be used by others.

7 years agofix race condition when dropping Ports
Paul Davis [Mon, 8 Aug 2016 13:26:50 +0000 (09:26 -0400)]
fix race condition when dropping Ports

Jack2 calls back from a notification thread and the callback (PortManager::connect_callback())
could end up holding the final reference on 1 or more ports. The ports would then be
unregistered as we leave the callback scope, which is illegal (no server calls from
a notification thread)

7 years agoadd explanatory comment
Paul Davis [Mon, 8 Aug 2016 12:26:58 +0000 (08:26 -0400)]
add explanatory comment

7 years agofix typo
Robin Gareus [Sun, 7 Aug 2016 18:29:12 +0000 (20:29 +0200)]
fix typo

7 years agoMake ArdourDisplay a subclass of ArdourDropdown
Julien "_FrnchFrgg_" RIVAUD [Sun, 7 Aug 2016 17:44:54 +0000 (19:44 +0200)]
Make ArdourDisplay a subclass of ArdourDropdown

7 years agoRemove the space for checks/radios/icons in dropdowns
Julien "_FrnchFrgg_" RIVAUD [Sun, 7 Aug 2016 16:50:17 +0000 (18:50 +0200)]
Remove the space for checks/radios/icons in dropdowns

7 years agoMake Dropdown menus at least as wide as the button
Julien "_FrnchFrgg_" RIVAUD [Sun, 7 Aug 2016 16:43:39 +0000 (18:43 +0200)]
Make Dropdown menus at least as wide as the button

7 years agoImprove placement of Dropdown popups.
Julien "_FrnchFrgg_" RIVAUD [Sun, 7 Aug 2016 15:20:43 +0000 (17:20 +0200)]
Improve placement of Dropdown popups.

When an item in the menu corresponds to the currently displayed choice,
vertically align the item with the button on menu popup.

7 years agoUse a C++ bool constant
Julien "_FrnchFrgg_" RIVAUD [Sun, 7 Aug 2016 14:17:39 +0000 (16:17 +0200)]
Use a C++ bool constant

7 years agoImprove ArdourDropdown menu position
Julien "_FrnchFrgg_" RIVAUD [Sun, 7 Aug 2016 14:14:59 +0000 (16:14 +0200)]
Improve ArdourDropdown menu position

7 years agoRemove a no longer true comment
Julien "_FrnchFrgg_" RIVAUD [Sun, 7 Aug 2016 08:00:26 +0000 (10:00 +0200)]
Remove a no longer true comment

It should have been removed as part of 539c062ed23daf308e650b5d1039384ac5a55666
(Make the configuration penalty subtler about inputs).

7 years agoadd a script to multi-split regions
Robin Gareus [Sat, 6 Aug 2016 20:14:24 +0000 (22:14 +0200)]
add a script to multi-split regions

7 years agoa few more Location related lua bindings
Robin Gareus [Sat, 6 Aug 2016 20:12:39 +0000 (22:12 +0200)]
a few more Location related lua bindings

7 years agoUse a default configuration instead of bailing out
Julien "_FrnchFrgg_" RIVAUD [Thu, 4 Aug 2016 16:03:24 +0000 (18:03 +0200)]
Use a default configuration instead of bailing out

If the script doesn't provide a dsp_ioconfig() function, or if it does
not return a table of tables, provide an empty table of table as
default, which means a single configuration with default values.

7 years agoRemove dsp_has_midi_*() in favor of dsp_ioconfig()
Julien "_FrnchFrgg_" RIVAUD [Thu, 4 Aug 2016 15:47:38 +0000 (17:47 +0200)]
Remove dsp_has_midi_*() in favor of dsp_ioconfig()

_has_midi_*put members of LuaProc will be set according to the actual
configuration chosen, for configure_io() and run() to use.

7 years agoRefuse more configs with unmatched midi in if !imprecise
Julien "_FrnchFrgg_" RIVAUD [Thu, 4 Aug 2016 11:01:28 +0000 (13:01 +0200)]
Refuse more configs with unmatched midi in if !imprecise

Since MIDI in should be

7 years agoTake midi into account for penalty computation
Julien "_FrnchFrgg_" RIVAUD [Thu, 4 Aug 2016 10:29:19 +0000 (12:29 +0200)]
Take midi into account for penalty computation

Demote configurations if they have mismatched midi in or out with the
same mechanism as for audio, but with lower coefficients so that
mismatched midi has less influence than mismatched audio in selecting
the best configuration.

POLICY CHANGE.

7 years agoRemove ad-hoc handling of possible_out == 0
Julien "_FrnchFrgg_" RIVAUD [Thu, 4 Aug 2016 08:11:21 +0000 (10:11 +0200)]
Remove ad-hoc handling of possible_out == 0

Just refuse configurations without any output at all, and let the
remaining logic take care of selecting configurations with no audio
output if they make sense and there are no better configurations.

POLICY CHANGE: configurations with no output might now be considered
even if they have audio inputs (e.g. a pure pitch detector without audio
passthrough), whereas they were skipped before.

7 years agoMake the configuration penalty subtler about inputs
Julien "_FrnchFrgg_" RIVAUD [Thu, 4 Aug 2016 07:45:33 +0000 (09:45 +0200)]
Make the configuration penalty subtler about inputs

Instead of uniformly demote configurations with a non-matching audio
input count (using a penalty offset of 1000), also grade the
impreciseness of the configuration so that those with the nearest input
count are preferred. As for outputs, give a slightly higher handicap to
configuration with too many inputs with regard to the actual audio
inputs that can be fed to the plugin.

POLICY CHANGE: when only imprecise configurations are found the actually
selected one can be different (better) than before this commit.

7 years agoRemove ad-hoc handling of possible_in == 0
Julien "_FrnchFrgg_" RIVAUD [Wed, 3 Aug 2016 21:28:09 +0000 (23:28 +0200)]
Remove ad-hoc handling of possible_in == 0

Just make the code responsible for possible_in > 0 also handle
possible_in == 0 since it nearly does the same thing.

The only difference is that the possible_in == 0 case didn't check at
all for audio_in, essentially acting as if possible_in was audio_in.
There is thus a small POLICY CHANGE, but the selected configuration will
stay the same unless a better matching configuration is available.

7 years agoChange column width in macros
Julien "_FrnchFrgg_" RIVAUD [Thu, 4 Aug 2016 07:40:16 +0000 (09:40 +0200)]
Change column width in macros

7 years agoSet \midi_out when selecting a configuration...
Julien "_FrnchFrgg_" RIVAUD [Wed, 3 Aug 2016 15:18:22 +0000 (17:18 +0200)]
Set \midi_out when selecting a configuration...

...instead of at the very beginning, so that it can depend on the loop
iteration.

7 years agoMerge pass 2 (imprecise) into pass 1
Julien "_FrnchFrgg_" RIVAUD [Wed, 3 Aug 2016 14:28:08 +0000 (16:28 +0200)]
Merge pass 2 (imprecise) into pass 1

Still no policy change, since when a configuration is chosen that would
have belonged to the second pass, then its penalty will be increased by
1000 and it will be selected only as last recourse.