XUiDesigner v0.5 released

Discuss anything new and newsworthy! See http://planet.linuxaudio.org and https://libreav.org/news for more Linux Audio News!

Announcements of proprietary software may fit better in the Marketplace.


Moderators: raboof, MattKingUSA, khz

User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

Re: XUiDesigner v0.5 released

Post by LinMusGuy »

Looks like the only important issue remaining now (from a users perspective) is that the GUI has to be made in one session, and nothing can be changed later on.
tramp
Established Member
Posts: 2335
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 9 times
Been thanked: 454 times

Re: XUiDesigner v0.5 released

Post by tramp »

LinMusGuy wrote: Sun Sep 04, 2022 10:06 am Looks like the only important issue remaining now (from a users perspective) is that the GUI has to be made in one session, and nothing can be changed later on.
Yes, that's stupid.
I've already implemented a format saver which save the session in json format. Only the reader is missing to implement a full session restore function.
Only, to do all the rest was fun, but writing a json reader feels like work, anytime I started with it I loos interest very fast. :oops:
On the road again.
User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

Re: XUiDesigner v0.5 released

Post by LinMusGuy »

Maybe another developer could build something that could than be added to your program? Maybe some people on GitHub are capable and willing to do so? (I'm not a developer myself.)
tramp
Established Member
Posts: 2335
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 9 times
Been thanked: 454 times

XUiDesigner v0.6 released

Post by tramp »

Thanks to the testings and feedbacks from @LinMusGuy I'm proudly present the release v0.6 of XUiDesigner:
A easy to use tool to generator/design X11 based LV2 plugins.
Beside that XUiDesigner allow to generate and install GUI's for existing LV2 plugins, it support as well to generate LV2 plugins from scratch.
Special support is implemented for FAUST dsp files, which allow you to generate a LV2 plugin with X11 based UI by just drag'n'drop a FAUST dsp file into the XUiDesigner interface. This works now as well for MIDI capable faust modules.
In any way, you don't need to interference with any of the annoying LV2 implementations. XUiDesigner handle that all for you.
The very same is true when you like to implement your own dsp (C or C++) into a LV2 plugin. You could create the GUI interface, save the plugin bundle, and implement the needed calls to init, activate and run your dsp.
This release comes with a couple of Bug-fixes and aims to be nearly stable.
Here is a introduction Wiki entry to show the first steps Wiki
Note: Please download the attached XUIDesigner_0.6.tar.gz archive, as only that contain the needed git submodule ( old long time knowing bug on github) as the other files wont be able to build XUiDesigner for you.

New in this release:
Add support for faust synth files
Implement color setting per widget
Implement preselected Save option depending on how UI is generated
Implement support for slider images
Fix generate LV2 plug for faust file with numbers in name
ColorChooser: use global ctrl key to pick color from anywere
Improve log scale controllers
Work over all warnings from -Wextra -pedantic
Switch to use old style include path for LV2.h, fix reparent image issue
Avoid moving control widgets out of visible area
Fix issue with makefile genarator
Implement option to move all controllers of same type at once
Implement option to resize all controls of same type as once
Show LV2 plugins by name instead by uri
Add option to keep aspect ratio when resize a controller
Keep Editor window centered on Designer window
Implement option to allow the use of Controller Images for all contro…
Add Turtle view window to show generated ttl file
Fix issue #9 Please define the license
Fix issue #8 Makefile doesn't respect PREFIX
Fix issue #7 clang warnings
Fix install on FreeBSD

project page:
https://github.com/brummer10/XUiDesigner

download release:
https://github.com/brummer10/XUiDesigner

Enjoy anyway.
On the road again.
tramp
Established Member
Posts: 2335
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 9 times
Been thanked: 454 times

Re: XUiDesigner v0.5 released

Post by tramp »

Coming soon: interim save format (json), to allow rework of a existing GUI
Image
On the road again.
User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

Re: XUiDesigner v0.5 released

Post by LinMusGuy »

tramp wrote: Mon Sep 05, 2022 12:25 pm Coming soon: interim save format (json), to allow rework of a existing GUI
Image
Very good! :D
User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

Re: XUiDesigner v0.5 released

Post by LinMusGuy »

Code: Select all

declare options "[nvoices:8]";
declare options "[midi:on]";
declare name "Funny Loop";

import("maths.lib");
import("filters.lib");

var1   = hslider("variation 1", 0.5, 0.1, 1, 0.001);
var2   = hslider("variation 2", 0.5, 0.1, 1, 0.001);
var3   = hslider("variation 3", 0.5, 0.1, 1, 0.001);
var    = 1000000000*hslider("variation", 0.5, 0.001, 1, 0.001);

vol    = 0.1*(hslider("volume", 0.5, 0, 1, 0.001))^2;
start  = button("gate");

linteg = _ : atan : integrator/SR : atan : _;

f1(x) = -1*var1*var*x;
f2(x) = -1*var2*var*x;
f3(x) = -1*var3*var*x;

A = _ ,0.01*start :> _ ;
B = _ : f1 : linteg : f2 : linteg : f3 : _ ;
C = A~B ;
process = C : atan : _*vol <: _,_;

When I drop the above dsp-file on XUiDesigner I get the following GUI (with a "polyphony" knob instead of a "gate" button):

polyphony.png
polyphony.png (19.71 KiB) Viewed 721 times

What's wrong here?
User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

Re: XUiDesigner v0.5 released

Post by LinMusGuy »

In Jalv the corresponding lv2 (generated with faust2lv2) looks like this:
jalv.png
jalv.png (19.55 KiB) Viewed 695 times
I haven't added any knob-images yet, so that's OK. But why is there also a slider "polyphony" here instead of a controller "gate"?
User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

Re: XUiDesigner v0.5 released

Post by LinMusGuy »

Looks like the use of the keyword "gate" is to blame. Using "start" instead of "gate" solves the problem. But then there's still a MIDI problem that probably has nothing to do with XUiDesigner so I will start another topic about that.

Edit: No need for another topic! MIDI-problem already solved by means of exporting from the online Faust IDE.
User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

Re: XUiDesigner v0.5 released

Post by LinMusGuy »

How do I remove the dark rectangular fields around the buttons?
fields.png
fields.png (211.7 KiB) Viewed 623 times
tramp
Established Member
Posts: 2335
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 9 times
Been thanked: 454 times

Re: XUiDesigner v0.5 released

Post by tramp »

LinMusGuy wrote: Sat Sep 10, 2022 10:07 pm How do I remove the dark rectangular fields around the buttons?
Those are buttons?
I guess I know what it is, I'll investigate.
On the road again.
User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

Re: XUiDesigner v0.5 released

Post by LinMusGuy »

Looks like it only happens for "button" not for "toggle button". Problem is, I don't want a "toggle button" but a "button" that only gives a 1 as long as you press it with the mouse.
tramp
Established Member
Posts: 2335
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 9 times
Been thanked: 454 times

Re: XUiDesigner v0.5 released

Post by tramp »

LinMusGuy wrote: Sun Sep 11, 2022 9:15 am Looks like it only happens for "button" not for "toggle button". Problem is, I don't want a "toggle button" but a "button" that only gives a 1 as long as you press it with the mouse.
Yes, for the toggle button I had implemented a special case when load a image to remove the button boarder frame. I've done the same now for simple button.
So, please update to get rid of the fields around buttons.

As a bonus, with this update you get the interim save format. Means, when you save a plugin, you get a json file in the top directory there. This you could load (dnd) on XUiDesigner to rework the UI. When you select save then there will be a new option (UI only) preselected, that allow to save only parts regarding to the UI (new images, the UI c-file and the json file). With this option you didn't need to select a save location as the location is the one we load the json file from.
(I hope I haven't introduced to much bugs with this new function) :lol:
On the road again.
User avatar
LinMusGuy
Established Member
Posts: 551
Joined: Wed Feb 27, 2019 9:33 pm
Has thanked: 22 times
Been thanked: 2 times

Re: XUiDesigner v0.5 released

Post by LinMusGuy »

Thanks!

The buttons have become invisible now, but apparently are still there because the labels appear when you move the mouse on the places where they are supposed to be.

However the dark rectangular field is gone... :mrgreen:

invisible.png
invisible.png (14.24 KiB) Viewed 563 times
tramp
Established Member
Posts: 2335
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 9 times
Been thanked: 454 times

Re: XUiDesigner v0.5 released

Post by tramp »

LinMusGuy wrote: Sun Sep 11, 2022 12:46 pm The buttons have become invisible now, but apparently are still there because the labels appear when you move the mouse on the places where they are supposed to be.
This is what is supposed:
Image

First one is the default button as it ever was,
second one use a horizontal sprite image with 2 sprites,
last one use a single image and the label text is removed.
On the road again.
Post Reply