Thursday, 2017-10-12

*** arguy has quit IRC00:18
*** Yruama_Lairba has quit IRC01:03
*** artfwo has quit IRC01:49
*** NickSB has quit IRC02:35
*** nixlappy has quit IRC02:35
*** NickSB has joined #lv203:05
*** NickSB has quit IRC05:32
*** deva has joined #lv205:35
*** m4l3z has joined #lv206:09
*** oofus_lt has joined #lv206:13
m4l3zI can't wrap my head around the lv2 documentation, am I a lost cause ?06:38
m4l3zI 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 #lv207:35
ventosusm4l3z: do you really need a custom UI for your plugin?07:54
ventosusmost hosts give quite usuable automatic UIs for many plugins07:55
m4l3zabsolutely not but I'd enjoy learning how to make one07:55
ventosusfair enough :)07:55
ventosusI don't know of any LV2 plugin UIs based on SDL, though07:55
m4l3zbut I feel like a brainlet figuring out the API reference07:55
ventosuswhat backend does SDL draw to?07:56
ventosusGL, X11, ... ?07:56
m4l3zx11 I think ?07:56
ventosusIs your plugin just for GNU/Linux, BSD, etc? e.g. something that runs X11?07:57
m4l3zopengl and direct3D according to their website07:57
m4l3zI 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 me07:58
ventosusok, so you'll need some boilerplate to initialize opengl for an LV2 plugin UI07:58
ventosusand then call SDL within07:58
m4l3zBut when i code with sdl i don't have to use gl usually07:59
ventosussdl will call it behind the scenes, but you still have to embed it in some boilerplate08:00
m4l3zalright08:00
ventosusThere's https://drobilla.net/software/pugl, which takes care of all this08:01
m4l3zThanks I'll look into it08:03
ventosuspugl already has some boilerplate for cairo, you'd have to come up with something similar for sdl, I guess08:04
ventosusHere a dummy plugin UI which uses cairo08:04
ventosushttps://git.open-music-kontrollers.ch/lv2/canvas.lv2/tree/08:04
ventosusJust replace cairo with sdl and it may get you somewhere08:05
m4l3zi don't get why I can't just use SDL as in a standalone app08:06
m4l3zI 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 recognized08:07
ventosusSome hosts embed plugin UIs in their toolkits (for whathever reason)08:07
ventosusThis needs to be taken care of, and pugl^ does everything for you08:08
m4l3zthanks for the link08:08
m4l3zI feel like it's a lot of code for such a simple task08:08
ventosusthis won't work, you need the give the X11 window ID back to the host, so it can be embedded08:09
ventosuswriting plugin UIs is a pita :)08:09
ventosusthere are ways around embedding, e.g. spawning external windows as you'd like, but it is generally discouraged08:11
m4l3za pita ?08:11
m4l3zlol08:11
m4l3zoh i get it08:11
m4l3zdamn it's hard indeed08:12
m4l3zI might not be up to the task yet and I don't want to copy paste code until it works08:12
m4l3zThanks for all the info ventosus08:12
m4l3zi wish there were more tutos out there08:12
ventosusm4l3z: y/w08:14
ventosuspita = pain in the ass08:14
*** m4l3z has quit IRC08:39
*** m4l3z has joined #lv210:09
*** nixlappy has joined #lv210:21
*** arguy has joined #lv211:42
*** artfwo has joined #lv211:52
*** m4l3z has quit IRC12:47
*** yann-kaelig has joined #lv212:49
*** NickSB has joined #lv214:45
*** nixlappy has quit IRC14:48
*** deva_ has joined #lv215:30
*** rncbc has joined #lv215:44
*** sigma6 has quit IRC16:08
*** JaVelDa has joined #lv216:10
*** nixlappy has joined #lv217:49
*** rncbc has quit IRC17:59
*** oofus_lt has quit IRC17:59
*** JaVelDa has left #lv218:04
*** deva_ has quit IRC19:39
*** yann-kaelig has quit IRC23:36

Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!