aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LV2/makeplugin
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-03-28 17:27:31 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-03-28 17:27:31 +0200
commitb5e03fb5f6a82d3187c7705559dba91c4ce7dada (patch)
treef76e1853521d14a8dbdcd38f850d2d80dcedcac1 /plugins/LV2/makeplugin
parentecce2bc5147fc4fcea38cc70c497a2e75a4d20f3 (diff)
downloadairwindows-lv2-port-b5e03fb5f6a82d3187c7705559dba91c4ce7dada.tar.gz
airwindows-lv2-port-b5e03fb5f6a82d3187c7705559dba91c4ce7dada.tar.bz2
airwindows-lv2-port-b5e03fb5f6a82d3187c7705559dba91c4ce7dada.zip
LV2/makeplugin: Capture sym names for params.
Not all plugins use the symbolic names A,B,C, etc for params, so we need to capture the real names for those that don't.
Diffstat (limited to 'plugins/LV2/makeplugin')
-rwxr-xr-xplugins/LV2/makeplugin2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/LV2/makeplugin b/plugins/LV2/makeplugin
index de6aaeb..fc49385 100755
--- a/plugins/LV2/makeplugin
+++ b/plugins/LV2/makeplugin
@@ -7,7 +7,7 @@ require_relative 'lib/makeplugin/plugin_info'
def make_param_assigns(ctrl_ports)
ctrl_ports
- .map.with_index { |p, n| "#{p[:sym]} = *params[#{n}];" }
+ .map.with_index { |p, n| "#{p[1][:sym]} = *params[#{n}];" }
.join("\n ")
end