<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Am 16.03.2013 15:28, schrieb Harry van Haaren:
    <blockquote
cite="mid:CAKudYbPdDZwcdiPxh6E1-f0+f0tMe-gR7iEjdfat2wOG_WuVRA@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">On Sat, Mar 16, 2013 at 12:08 PM, hermann
        meyer <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:brummer-@web.de" target="_blank">brummer-@web.de</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          Is there somewhere a simple example of how to use the state
          extension to save and restore port values?<br>
        </blockquote>
        <div><br>
          The docs are awesome for state. It provides a minimal C
          function that does what it should.<br>
          All you need to do with it is replace the the URI's and data.<br>
          <a moz-do-not-send="true"
            href="http://lv2plug.in/ns/ext/state/">http://lv2plug.in/ns/ext/state/</a><br>
          <br>
          I have some example code if you wish, but those docs are
          better :)<br>
          HTH, -Harry<br>
        </div>
      </div>
    </blockquote>
    Hi Harry<br>
    <br>
    Well I have found this docs, but they didn't help me. <br>
    If you could provide example code, that will be very welcome. <br>
    <br>
    I just wane save and load presets via the host, eg. ardour3. I just
    need to store simple port values, nothing to add from the plug
    internal, so just the values the host have already. <br>
    Unfortunately ardour3 save only garbage (for my plug) when I save a
    preset in it. Some values get restored when loaded, but just some.
    The preset file which ardour3 produce isn't in a human readable
    format, like those produced for calf, for example. <br>
    <br>
    Here is one of those crap. <br>
    <br>
    greets<br>
    hermann<br>
    <br>
    灀敲楦⁸瑡浯›格瑴㩰⼯癬瀲畬⹧湩港⽳硥⽴瑡浯㸣⸠䀊牰晥硩氠㉶›格瑴㩰⼯癬瀲畬⹧湩港⽳癬挲牯⍥‾ਮ灀敲楦⁸獰瑥›格瑴㩰⼯癬瀲畬⹧湩港⽳硥⽴
    牰獥瑥⍳‾ਮ灀敲楦⁸摲㩦㰠瑨灴⼺眯睷眮⸳牯⽧㤱㤹〯⼲㈲爭晤猭湹慴⵸獮㸣⸠䀊牰晥硩爠晤㩳㰠瑨灴⼺眯睷眮⸳牯⽧〲〰〯⼱摲ⵦ捳敨慭㸣⸠䀊牰晥硩
    猠慴整›格瑴㩰⼯癬瀲畬⹧湩港⽳硥⽴瑳瑡⍥‾ਮ灀敲楦⁸獸㩤㰠瑨灴⼺眯睷眮⸳牯⽧〲㄰堯䱍捓敨慭㸣⸠ਊ格瑴㩰⼯畧瑩牡硩献畯捲晥牯敧渮瑥瀯畬楧獮
    术彸浡⍰啇呉剁塉琣楷㹮ऊ⁡獰瑥债敲敳⁴਻氉㉶愺灰楬獥潔㰠瑨灴⼺术極慴楲⹸潳牵散潦杲⹥敮⽴汰杵湩⽳硧慟灭䜣䥕䅔䥒㹘㬠ऊ摲獦氺扡汥∠睴湩•਻
    氉㉶瀺牯⁴ਜ਼उ癬㨲祳扭汯∠慂獳•਻उ獰瑥瘺污敵〠㔮ऊ⁝‬ਜ਼उ癬㨲祳扭汯∠慃楢敮≴㬠ऊ瀉敳㩴慶畬⁥㤱㤮㤸ㄷ㜱ਸ਼崉Ⱐ嬠ऊ氉㉶猺浹潢䐢獩潴瑲
    潩≮㬠ऊ瀉敳㩴慶畬⁥㐶㌮㘸㌷〴਱崉Ⱐ嬠ऊ氉㉶猺浹潢䐢楲敶•਻उ獰瑥瘺污敵〠㘮㠸㘵㄰ਹ崉Ⱐ嬠ऊ氉㉶猺浹潢䴢獡整䝲楡≮㬠ऊ瀉敳㩴慶畬⁥㔭
    ㈮㜴㌴ㄳਹ崉Ⱐ嬠ऊ氉㉶猺浹潢䴢摩汤≥㬠ऊ瀉敳㩴慶畬⁥⸰ਵ崉Ⱐ嬠ऊ氉㉶猺浹潢倢敲慇湩•਻उ獰瑥瘺污敵㔠㘮㤴㜴㐸਴崉Ⱐ嬠ऊ氉㉶猺浹潢倢
    敲敳据≥㬠ऊ瀉敳㩴慶畬⁥㤀㈮㠶㐰㐵ਲ਼崉Ⱐ嬠ऊ氉㉶猺浹潢吢敲汢≥㬠ऊ瀉敳㩴慶畬⁥⸰ਵ崉Ⱐ嬠ऊ氉㉶猺浹潢挢浟摯汥•਻उ獰瑥瘺污敵㘠〮
    ऊ⁝‬ਜ਼उ癬㨲祳扭汯∠潭敤≬㬠ऊ瀉敳㩴慶畬⁥⸰ਰ崉Ⱐ嬠ऊ氉㉶猺浹潢琢浟摯汥•਻उ獰瑥瘺污敵㈠〮ऊ⁝ਮ<br>
    <br>
    <br>
    <br>
      <br>
  </body>
</html>