*** arguy has quit IRC | 00:18 | |
*** Yruama_Lairba has quit IRC | 01:03 | |
*** artfwo has quit IRC | 01:49 | |
*** NickSB has quit IRC | 02:35 | |
*** nixlappy has quit IRC | 02:35 | |
*** NickSB has joined #lv2 | 03:05 | |
*** NickSB has quit IRC | 05:32 | |
*** deva has joined #lv2 | 05:35 | |
*** m4l3z has joined #lv2 | 06:09 | |
*** oofus_lt has joined #lv2 | 06:13 | |
m4l3z | I can't wrap my head around the lv2 documentation, am I a lost cause ? | 06:38 |
---|---|---|
m4l3z | I have a plugin that does nothing, just a passthrough. Now I wanna be able to create a minimalistic GUI which plots the volume of the input as a meter. I'm not sure to understand what is the barebone of my ui.c file. I was thinking of doing the graphical part in SDL. What is the minimal code I need ? Instantiate, activate and cleanup ? Is there an example code minimal enough so I can see clearly what I need ? | 06:47 |
m4l3z | (hi btw, sorry got lost in the process) | 06:48 |
*** sigma6 has joined #lv2 | 07:35 | |
ventosus | m4l3z: do you really need a custom UI for your plugin? | 07:54 |
ventosus | most hosts give quite usuable automatic UIs for many plugins | 07:55 |
m4l3z | absolutely not but I'd enjoy learning how to make one | 07:55 |
ventosus | fair enough :) | 07:55 |
ventosus | I don't know of any LV2 plugin UIs based on SDL, though | 07:55 |
m4l3z | but I feel like a brainlet figuring out the API reference | 07:55 |
ventosus | what backend does SDL draw to? | 07:56 |
ventosus | GL, X11, ... ? | 07:56 |
m4l3z | x11 I think ? | 07:56 |
ventosus | Is your plugin just for GNU/Linux, BSD, etc? e.g. something that runs X11? | 07:57 |
m4l3z | opengl and direct3D according to their website | 07:57 |
m4l3z | I don't think this plugin will be useful but but I'll share it as a documented project to accelerate the learning of other noobs like me | 07:58 |
ventosus | ok, so you'll need some boilerplate to initialize opengl for an LV2 plugin UI | 07:58 |
ventosus | and then call SDL within | 07:58 |
m4l3z | But when i code with sdl i don't have to use gl usually | 07:59 |
ventosus | sdl will call it behind the scenes, but you still have to embed it in some boilerplate | 08:00 |
m4l3z | alright | 08:00 |
ventosus | There's https://drobilla.net/software/pugl, which takes care of all this | 08:01 |
m4l3z | Thanks I'll look into it | 08:03 |
ventosus | pugl already has some boilerplate for cairo, you'd have to come up with something similar for sdl, I guess | 08:04 |
ventosus | Here a dummy plugin UI which uses cairo | 08:04 |
ventosus | https://git.open-music-kontrollers.ch/lv2/canvas.lv2/tree/ | 08:04 |
ventosus | Just replace cairo with sdl and it may get you somewhere | 08:05 |
m4l3z | i don't get why I can't just use SDL as in a standalone app | 08:06 |
m4l3z | I created an empty window which shows when I run the ui.so but when I use a lv2 host it does not appear and doesn't seem to be recognized | 08:07 |
ventosus | Some hosts embed plugin UIs in their toolkits (for whathever reason) | 08:07 |
ventosus | This needs to be taken care of, and pugl^ does everything for you | 08:08 |
m4l3z | thanks for the link | 08:08 |
m4l3z | I feel like it's a lot of code for such a simple task | 08:08 |
ventosus | this won't work, you need the give the X11 window ID back to the host, so it can be embedded | 08:09 |
ventosus | writing plugin UIs is a pita :) | 08:09 |
ventosus | there are ways around embedding, e.g. spawning external windows as you'd like, but it is generally discouraged | 08:11 |
m4l3z | a pita ? | 08:11 |
m4l3z | lol | 08:11 |
m4l3z | oh i get it | 08:11 |
m4l3z | damn it's hard indeed | 08:12 |
m4l3z | I might not be up to the task yet and I don't want to copy paste code until it works | 08:12 |
m4l3z | Thanks for all the info ventosus | 08:12 |
m4l3z | i wish there were more tutos out there | 08:12 |
ventosus | m4l3z: y/w | 08:14 |
ventosus | pita = pain in the ass | 08:14 |
*** m4l3z has quit IRC | 08:39 | |
*** m4l3z has joined #lv2 | 10:09 | |
*** nixlappy has joined #lv2 | 10:21 | |
*** arguy has joined #lv2 | 11:42 | |
*** artfwo has joined #lv2 | 11:52 | |
*** m4l3z has quit IRC | 12:47 | |
*** yann-kaelig has joined #lv2 | 12:49 | |
*** NickSB has joined #lv2 | 14:45 | |
*** nixlappy has quit IRC | 14:48 | |
*** deva_ has joined #lv2 | 15:30 | |
*** rncbc has joined #lv2 | 15:44 | |
*** sigma6 has quit IRC | 16:08 | |
*** JaVelDa has joined #lv2 | 16:10 | |
*** nixlappy has joined #lv2 | 17:49 | |
*** rncbc has quit IRC | 17:59 | |
*** oofus_lt has quit IRC | 17:59 | |
*** JaVelDa has left #lv2 | 18:04 | |
*** deva_ has quit IRC | 19:39 | |
*** yann-kaelig has quit IRC | 23:36 |
Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!