diff --git a/webserver/server.py b/webserver/server.py index bffb7ef..2d5bf71 100755 --- a/webserver/server.py +++ b/webserver/server.py @@ -157,6 +157,10 @@ def build(msg): symbol = symbolify(symbol) + if buildtype == 'hvcc': + midi_in = msg.get('midi_in') + midi_out = msg.get('midi_out') + if category == '(none)': category = 'lv2:Plugin' else: @@ -286,8 +290,8 @@ def build(msg): "license": "ISC",\ "lv2_info": "{category}",\ "maker": "{brand}",\ - "midi_input": 0,\ - "midi_output": 0,\ + "midi_input": {1 if midi_in else 0},\ + "midi_output": {1 if midi_out else 0},\ "plugin_uri": "urn:hvcc:{symbol}",\ "plugin_formats ":["lv2_sep"],\ "version": "0, 0, 0"\ diff --git a/webserver/templates/builder.html b/webserver/templates/builder.html index 3d1bc03..0dc177e 100644 --- a/webserver/templates/builder.html +++ b/webserver/templates/builder.html @@ -175,6 +175,8 @@ brand: $('#brand').val(), symbol: $('#symbol').val(), category: $('#category').val(), + midi_in: $('#midi_in').is(":checked"), + midi_out: $('#midi_out').is(":checked") }; var numFilesRead = 0; for (var i=0; iPlugin settings {% endfor %} + {% if buildertype == 'hvcc' %} +
+ + +
+
+ + +
+ {% endif %}