View Issue Details

IDCategoryLast Update
0008849features2022-01-04 14:23
ReportertimetreAssigned To 
ReproducibilityN/A 
Status newResolutionopen 
Product Version6.9 
Fixed in Version 
Summary0008849: Allow more than 32 Editor Action Scripts
DescriptionToday, 32 Editor Action Scripts can be registered to allow triggering LUA scripts.
While this is more than reasonable when these actions are triggered via the UI/keyboard, the fact that these actions can also be triggered via OSC offers HUGE possibilities to optimize one's workflow and I find myself having reached that 32 limit already.

If this is an arbitrary limitation, could it be increased to something like 64 or 128 to allow for headroom ?
Of course their OSC exposition counterpart should also be ensured.
TagsLua, osc, script

Activities

timetre

2022-01-04 08:40

reporter   ~0026288

Note that this limitation could be less of an issue if Editor Actions could receive parameters, say an int or float
Could be that when invoked via button or keyboard the parameter is not passed but invoking via OSC, the parameter could be passed. This would allow to use a single script/EditorAction for multiple things.

Sounds more complicated, not aligned with the philosophy of EditorActions etc ...; so probably a stupid idea but I thought I'd mention it anyway ;-)

x42

2022-01-04 14:23

administrator   ~0026289

Yes, it is mostly arbitrary. Since actions which are usually bound to keyboard shortcuts, 32 seemed plenty.

If you compile Ardour from source, you can increase it already:

#define MAX_LUA_ACTION_SCRIPTS 32

in gtk2_ardour/ardour_ui.h
https://github.com/Ardour/ardour/blob/547465e1fa1498b1ecd656b35bd2edcea6cc3bbe/gtk2_ardour/ardour_ui.h#L193-L194

Issue History

Date Modified Username Field Change
2022-01-04 08:23 timetre New Issue
2022-01-04 08:23 timetre Tag Attached: Lua
2022-01-04 08:23 timetre Tag Attached: osc
2022-01-04 08:23 timetre Tag Attached: script
2022-01-04 08:40 timetre Note Added: 0026288
2022-01-04 14:23 x42 Note Added: 0026289