View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008849 | ardour | features | public | 2022-01-04 08:23 | 2022-01-04 14:23 |
Reporter | timetre | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | new | Resolution | open | ||
Product Version | 6.9 | ||||
Summary | 0008849: Allow more than 32 Editor Action Scripts | ||||
Description | Today, 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. | ||||
Tags | Lua, osc, script | ||||
|
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 ;-) |
|
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 |