diff --git a/CMakeLists.txt b/CMakeLists.txt index d3f055e..e39a277 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,9 @@ add_custom_target(copy_binaries ALL DEPENDS neural_amp_modeler ) +file(COPY resources/modgui.ttl DESTINATION neural_amp_modeler.lv2) +file(COPY resources/modgui DESTINATION neural_amp_modeler.lv2) + configure_file(resources/manifest.ttl.in neural_amp_modeler.lv2/manifest.ttl) configure_file(resources/neural_amp_modeler.ttl.in neural_amp_modeler.lv2/neural_amp_modeler.ttl) diff --git a/resources/manifest.ttl.in b/resources/manifest.ttl.in index b16a7e8..bb832b0 100644 --- a/resources/manifest.ttl.in +++ b/resources/manifest.ttl.in @@ -5,4 +5,4 @@ <@NAM_LV2_ID@> a lv2:Plugin; lv2:binary ; - rdfs:seeAlso . + rdfs:seeAlso ,. diff --git a/resources/modgui.ttl b/resources/modgui.ttl new file mode 100644 index 0000000..360d26f --- /dev/null +++ b/resources/modgui.ttl @@ -0,0 +1,21 @@ +@prefix modgui: . +@prefix lv2: . + + + modgui:gui [ + modgui:resourcesDirectory ; + modgui:iconTemplate ; + modgui:stylesheet ; + modgui:screenshot ; + modgui:thumbnail ; + modgui:discussionURL ; + modgui:port [ + lv2:index 0; + lv2:symbol "input_level"; + lv2:name "Input Lvl"; + ], [ + lv2:index 1; + lv2:symbol "output_level"; + lv2:name "Output Lvl"; + ]; + ]. \ No newline at end of file diff --git a/resources/modgui/background.png b/resources/modgui/background.png new file mode 100644 index 0000000..344708a Binary files /dev/null and b/resources/modgui/background.png differ diff --git a/resources/modgui/bypass_off.png b/resources/modgui/bypass_off.png new file mode 100644 index 0000000..f6e1dfc Binary files /dev/null and b/resources/modgui/bypass_off.png differ diff --git a/resources/modgui/bypass_on.png b/resources/modgui/bypass_on.png new file mode 100644 index 0000000..4e8952a Binary files /dev/null and b/resources/modgui/bypass_on.png differ diff --git a/resources/modgui/icon-nam.html b/resources/modgui/icon-nam.html new file mode 100644 index 0000000..0aafb33 --- /dev/null +++ b/resources/modgui/icon-nam.html @@ -0,0 +1,45 @@ +
+
+
+ {{#controls}} +
+
{{name}}
+
+
+ {{/controls}} +
+
+ +
+
+ {{#effect.parameters}} + {{#path}} +
+
+ -- choose a NAM model -- +
+
+ {{#files}} +
{{basename}}
+ {{/files}} +
+
+ {{/path}} + {{/effect.parameters}} +
+
+
+ {{#effect.ports.audio.input}} +
+
+
+ {{/effect.ports.audio.input}} +
+
+ {{#effect.ports.audio.output}} +
+
+
+ {{/effect.ports.audio.output}} +
+
diff --git a/resources/modgui/knob.png b/resources/modgui/knob.png new file mode 100644 index 0000000..a96cbd7 Binary files /dev/null and b/resources/modgui/knob.png differ diff --git a/resources/modgui/knob.xcf b/resources/modgui/knob.xcf new file mode 100644 index 0000000..3724757 Binary files /dev/null and b/resources/modgui/knob.xcf differ diff --git a/resources/modgui/screenshot-nam.png b/resources/modgui/screenshot-nam.png new file mode 100644 index 0000000..fcdcdff Binary files /dev/null and b/resources/modgui/screenshot-nam.png differ diff --git a/resources/modgui/stylesheet-nam.css b/resources/modgui/stylesheet-nam.css new file mode 100644 index 0000000..7f9632b --- /dev/null +++ b/resources/modgui/stylesheet-nam.css @@ -0,0 +1,130 @@ +/* nam */ + +@import url(/fonts/nexa/stylesheet.css); +@import url(/fonts/questrial/stylesheet.css); + +/* = CONTAINER +================================================ */ +.mod-pedal-nam { + background-position:center center; + background-repeat:no-repeat; + /* background image is 1121 × 536*/ + background-size:560px 268px; + background-image:url(/resources/background.png{{{ns}}}); + width:560px; + height:268px; + position:absolute; + border-radius:40px; +} + +/* = BYPASS +================================================ */ +.mod-pedal-nam .mod-footswitch { + background-image:url(/resources/bypass_on.png{{{ns}}}); + background-position:center center; + background-repeat:no-repeat; + background-size:82px 47px; + width:82px; + height:47px; + top:132px; + left:235px; + cursor:pointer; + position:absolute; +} +.mod-pedal-nam .mod-footswitch.on { + background-image:url(/resources/bypass_off.png{{{ns}}}); +} + +/* = KNOBS +================================================ */ +.mod-pedal-nam .mod-control-group { + z-index:30; + position:relative; + margin:0px; + padding:0px; + display:inline; +} + +.mod-pedal-nam .group1 { + top:86px; + left:22px; +} + +.mod-pedal-nam .group2 { + top:107px; + left:78px; +} + +.mod-pedal-nam .mod-control-group .mod-knob .mod-knob-title { + text-align: center; + color:white; +} + +.mod-pedal-nam .mod-control-group .mod-knob { + overflow:hidden; + position:relative; + display:inline-block; +} + +.mod-pedal-nam .mod-control-group .mod-knob:first-child { + margin-left: 0px; +} + +.mod-pedal-nam .mod-control-group .mod-knob:last-child { + margin-left: 315px; +} + +.mod-pedal-nam .mod-control-group .mod-knob .mod-knob-image { + background-image:url(/resources/knob.png{{{ns}}}); + background-position:left center; + background-repeat:no-repeat; + background-size:5000px 100px; + height:100px; + width:100px; + cursor:pointer; +} + +.mod-pedal-nam .mod-enumerated { + position: relative; + font-weight: bold; + cursor: pointer; + color: white; +} + +.mod-pedal-nam .mod-enumerated .mod-enumerated-selected { + padding-left: 5px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + background-color: transparent; + color: white; + display: block; +} + +/* THE LIST OF OPTIONS */ +.mod-pedal-nam .mod-enumerated .mod-enumerated-list { + background: black; + display: none; + overflow: auto; + position: absolute; + padding: 0; + width: 405px; + height: 220px; + border: 2px solid #333; +} + +.mod-pedal-nam .mod-enumerated .mod-enumerated-list > div { + padding: 3px 5px; +} + +.mod-pedal-nam .mod-enumerated .mod-enumerated-list > div.selected { + background: #333; +} + +.mod-pedal-nam .mod-enumerated .mod-enumerated-list > div:hover { + background: #222; +} + +.mod-pedal-nam .mod-enumerated .mod-enumerated-list > div.selected:hover { + background: #555; +} diff --git a/resources/modgui/thumbnail-nam.png b/resources/modgui/thumbnail-nam.png new file mode 100644 index 0000000..3e579bf Binary files /dev/null and b/resources/modgui/thumbnail-nam.png differ