diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2021-03-28 17:27:31 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2021-03-28 17:27:31 +0200 |
commit | b5e03fb5f6a82d3187c7705559dba91c4ce7dada (patch) | |
tree | f76e1853521d14a8dbdcd38f850d2d80dcedcac1 /plugins/LV2/lib/makeplugin/plugin_description_template.rb | |
parent | ecce2bc5147fc4fcea38cc70c497a2e75a4d20f3 (diff) | |
download | airwindows-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/lib/makeplugin/plugin_description_template.rb')
-rw-r--r-- | plugins/LV2/lib/makeplugin/plugin_description_template.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/LV2/lib/makeplugin/plugin_description_template.rb b/plugins/LV2/lib/makeplugin/plugin_description_template.rb index 3b990b2..13857b8 100644 --- a/plugins/LV2/lib/makeplugin/plugin_description_template.rb +++ b/plugins/LV2/lib/makeplugin/plugin_description_template.rb @@ -41,10 +41,11 @@ module MakePlugin private def make_ctrl_port(n, ctrl_port) + puts "Adding ctrl port #{n}, #{ctrl_port.inspect}." %Q{ a lv2:InputPort , lv2:ControlPort ; lv2:index #{n} ; - lv2:symbol "#{ctrl_port[:sym]}" ; - lv2:name "#{ctrl_port[:name]}" ; + lv2:symbol "#{ctrl_port[1][:sym]}" ; + lv2:name "#{ctrl_port[1][:name]}" ; lv2:default 0.5 ; lv2:minimum 0.0 ; lv2:maximum 1.0 ;} |