58 lines
1.4 KiB
Turtle
58 lines
1.4 KiB
Turtle
{{~it.tibia.lv2.prefixes :p}}
|
|
@prefix {{=p.id}}: <{{=p.uri}}> .
|
|
{{~}}
|
|
|
|
{{=it.tibia.lv2.ttlURI(it.lv2.uri)}}
|
|
a lv2:Plugin ;
|
|
{{~it.lv2.types :t}}
|
|
a {{=it.tibia.lv2.ttlURI(t)}} ;
|
|
{{~}}
|
|
{{?it.lv2.project}}
|
|
lv2:project {{=it.tibia.lv2.ttlURI(it.lv2.project)}} ;
|
|
{{?}}
|
|
lv2:binary <{{=it.product.bundleName}}.so> ;
|
|
doap:name "{{=it.product.name}}" ;
|
|
lv2:minorVersion {{=/^([0-9]+)\./.exec(it.lv2.version)[1]}} ;
|
|
lv2:microVersion {{=/^[0-9]+\.([0-9]+)/.exec(it.lv2.version)[1]}} ;
|
|
lv2:optionalFeature lv2:hardRTCapable ;
|
|
lv2:port [
|
|
{{~it.tibia.lv2.ports :p:i}}
|
|
a {{?p.type == "control"}}lv2:ControlPort{{??}}{{?p.cv}}lv2:CVPort{{??}}lv2:AudioPort{{?}}{{?}} ,
|
|
{{?p.direction == "input"}}lv2:InputPort{{??}}lv2:OutputPort{{?}} ;
|
|
lv2:name "{{=p.name}}" ;
|
|
{{?"shortName" in p}}
|
|
lv2:shortName "{{=p.shortName.substring(0, 16)}}" ;
|
|
{{?}}
|
|
lv2:symbol "{{=p.symbol}}" ;
|
|
{{?"defaultValue" in p}}
|
|
lv2:default {{=p.defaultValue.toExponential()}} ;
|
|
{{?}}
|
|
{{?"minimum" in p}}
|
|
lv2:minimum {{=p.minimum.toExponential()}} ;
|
|
{{?}}
|
|
{{?"maximum" in p}}
|
|
lv2:maximum {{=p.maximum.toExponential()}} ;
|
|
{{?}}
|
|
{{?p.sidechain}}
|
|
lv2:portProperty lv2:isSideChain ;
|
|
{{?}}
|
|
{{?p.isBypass}}
|
|
lv2:designation lv2:enabled ;
|
|
{{?}}
|
|
{{?p.isLatency}}
|
|
lv2:designation lv2:latency ;
|
|
{{?}}
|
|
{{?p.toggled}}
|
|
lv2:portProperty lv2:toggled ;
|
|
{{?}}
|
|
{{?p.optional}}
|
|
lv2:portProperty lv2:connectionOptional ;
|
|
{{?}}
|
|
lv2:index {{=i}}
|
|
{{?i < it.tibia.lv2.ports.length - 1}}
|
|
] , [
|
|
{{??}}
|
|
] .
|
|
{{?}}
|
|
{{~}}
|