Monday, 2014-12-08

*** edogawa has quit IRC00:04
*** NickSB2 has joined #lv202:58
*** NickSB2 has quit IRC04:26
*** velho has quit IRC07:12
*** grejppi_ has joined #lv207:51
*** edogawa_ has joined #lv208:23
*** edogawa_ is now known as edogawa08:54
*** falktx has joined #lv210:20
*** falktx has quit IRC10:29
*** NickSB2 has joined #lv211:15
*** gianMOD has joined #lv212:00
*** grejppi_ has quit IRC12:52
*** gianMOD has quit IRC13:12
*** velho has joined #lv213:36
*** NickSB2 has quit IRC13:44
*** grejppi has quit IRC14:04
*** gianMOD has joined #lv216:22
*** HarryHaaren has joined #lv216:56
*** gianMOD has quit IRC17:09
*** gianMOD has joined #lv217:20
*** gianMOD has quit IRC17:25
*** gianMOD has joined #lv217:41
*** gianMOD has quit IRC17:59
*** drobilla has quit IRC18:06
*** drobilla has joined #lv218:07
*** mlpug has joined #lv218:10
*** HarryHaaren has quit IRC18:13
*** HarryHaaren has joined #lv218:30
HarryHaarendrobilla, https://github.com/harryhaaren/pugl  there is Cairo double buffering available there. Its a small patch: but there's no option of single-buffering anymore... I don't think anybody will miss it?18:35
HarryHaarenthere are some transparency issues to discuss; when do we clear the background? Drawing transparent regions over eachother will "add-up" alpha18:36
HarryHaarenbut I'm drawing a bg rectangle using Cairo, so it doesn't affect me right now (aka hack-fixed)18:37
HarryHaarenthe pugl_cairo_test isn't affected, as no alpha is used in drawing stuff18:37
HarryHaarenthat's all for now, chat anoter time!18:37
* HarryHaaren away18:37
drobillaHarryHaaren: I guess it could be slower, but I doubt anyone will miss it18:38
drobillaWorse case, puglInitDoubleBuffering, which also applies to GL18:38
drobillaHarryHaaren: I'll check it out, thanks18:39
drobillaProbably merge that first then try to better separate the cairo/GL stuff ala earlier conversation with rgareus18:39
HarryHaarenits a single paint, so slowdown will be minimal. Cool. You're welcome18:39
rgareusHarryHaaren: does your pactch support partial exposure?  or do you always clear the whole thing?18:41
HarryHaarenright now, we're blitting the whole, just like the previous cairo implementation18:41
HarryHaarenthere's no reason why in future it can't be made to partial-blit though18:41
HarryHaarenthe framework is in place, it just needs doing18:42
rgareusHarryHaaren: I've already done that :)18:42
HarryHaarenrgareus, branch or master? your .git or merged in drobilla's master?18:42
rgareusno18:43
HarryHaarenrgareus, so are you handling things at widget-level then? RobTK i'm guessing?18:43
* HarryHaaren just built AVTK "2.0".. no partial exposure yet, but not far off either18:43
rgareusHarryHaaren: I diverged a lot of upstream pugl - or rather upstrem pugl diverged.18:43
HarryHaarenah yes, i remember that discussion18:44
HarryHaarenrgareus, double-buffering is literally a few lines: https://github.com/harryhaaren/pugl/commit/9b805430f5a5f5081be7e857bc635772cd5cd42918:44
rgareusmmap a cairo software surface to a GL texture. let GL do the double buffering.18:44
HarryHaarenthis doesn't require GL at all, Cairo -> Xlib18:44
*** NickSB2 has joined #lv218:44
rgareusHarryHaaren: you'll find that cairo_surface_create_similar performs poorly on most systems18:44
rgareussadly we're not living in an ideal world.18:45
HarryHaarenit "feels" fine here. Yeah that.18:46
HarryHaarenbut in future it could be changed to the double-buffering method you've described: and it would be transparent to the user of the PUGL API (assuming your + master gets merged somehow-eventually?)18:46
drobillaYou'll also find that GL performs poorly on many systems.  See above Re: ideal world :)18:47
rgareusHarryHaaren: yeah it it fine here on my laptop as well.  - but ask the_CLA to run it on his AMD graphics card and oofus with nvidia binary blob..18:47
HarryHaarenso right now I'm gonna focus on making shiny UI's.. and then if the problem of speed arises i'll engage then18:47
rgareusHarryHaaren: then check on a windows system (no 32bit RGBA, cairo does BitBlt)18:47
drobillaBut yeah, that.  If cairo-via-GL is a better way, easy enough.18:47
HarryHaaren"i'll burn that bridge when I get to it" ;)18:48
rgareusbut windows + GL can do ARGB3218:48
*** zth has joined #lv218:48
HarryHaarenthis can be solved in future: right now, its more important to me to make Fabla 2.0 happen18:48
rgareusyep, as long as your UI uses cairo, you'll be fine18:49
rgareuswhat's under the hood  cairo -> hardware  can change18:49
HarryHaarenyep. Awesome.18:49
* HarryHaaren back to coding stuff18:49
rgareusthe cairo guys are working on improving their 'native' surfaces18:49
bgolado you think it's a bad thing if mod-host uses jack to manage the routing between CV ports?18:51
rgareusbgola: quite the opposite18:52
rgareusbgola: in an ideal world, there'd never have been jack-midi-ports   but jack-control-ports (which could include MIDI)18:52
rgareusbgola: in your case it may even be easier to re-use audio float ports18:53
rgareus(as long as that jack is confined and a user won't be able to connect those ports to audio-out)18:54
HarryHaarendrobilla, little "warning" note that currently my Cairo stuff doesn't clean-up properly, i'm just grabbing latest git from you (which needs an <stdint.h> and some other minor fixes).. and i'll include some cleanup for the Cairo stuff too18:54
drobillaCV isn't events18:54
bgolargareus: that's the thing... for the mod hardware it is not a problem, user never touches jack connections18:55
HarryHaarennot on the MOD, but if MOD is running on desktop...18:55
drobillaWorked around to get pseudo-CV with metadata in the same way we worked around the brainded MIDI fuck-up, though18:55
bgolaHarryHaaren: exactly18:55
rgareusdrobilla: why not? semantically  N events key/value (with N <= samples-per-period) does model it best. (though audio-ports more pactical)18:56
drobillargareus: With CV metadata is sensible, though potentially dangerous since unaware clients will consider it audio18:58
drobillargareus: with MIDI it's literally MIDI.  to get anything else you have to pack other-thing in sysex18:58
drobillargareus: For CV you basically need a straight up audio buffer.  There'd be an 'event' per sample18:59
rgareususing audio-ports also has the advantage that you can connect external equipment18:59
drobillaThat's essentially what CV is.  However, yes, in the overwhelming majority of cases, events are the proper thing19:00
rgareusIFF you have a soundcard that allows to bypass the hi-pass filter.19:00
drobillaYes.  Even in LV2 a different "type" was kinda sorta a mistake, maybe, ish19:00
*** mlpug has quit IRC19:00
bgola... i suppose there is no way to tell jack not to expose a port to other clients.. apparently it's only a problem  if users try to connect cv to audio19:06
HarryHaarennope. I guess it could be included in the metadata of the port, but that API is pretty new and I don't think any connection-manager (patchage, QjackCtl etc) would understand the meta-data19:09
rgareusbgola: the most pragmatic is to name the ports "do_not_connect_manuall_or_risk_the_wrath_of_culu__CV_port-XXX"  :D19:10
drobillaPatchage (um, at least in svn, I forget if I released that) does know what they are and colour them, but makes no attempts at safety19:11
HarryHaarenah my bad drob, i'll admit i dont have latest, and I didn't test it but assumed.19:11
HarryHaarenon a side note, meta-data can be used to understand "more" about a port, but should not generally be used in the "do-less with this" way, for backwards compat with existing systems19:12
drobillaIn a patch bay it could be an option or a warning dialog or whatever19:14
drobillaBut in general, no real way of getting around it.  Jack "audio" ports exist that aren't audio19:14
*** mlpug has joined #lv219:14
drobillaIf Jack had metadata from the get go lots of things would be better, but c'est la vie19:15
bgolais this the reason jalv doesnt support cv ports?19:18
drobillaNah, I'm just lazy. :)19:27
drobillaAlthough sort of, in some sense, because they require explicit support.19:27
drobilla(I decided this was a Good Thing for the "danger" reasons, and since inputs you sometimes want to show as controls, not audio)19:27
*** HarryHaaren has quit IRC19:49
*** zth has quit IRC20:04
*** ricardocrudo has joined #lv220:06
*** mlpug has quit IRC20:59
*** ricardocrudo has quit IRC22:23
*** NickSB2 has quit IRC22:37
*** falktx has joined #lv222:43
*** falktx has quit IRC22:49
*** grejppi has joined #lv223:11
*** edogawa has quit IRC23:15

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