<div dir="ltr">Awesome, sounds great. Thanks for the links!</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 22, 2016 at 5:59 PM, Hanspeter Portner <span dir="ltr"><<a href="mailto:ventosus@airpost.net" target="_blank">ventosus@airpost.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 21.05.2016 13:23, Stefan Riha wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Great thanks, I will take a look at test_show.c next week!<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can you give some more information on what you want to accomplish?<br>
</blockquote>
<br>
I would like to make a gui in the browser. Don't know if that makes<br>
sense, it's just an experiment and I want to learn web-stuff like<br>
websockets etc. Really just a programming exercise...<br>
</blockquote>
<br></span>
In a quest of finding the more-most portable UI without any dependencies, I've already experimented with the very same (websocket + HTML + JS + JSON) for my moony plugin bundle [1], feel free to get inspired. It works quite well, btw.<br>
<br>
I've plans to make the web-ui code reusable, but want to migrate things to JSON-LD [2] first.<br>
<br>
[1] <a href="https://openmusickontrollers.github.io/lv2/moony/" rel="noreferrer" target="_blank">https://openmusickontrollers.github.io/lv2/moony/</a><br>
[2] <a href="http://json-ld.org/" rel="noreferrer" target="_blank">http://json-ld.org/</a><br>
<br>
P.s. please reply to the whole list next time, if not, others will miss part of the conversation.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On Sat, May 21, 2016 at 5:08 PM, Hanspeter Portner <<a href="mailto:ventosus@airpost.net" target="_blank">ventosus@airpost.net</a><br></span><div><div class="h5">
<mailto:<a href="mailto:ventosus@airpost.net" target="_blank">ventosus@airpost.net</a>>> wrote:<br>
<br>
    On 21.05.2016 06:23, Stefan Riha wrote:<br>
    > Hi, I'm a beginner and experimenting with lv2.<br>
<br>
    Great<br>
<br>
    > I wrote a simply synth and want a UI without Widget. On the lv2 page it says<br>
    ><br>
    >  "There is no requirement that a UI actually be a graphical widget."<br>
    >  (from: <a href="http://lv2plug.in/ns/extensions/ui/" rel="noreferrer" target="_blank">http://lv2plug.in/ns/extensions/ui/</a> ).<br>
<br>
    True, an UI can theoretically be anything.<br>
<br>
    Can you give some more information on what you want to accomplish?<br>
    You may well not need an UI in the first place (but<br>
    don't know yet, as you are a beginner).<br>
<br>
    > Below that, there is a list of subclasses of UI, but all are for widgets. So I thought I'd try ui:UI directly instead of<br>
    > ui:GtkUI etc. But neither jalv nor Ardour recognises that there is a UI.<br>
<br>
    ui:UI is the parent class which the Widget UIs (ui:GtkUI, ui:Gtk3UI,<br>
    ui:QtUI, ...) derive from. It is en empty shell<br>
    really, hosts cannot possibly know what is inside, you have to give<br>
    the host some more information.<br>
<br>
    > So I used ui:GtkUI instead. In jalv, this yields error messages of type Gtk-CRITICAL. Obviously it's because there is no<br>
    > actual widget. In Ardour, I can see that the UI is instantiated() and immediately cleanedup(), probably because the Gtk<br>
    > errors are handled that way.<br>
<br>
    If you define the UI as an ui:GtkUI, but do not return a valid<br>
    GtkWidget to the host, sure this raises an error.<br>
<br>
    > How do you do this?<br>
    ><br>
    > I looked for hours for some example code but couldn't find one. I stumbled across Ingen which has some form of<br>
    > web-interface (if I understood correctly) and tried to read the .ttl files, but don't understand them.<br>
<br>
    You may be looking for ui:showInterface [1] and ui:idleInterface<br>
    [2], with those you can build arbitrary<br>
    UIs.<br>
<br>
    Here [3] you can find a dummy plugin I use for testing various UIs<br>
    in my humble host.<br>
    <test_show.c> implements an as-simple-as-it-gets no-widget UI.<br>
<br>
    [1] <a href="http://lv2plug.in/ns/extensions/ui/#showInterface" rel="noreferrer" target="_blank">http://lv2plug.in/ns/extensions/ui/#showInterface</a><br>
    [2] <a href="http://lv2plug.in/ns/extensions/ui/#idleInterface" rel="noreferrer" target="_blank">http://lv2plug.in/ns/extensions/ui/#idleInterface</a><br>
    [3] <a href="https://github.com/ventosus/alluis.lv2" rel="noreferrer" target="_blank">https://github.com/ventosus/alluis.lv2</a><br>
<br>
    > Thanks a lot for your help,<br>
    > Stefan<br>
</div></div></blockquote>
</blockquote></div><br></div>