Samples index params mapping.

Forums

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 ?

Permalink

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

The content of this field is kept private and will not be shown publicly.

Markdown

  • Parses markdown and converts it to HTML.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id> <img src alt height width> <strike> <pre> <p> <br>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <b> <i> <pre> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
File attachments
Unlimited number of files can be uploaded to this field.
2 MB limit.
Allowed types: jpg jpeg gif png txt doc docx xls xlsx pdf ppt pps odt ods odp zip gz bz2 xz patch diff wav ogg flac ogv mp4 qtz.