I did some editing in a Mag/Gen~ plugin .ttl file . Ok to get switches from knobs (adding lv2:portProperty lv2:integer, lv2:toggled) , but two problems trying editing time properties:
- I’d like to be able to get the host/mod tempo controlling the BPM
Here is the original port :
lv2:port [
a lv2:InputPort, lv2:ControlPort ;
lv2:index 4 ;
lv2:name “BPM” ;
lv2:symbol “BPM” ;
lv2:default 120.000000 ;
lv2:minimum 40.000000 ;
lv2:maximum 200.000000 ;
And here is what I did try without success:
lv2:port [
a lv2:InputPort, lv2:ControlPort ;
lv2:index 4 ;
lv2:name “BPM” ;
lv2:symbol “BPM” ;
lv2:default 120.000000 ;
lv2:minimum 40.000000 ;
lv2:maximum 200.000000 ;
units:unit units:bpm ;
lv2:portProperty mod:tempoRelatedDynamicScalePoints;
or this,
lv2:portProperty http://moddevices.com/ns/mod#tempoRelatedDynamicScalePoints ;
according to this post Tap tempo for Max/gen~ - #4 by falkTX
- I’d like to have a selector switch for the tempo divisions
Here is the original port :
a lv2:InputPort, lv2:ControlPort ;
lv2:index 5 ;
lv2:name “Div_L” ;
lv2:symbol “Div_L” ;
lv2:default 2.000000 ;
lv2:minimum 1.000000 ;
lv2:maximum 5.000000 ;
And the modification:
a lv2:InputPort, lv2:ControlPort ;
lv2:index 5 ;
lv2:name “Div_L” ;
lv2:symbol “Div_L” ;
lv2:default 2.000000 ;
lv2:minimum 1.000000 ;
lv2:maximum 5.000000 ;
lv2:portProperty lv2:enumeration, lv2:integer ;
lv2:scalePoint [
rdf:value 1 ;
rdfs:label “1/4” ;
rdfs:comment “Simple quarter notes.” ;
], [
rdf:value 2 ;
rdfs:label “1/8.” ;
rdfs:comment “Triplet quarter notes.” ;
], [
rdf:value 3 ;
rdfs:label “1/4T” ;
rdfs:comment “Simple eighth notes.” ;
], [
rdf:value 4 ;
rdfs:label “1/8” ;
rdfs:comment “Dotted eighth notes.” ;
], [
rdf:value 5 ;
rdfs:label “1/8T” ;
rdfs:comment “Triplet eighth notes.” ;
], [
rdf:value 6 ;
rdfs:label “1/16” ;
rdfs:comment “Sixteenth notes.” ;
], [
rdf:value 7 ;
rdfs:label “5tuplet” ;
rdfs:comment “Simple eighth notes.” ;
], [
rdf:value 8 ;
rdfs:label “7tuplet” ;
rdfs:comment “Dotted eighth notes.” ;
], [
rdf:value 9 ;
rdfs:label “9tuplet” ;
rdfs:comment “Triplet eighth notes.” ;
], [
rdf:value 10 ;
rdfs:label “11tuplet” ;
rdfs:comment “Sixteenth notes.” ;
In both cases it doesn’t work.
Some scripting problems ?
Any help appreciated…