Friday, 2015-09-11

*** curlymorphic has joined #lv200:28
rgareusdrobilla: just fixed http://dev.drobilla.net/ticket/1080 (patch attached there)00:32
rgareusdrobilla: the X11-center/resize fix is https://paste.debian.net/311272/00:33
rgareusdrobilla: I didn't yet open a bug report for the X11-resize (well falktx who asked for it didn't :).  can you take it from here?00:34
*** curlymorphic has quit IRC01:11
*** NickSB2 has quit IRC01:45
*** tytel has joined #lv202:04
*** frinknet has quit IRC02:09
*** frinknet has joined #lv202:13
*** frinknet has quit IRC02:19
*** tytel has quit IRC02:46
*** tytel has joined #lv202:47
*** tytel has joined #lv202:47
*** edogawa has joined #lv205:15
*** curlymorphic has joined #lv206:28
*** curlymorphic has quit IRC06:30
*** tytel has quit IRC07:08
*** tytel has joined #lv207:08
*** tytel has quit IRC07:33
*** tytel has joined #lv207:38
*** mlpug has joined #lv207:56
*** sigma6 has joined #lv208:24
*** ventosus has joined #lv208:44
*** ricardocrudo has joined #lv208:45
*** falktx has joined #lv208:51
*** ventosus has quit IRC10:18
*** NickSB2 has joined #lv210:30
*** mlpug has quit IRC10:46
*** ventosus has joined #lv211:50
rgareusdrobilla, falktx: http://dev.drobilla.net/ticket/108511:54
rgareusshould probably be "minor" sorry, I just left the default.11:55
drobillargareus: thanks13:40
rgareusdrobilla: y/w13:41
*** ventosus has left #lv213:43
*** NickSB2 has quit IRC14:05
*** frinknet has joined #lv215:04
*** ventosus has joined #lv215:10
*** frinknet has quit IRC15:27
*** son0p has quit IRC15:28
*** NickSB2 has joined #lv216:18
*** sigma6 has quit IRC16:40
*** tytel has joined #lv216:42
*** LAbot has joined #lv217:31
*** falktx has quit IRC17:55
*** rncbc has joined #lv218:14
*** HarryHaaren has joined #lv218:15
*** NickSB2 has quit IRC18:21
*** ricardocrudo has quit IRC18:49
drobillargareus: WWhat if the X11 UI resizes itself?19:00
rgareusdrobilla: using the resize-extension?19:02
* HarryHaaren has been reading discussions, nothing to contribute, so have been quiet as a mouse.19:03
rgareusHarryHaaren: while you're here.. I tried to test with your plugins (they're usually small)19:04
rgareusHarryHaaren: but you do not return a X11 Window ID19:04
rgareusHarryHaaren: openAV-ArtyFX  filta/gui/ui.cxx  says it's an X11UI but sets  LV2UI_Widget * widget  to some Widget::Widget (FLTK thingy)C[C[C[C[C[C[C19:06
rgareusHarryHaaren: it should really return a X11 Window19:06
drobillargareus: I guess so, which means the host does something, but.. just wondering19:07
drobillaI will probably just blindly apply this regardless, but manually ramming the X11 window to the center of the parent seems messy and I assume basically anything changing size is going to screw it up completely19:07
*** HarryHaaren has quit IRC19:07
rgareusdrobilla: I'll test in a minute19:07
rgareusdrobilla: meters.lv2 can be compiled as X11UI and they can resize themselves19:08
*** HarryHaaren has joined #lv219:08
rgareusdrobilla: without resize-extension the "plugged" window resizes. the container does not.19:09
* HarryHaaren hates when his battery dies mid-convo19:09
rgareusdrobilla: it's cropped in this case19:09
HarryHaarenah just caught the not return X11 Window ID, was there more?19:09
drobillaHarryHaaren: How goes AVTK2 anyway?19:10
rgareusHarryHaaren: http://pastebin.com/bkqTjZak19:10
drobilla... how could returning an FLTK pointer as an X11 handle not have made anything and everything blow up catastrophically?19:10
drobillargareus: Propagating that change magically up through Gtk sure would be nice, but never figured that one out19:11
rgareusdrobilla: suil detects it' not a valid X11 window and does nothing.  FLTK does some magic19:11
rncbcrgareus, drobilla: because suil takes care of it19:11
drobillaI don't think resize extension is really a thing that should exist19:11
rgareusdrobilla: x_window_is_valid() fails for harry's openAV-ArtyFX19:12
rgareusHarryHaaren: https://github.com/harryhaaren/openAV-ArtyFX/blob/master/filta/gui/ui.cxx#L8219:12
rncbcrgareus, drobilla: i mean, suil x11_in_whatever will convert it to a whatever widget19:12
drobillaBut........... it's not an X11 window19:13
rgareusrncbc: yeah the host is fine with it.  but passing events around fails19:13
rncbcrgareus: events from who and to whom?19:14
drobillaI guess the host just happens to not actually use the thing, but it ends up in the parent because that is passed19:14
HarryHaarenrgareus, i'm not looking at the details right now, thanks for pointing it out - honestly, it works and I was happy.19:14
HarryHaarenRight now I'm working on AVTK, and have ArtyFX ported to that, which is PUGL based, so I presume it gets it right..19:14
HarryHaaren;)19:14
rgareusdrobilla: it's a magic FLTK construct:  https://github.com/harryhaaren/openAV-ArtyFX/blob/master/filta/gui/widget.cxx#L4019:15
HarryHaarenI've been lacking time, but this evening is an OpenAV evening, I'll try push the ArtyFX based on AVTK with prio, to solve19:15
rgareusdrobilla: first thing in it:   Fl_Double_Window* o = window = new Fl_Double_Window(19:15
rncbcdrobilla, rgareus: yep, suil, takes the x11 window id from the parent, nothing else19:15
rncbcdrobilla: btw, any comment on http://dev.drobilla.net/ticket/108419:17
rncbcdrobilla: sorry for poking again :)19:17
rgareushttp://dev.drobilla.net/attachment/ticket/1084/suil-0.8.3svn5719-qt5-2.patch.gz  looks funny :)19:18
* rgareus can't read gz.19:18
rncbcrgareus: yeah, i had to gzip it otherwise trac would consider it spam19:18
rgareusfalktx might have. he's one of the few waving the QT flag19:18
rgareusHarryHaaren: pugl will get it right, indeed19:20
rgareusHarryHaaren: do you know other people using NTK/FLTK for plugin GUIs like you did  that may have this issue?19:20
HarryHaarenwin. Then I just need to get my act together and release that19:20
HarryHaarenyeah the Infamous plugins IIRC19:20
HarryHaarenperhaps bsjones' PSI plugins too19:20
HarryHaareneven though I think he's moved to Juce or something since19:21
HarryHaarenso perhaps updated/backported the UI's, not sure19:21
rgareusoh dear.  infamous stuck  just uses  fl_embed( self->ui,(Window)parentXwindow);  and does not even set the widget19:22
* rgareus checks if suil initializes it with NULL19:22
HarryHaarenthere were a few approaches, none of them ideal for some reason or another IIRC19:23
rgareussurely you can get a X11 window ID out of FLTX19:23
rgareusNTK/FLTK19:23
drobillarncbc: Only made a cursory glance.  I'll apply it this weekend19:24
rgareusoh, oh.19:25
rgareusssj71: did you never have crashes with your Stuck GUI (in ardour)?19:25
rgareussuil just uses malloc()   instance->ui_widget is never initialized.  but suil uses it when sending X11 events (keyboard, resize, ..)19:26
rgareusand https://github.com/ssj71/infamousPlugins/blob/master/src/stuck/stuck_ui_main.cxx#L12  never assigns anything to https://github.com/ssj71/infamousPlugins/blob/master/src/stuck/stuck_ui_main.cxx#L1219:26
rgareusand https://github.com/ssj71/infamousPlugins/blob/master/src/stuck/stuck_ui_main.cxx#L12  never assigns anything to LV2UI_Widget * widget19:26
rgareusgranted the X11 window ID is just an integer.  and sending X11 events to some random client is OK as long as that client-ID does not exist19:27
rgareusgiven that there are usually no more than 100 active X11 clients on the chances are slim with a 32bit int.19:29
drobillaSo unbelievably sketchy :)19:32
rncbcdrobilla: thanks19:34
rgareusdrobilla: suil should use calloc, or zero-initialize the ui_widget.19:34
drobillargareus: Speaking of sketchy, manually resizing the plug's X11 window...19:35
rgareusdrobilla: or we need to track down all plugin authors and19:35
rgareusdrobilla: manual resizes (container window) works fine19:35
rgareusdrobilla: plugins that don't resize are re-centered,  others grow/shrink19:36
drobillargareus: Right, misread, you're just getting the display from that19:36
rgareusdrobilla: what is not yet done:  forward the aspect-constraints19:36
drobillargareus: Surely the UI window is already the "right" size anyway though?19:36
rgareusdrobilla: yes it is19:36
*** tytel has quit IRC19:37
rgareusall plugins that I've tested call  wrapper_resize() which calls  gtk_widget_set_size_request()19:37
rgareushence we don't need a "size-request" handler19:38
*** curlymorphic has joined #lv219:40
* drobilla wonders why trac doesn't follow lad commits anymore19:42
drobillaSigh.  So tired of dealing with Trac, but lack any better options19:42
drobillargareus: http://dev.drobilla.net/changeset/572319:44
*** rncbc is now known as rncbc|AFK19:47
*** flexus has joined #lv219:53
HarryHaarendrobilla, do you know patchwork? I've only heard about it recently through work. Its pretty ok. No commenting feature built-in, ML parsing only20:06
HarryHaarenhttp://jk.ozlabs.org/projects/patchwork/20:07
*** nicksb2 has joined #lv220:09
drobillaA mail backed or git backed thing would certainly be nice, but seems this only does patches, not tickets20:13
drobillaThere's debbugs but setting that up doesn't look particularly fun20:14
HarryHaarenno bugtracker integrated no... perhaps a neat feature, instead of [PATCH] do [BUG] and have ML based bug tracking... hm. Not that it is currently capable of it :/20:15
drobillabugseverywhere is a git-backed solution, but it seems to be a bit dead now20:21
*** tytel has joined #lv220:27
*** ventosus has left #lv220:30
* drobilla finally has a controller that sends poly aftertouch20:38
*** rncbc|AFK is now known as rncbc20:39
drobillaGreat fun.  Now to build some Ingen patches...20:39
drobillaand, y'know, per-note curves in Ardour some time in 213820:39
drobillargareus: Re: http://dev.drobilla.net/attachment/ticket/1080/commit-d0ae272.diff why have a static wrapper instead of just checking for NULL?21:10
drobilla(also global variables that start with _ are naughty)21:10
rgareusdrobilla: did the time-machine I fedexed you finally arrive?21:11
rgareusdrobilla: what would be your choice of variable name in this case?21:12
drobillaIf I had a time machine proprietary audio software would be obsolete already :)21:12
drobillargareus: I dunno, suil_something_something, but my main question is why it needs to exist in the first place since a pointer is returned so a sentinel (NULL) is already available21:13
rgareusdrobilla: NULL =  no wrapper needed   .   NULL = error occured21:15
drobillaah21:16
rgareusdrobilla: you could change the API     int open_wrapper(...,   SuilWrapper* wrapper_to_return);21:16
drobillaThe no wrapper needed case should probably just be moved out of open_wrapper21:16
rgareusdrobilla: indeed.  apart from that all other NULLs are errors21:30
rgareusdrobilla: that's a much better solution.21:31
rgareusmmh !container_type_uri  is also an error, is it not?21:31
*** tytel has quit IRC21:32
drobillaYes, but required parameter from caller21:32
*** tytel has joined #lv221:33
drobillaodd check indeed21:33
drobillaI guess that could be useful as a way to use suil for convenience but just get the unwrapped handle21:34
*** nicksb2 has quit IRC21:35
drobillaTimestamps in NEWS files are starting to get embarrassing, I need to make releases...21:38
*** ricardocrudo has joined #lv221:50
* drobilla debates trying to figure out all this modern fancy GLSL business to draw a grid, or just stick with cairo and call it a day21:51
rgareusdrobilla: for what?  not all machines support all of GLSL, esp when you want antialiasing etc.22:04
* drobilla shrugs22:06
drobillaBecause that's how things are done these days and stuff?22:06
drobillaPlus rounded anti-aliased rectangles don't seem like a thing you can really do with old GL anyway22:07
HarryHaarenGLSL is "too new" for actually using as a cross-platform old-machine-compatible tech22:07
* HarryHaaren investigated when doing Avtk22:07
rgareusyeah that's why I asked "for what?"22:10
rgareussome small private project -> cool22:10
rgareusnew LV2 plugin -> better not22:10
HarryHaarenyep.22:11
*** ricardocrudo has quit IRC22:12
HarryHaarenI would like to have a teensy small bezier-drawing lib, that operates on GL with antialiasing, that would remove cairo as a dep from AVTK, and make it PUGL, <GL aa drawing lib name>, and AVTK only22:12
HarryHaarenall source included, no external deps bar platform backend22:12
* HarryHaaren dreams22:12
drobillaText being a PITA will probably cure me of that urge anyway22:12
drobillaThough I'm generally more inclined to shoot for modern, shiny, and portable (including to mobile) than crusty old UNIX machines these days22:13
drobillaThis whole ultra nichey irrelevance thing is getting pretty blatantly unsustainable for me22:13
drobillaThis just happens to be a very simple static UI where tinkering with that seems reasonable22:14
HarryHaarenI was intending on manually drawing a font with beziers, removing all font handling away from fontconfig etc too22:17
HarryHaarenand caching it at various sizes / levels of AA if needed22:17
HarryHaarenbla bla, premature optimization etc :)22:17
drobillalol.22:18
drobillaI can think of very few wheels one should reinvent *less* than drawing text22:19
* HarryHaaren might do a plugin spec after doing text ;)22:23
drobillaIn vaguely related news, this makes me wonder how a grid "UI plugin" might talk to the world in something like Ingen22:26
HarryHaarenyou're thinking about "canvassing" a UI over an existing graph right? I don't see the use case of eg Roomy needing to understand the Ingen graph..22:29
*** nicksb2 has joined #lv222:29
drobillaNo.  Literally a plugin that's a grid22:29
drobillaA software launchpad/monome/whatever, essentially22:30
drobillaIn some hypothetical future where you could actually 'program' with atoms in Ingen and build stuff, like one might with Max and so on22:30
*** tytel_ has joined #lv222:31
*** tytel has quit IRC22:31
HarryHaarenaaaah ok, nice yeah gotcha now22:31
drobilla(triggered by reviving my step sequencer now that I have a Launchpad again)22:33
*** nicksb2 has quit IRC22:33
HarryHaarencool22:35
HarryHaarenthat'd be real cool actually, the Akai APC grid controller i have has been wired up to Buska (OpenAV looping project) and some steps squencing going on, fun22:36
*** rncbc has quit IRC22:38
drobillaIndeed.22:49
drobillaUltimately I want to use this thing as a control center for everything, so I'm not sure how an independent step sequencer will fit in to all that (maybe switching in software), but I'll revive that thing and get it working solidly at least22:49
drobilla8x8 sucks for sequencing but what can you do...22:50
HarryHaaren8x5 sucks more :/22:50
HarryHaaren32 step 8x4 with one line of 8 "random function" buttons it is then22:50
HarryHaarenanyways, have fun with it, I'll keep you in the loop if I get anything funky going with it22:51
* HarryHaaren notes its almost 12 here, bedtime. Laters guys22:51
*** HarryHaaren has quit IRC22:54
*** tytel_ has quit IRC23:00
*** edogawa has quit IRC23:16
*** flexus has quit IRC23:28
*** tytel has joined #lv223:45

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