You are here

Samples index params mapping.

Hello, i am working to a port of this plugin for patchbox modep. here i cannot have qt gui so each parameter has to be specified with lv2 parameter.
Looking to an example of a preset configuration i found that harmonics values are specified as follows.

<!DOCTYPE padthv1>
<preset name="Starter01" version="0.8.4.4git.c68291">
<samples>
<sample nh="19" index="1">
<items>
<item index="0">1</item>
<item index="1">0</item>
<item index="2">0.48913</item>
<item index="3">0</item>
<item index="4">0.402174</item>
<item index="5">0</item>
<item index="6">0.173913</item>
<item index="7">0</item>
<item index="8">0.076087</item>
<item index="9">0</item>
<item index="10">0</item>
<item index="11">0</item>
<item index="12">0</item>
<item index="13">0</item>
<item index="14">0</item>
<item index="15">0</item>
<item index="16">0</item>
<item index="17">0</item>
<item index="18">0</item>
</items>
</sample>

However in the padthv1.ttl file there is only description for the parameter that specify how many taps are handled and not for the taps values themself

], [
a lv2:InputPort, lv2:ControlPort ;
lv2:index 9 ;
lv2:symbol "GEN1_NH1" ;
lv2:name "GEN1 Nh 1" ;
lv2:default 32.0 ;
lv2:minimum 2.0 ;
lv2:maximum 64.0 ;
lv2pg:group padthv1_lv2:G101_GEN1 ;
], [
.......
], [
a lv2:InputPort, lv2:ControlPort ;
lv2:index 16 ;
lv2:symbol "GEN1_NH2" ;
lv2:name "GEN1 Nh 2" ;
lv2:default 32.0 ;
lv2:minimum 2.0 ;
lv2:maximum 64.0 ;
lv2pg:group padthv1_lv2:G101_GEN1 ;
], [

So .. if i set, as in the example, GEN1_NH1 to 19 how can i refer to each specific values of the 19th taps values ?

Forums: 
rncbc's picture

So .. if i set, as in the example, GEN1_NH1 to 19 how can i refer to each specific values of the 19th taps values ?

you can't

all the nh values of each wavetable are stored on a lv2 state chunk encoded in plain xml, as above; it is NOT accessible through any parameters nor control ports. sorry.

byee

Add new comment