Monday, 2014-08-25

*** edogawa has quit IRC00:56
*** falktx has quit IRC01:30
*** ricardocrudo has quit IRC01:44
*** ricardocrudo has joined #lv201:44
*** ricardocrudo has quit IRC03:29
*** edogawa has joined #lv207:51
*** HarryHaaren has joined #lv209:53
*** LAbot has joined #lv211:56
*** HarryHaaren has quit IRC12:00
*** HarryHaaren has joined #lv212:03
*** ricardocrudo has joined #lv213:18
*** magnetophon has joined #lv213:29
*** LAbot has joined #lv214:32
*** LAbot has joined #lv214:49
*** falktx has joined #lv215:13
*** bgola has joined #lv215:54
*** mlpug has joined #lv215:55
*** edogawa has quit IRC16:23
*** ddom has quit IRC16:23
*** edogawa has joined #lv216:26
*** zth has joined #lv216:27
*** drobilla has joined #lv217:20
*** falktx has quit IRC17:55
drobillargareus: You have keyboard input working with pugl on OSX?17:57
drobillargareus: I can't get it working for pugl_test, but maybe the app code isn't doing something it needs to (tried a bunch of stuff)17:58
* drobilla thinks it did at some point, but can't remember. None of the contributors seem to ever test pugl_test17:59
rgareusdrobilla: I'm not sure. None of my plugins uses keyboard input. (only shift+Click which is a modifier)18:15
rgareusdrobilla: ask me again in ~1h then I'll be back and near a mac.18:16
drobillargareus: k18:18
drobillargareus: Not around a Mac anymore anyway, just curious18:18
drobilla(Latest trunk didn't compile, think I screwed up a blind patch commit)18:18
*** ddom has joined #lv218:24
*** Yoda-- has joined #lv218:35
Yoda--hello, I've developped a lv2 plugin and I wonder what is the best way to build an ui (displaying booleans and floats from my plugin)18:35
Yoda--I also wonder where I can find a simple plugin ui example18:37
HarryHaarenhi Yoda--, there's a lot of different ways to build UI's, most use a toolkit of sorts (Gtk, Qt, NTK) but you can also just pure OpenGL.18:58
HarryHaarenPeronsally i'm using NTK, its a lightweight and fast toolkit. Some UI's ive done here: http://openavproductions.com/artyfx/18:58
*** falktx has joined #lv219:12
*** zth has quit IRC19:16
rgareusdrobilla: meters.lv2 (pugl) + ardour3/OSX  responds to keyboard (modifiers)19:39
Yoda--HarryHaaren, thanks, but I'm more searching for a simple toolkit that provides knobs, vu-meters and standard stuffs19:39
HarryHaarenYoda--, I've built an "AVTK" on top of NTK, which is exactly that19:40
rgareusdrobilla: the only pugl-plugin that I have that does have direct keyboard entry is setBfree. I'll compile it now19:40
HarryHaarenits not a "proper" library, buy copy-paste the code and you're 1/2 way there ;)19:40
Yoda--ok19:40
HarryHaarenYoda--, what plugin is it that you've developed?19:41
rgareusHarryHaaren: did you forget to check-in a few files?   https://github.com/harryhaaren/openAV-AVTK/tree/master/widgets only has a button19:41
rgareusHarryHaaren: though the /avtk folder is full...19:41
Yoda--I'm the creator of performous and I'm pluggin our note detection into a lv2 plugin (https://github.com/yoda-jm/pitch-detection.lv2)19:41
HarryHaarenrgareus, yeah that repo is an absolute mess, and needs some lovin'19:41
Yoda--I want to now have a visual feedback of the plugin (led indicating the note detected and a -0.5,0.5 vu-meter telling how far you are from the note19:42
rgareusYoda--: the currently most 'ready' version for Plugin UI kitchen-sink solutions are DISTRHO and JUCE.19:42
rgareusYoda--: I take it the plugin GUI will be optional (a plugin host can display a basic generic GUI as fallback)19:44
Yoda--a basic gui can provide input to a plugin, but I didn't know how to give it back to the gui19:44
rgareusYoda--: you can add control output ports.  (you need those anyway for your custom GUI to read the values)19:44
Yoda--basic gui (for example Ardour) can read control outputs ?19:45
rgareusYoda--: in the  pitch-detection.ttl    add a  Llv2:ControlPort, lv2:OutputPort;19:45
rgareusYoda--: then set  some values    in your case  LED 0,1 and  level: -0.5, 0.5.19:46
rgareusYoda--: ardour will create a 'generic' GUI  and display those numbers19:46
rgareusYoda--: or jalv.gtk for that matter, too.19:46
Yoda--ok19:46
rgareusI'm looking if I can find a simple example.19:47
Yoda--so it's a control per output ? because the code I've seen about control port you need to drain the port each time you enter the run function19:48
Yoda--so I was quite confuse19:48
rgareusYoda--:  you do need to sey the value (a float) every cycle.19:49
rgareusYoda--: there is an a possibility for more complex  - message based - communication (LV2 Atoms).19:49
Yoda--not yet (setting a value GUI -> plugin I know how to do it with a control)19:50
rgareusYoda--: But in your case two simple control ouputs are the way to go.19:50
Yoda--the other question is how do I put the value at the end of the run, I need to store it somewhere19:51
*** dharanamrs has joined #lv219:52
rgareusYoda--: in "connect_port" you get a pointer where to store the value.19:53
rgareusYoda--: I can't find a simple example just now... but19:54
rgareusYoda--: https://github.com/x42/meters.lv2/blob/master/src/meters.cc#L394   is where the value (of a meter) is assigned to an output port19:54
Yoda--ok, so I store the pointer and update the value I support19:54
rgareustriune: the ttl (of that output port is) https://github.com/x42/meters.lv2/blob/master/lv2ttl/meters.lv2.ttl.in#L3319:54
Yoda--ok, that's what I was starting to implement19:54
rgareusYoda--: for the LED, you can specify a port attribute  boolan.19:55
Yoda--ok19:55
rgareusYoda--: every run you calculate the value (or the plugin itself remembers it).  At the end of run you assign it to the output port:19:56
rgareus  *pointer_to_output_port_date = value;19:56
rgareusdrobilla: we really should have a simple example for that19:57
rgareusYoda--: for a meter, you will want to to take the max. value.  Or some value that is representative for the complete cycle.19:58
Yoda--ok19:58
Yoda--I'll implement all this and come back here if I have trouble :) thanks a lot rgareus19:58
rgareusYoda--: good luck19:58
rgareusYoda--: that sounds like a fun project19:59
rgareusYoda--: btw. not exactly the same, but  https://github.com/x42/tuna.lv2 is probably similar.19:59
rgareusYoda--: it does have a standard  lv2:OutputPort  for the level and detected frequency/Note20:00
Yoda--nice, the scale points for notes are really nice20:02
*** mlpug has quit IRC20:03
rgareusYoda--: if you compile it and have ardour around you can compare  (right click > Edit,  vs right-click Edit with generic controls)20:04
rgareusdrobilla: I cannot easily test. setBfree is a  ui:CocoaUI  liblilv/Ardour does not show it on OSX.20:18
rgareusdrobilla: meters.lv2 is an externalUI20:18
rgareusfalktx: does your carla LV2 accept keyboard entry on OSX?20:18
rgareusfalktx: that's also an external-ui#Widget  on OSX, so I expect it does, but it's QT4 and  not pugl native is it?20:20
*** HarryHaaren has quit IRC20:21
falktxrgareus: it's qt5 and it should work just like the regular app does20:22
falktxrgareus: I plan to use use to handle win32 and cocoa window embedding soon btw20:23
falktx*use juce20:23
rgareusfalktx: I still only have the old carla-native.lv2 that didn't load in the first place.  (Carla the .app works though)20:24
falktxI know, I'll build a new binary later on20:24
rgareusfalktx: drobilla asked about pugl + keyboard entry on OSX.20:24
rgareusfalktx: just before you joined this channel.20:25
falktxpugl embedding doesn't work on osx, only external UIs do20:25
falktxfor keyboard entry I guess maybe it's not getting events?20:26
rgareusAFAIK the only native pugl plugins that work on OSX are Harrison's20:26
falktxthose are external too20:26
rgareus(and meters.lv2)  both of which are external UI20:26
rgareusfalktx: mouse-events + key modifiers  work.  but I don't know about only keyboard entry.20:27
drobillargareus: simple example of control out?20:29
rgareusdrobilla: yes.20:29
rgareusdrobilla: nothing in the lv2 book it seems20:30
drobillargareus: OK.  Doesn't really matter, I'd just like pugl_test to actually work...20:30
rgareusdrobilla: pugl svn.   ./waf configure --test ; ./waf;   ./build/pugl_test20:32
rgareusdrobilla: the application is not inside a bundle. it cannot get keyfocus20:32
falktxit can if you drive the OS events20:33
rgareusdrobilla: it reacts to mouse events hover - not sure how you managed to pull this off :)20:33
* falktx has code for this20:33
rgareusthe input input focus is still on the app that was running before I launched pugl_test20:33
falktxrgareus: https://github.com/DISTRHO/DPF/blob/master/dgl/src/Window.cpp#L54720:34
rgareusfalktx: yeah. I  know.20:34
rgareusfalktx: you want a  [NSApp finishLaunching] as well. and implement becomeKeyWindow (pugl does the latter)20:36
falktxwell for now that code seems to get things working20:37
rgareusfalktx: your hack only works if  idle is the main thread of the app20:37
falktxof course20:38
drobillargareus: Really?  Being in a bundle will magically make key focus work?20:38
falktxdrobilla: yes I can confirm this too20:38
drobillainsane...20:38
falktxif the binary is in a bundle my idle code is not needed20:39
rgareusdrobilla: it's the info.plist stuff  in the bundle that tells OSX  that it's an app.. and create the event loop20:39
drobillaGuess I can make it build to a skeleton bundle easily enough, but geeze...20:39
rgareusdrobilla: by default  commands outside a bundle are assumed to be gui-less  commandline apps.20:39
rgareusdrobilla: and you need to call   [NSApp run]  or something.20:40
rgareuss/something/add a custom event loop a la falktx/20:41
drobillaWell, maybe I can get my OSX virtualbox working as a dev environment, but I should probably do countless more important things this week...20:41
falktxyeah, either run the main loop or idle for events20:41
drobillaIdle will be easier/smaller when pugl has an event struct, at least20:41
falktxplugins usually don't need this cause the host is already driving the events, but standalones do need it20:42
Yoda--rgareus, ok I've updated the repository, it's nice, but enums and boolean seems to just output [0,n] graphs, it's sad that they are not specialized20:55
rgareusYoda--: that changed in ardour git (cairocanvas branch also supports notes)  but it's not released yet.20:56
Yoda--mhhh, is the master git tree stable enough for personal use ?20:57
rgareusYoda--: try   jalv.gtk  <plugin-url>   ; that supports scale-points for sure,  not sure about boolen outputs20:57
rgareusYoda--:  there has not been any development on ardour master branch since the last release.20:57
rgareusYoda--: since march pretty much everything is in the cairocanvas branch - and yes that's even more stable -- but still has a few GUI regressions.20:58
*** dharanamrs has quit IRC21:00
falktxI've seen that ardour can do AU plugins on osx, but does it support lv2 cocoa UIs?21:05
rgareusfalktx: it uses liblilv which does not yet support cocoa UIs21:08
falktxyou mean suil?21:08
rgareusfalktx: right21:08
falktxso it won't use the already cocoa stuff already in place for AUs...?21:08
falktxalready already21:09
rgareusfalktx: ardour itself has no clue about LV2. it just delegates this stuff to liblilv for the most part. even direct interaction with libsuil is very minimal.21:10
rgareusfalktx: and AFAICT  AU plugin views are different from LV2.21:13
Yoda--gentoo's ebuild for git repository is broken on cairocanvas branch (broken on master tool), so no ardour git for me this evening21:21
*** ricardocrudo has quit IRC21:33
falktxthis is nice. ingen seems to be finally be working ok in carla21:45
falktxmy ingen is missing options feature for UIs...21:46
*** Anchakor_ has quit IRC22:11
*** Anchakor_ has joined #lv222:11
*** bgola has quit IRC22:14
*** grejppi has quit IRC22:14
*** grejppi has joined #lv222:15
*** bgola has joined #lv222:16
*** edogawa has quit IRC22:21
drobillaIf Ardour requests a CarbonUI suil will just pass through as with any other UI type22:27
drobillaBut I don't think Ardour tries22:27
drobillafalktx: What options?22:28
falktxdrobilla: options feature22:28
falktxI added them when doing the ui show extension22:29
falktxI guess I don't need to make them a dependency if the host doesn't do show-interface22:29
falktxoh wait22:31
falktxdrobilla: I use options to know the sample rate on the UI side22:31
drobillafalktx: ah.22:37
drobillaIt actually uses a common implementation of feature stuff on both UI and engine side, but sampleRate at least should be easy to just add to both (though pointless to the plugin)22:38
drobilla(Ingen's support for fancy plugin things is currently pretty limited)22:38
* falktx wants a midi-keyboard only plugin to use in ingen22:53
falktxdrobilla: with options optional :P, ingen loads dpf-based plugins http://i.imgur.com/hEAIw8a.png :)22:59
drobillafalktx: there's an old one in ll-plugins though it's probably useless these days23:02
*** magnetophon has quit IRC23:14
rgareusdrobilla: there's no suil carbon_in_carbon handler, is there?23:44
rgareusdrobilla: besides ardour is gtk2 :(23:44
rgareusdrobilla: but I think the real problem suil's ./configure does not find any suitable backends on OSX.23:45
rgareusdrobilla: it finds gtk+-2.0 but not gtk+-x11-2.023:46
rgareusit shoudl also check for gtk+-quartz-2.023:48
rgareusfalktx: does the cat still run and scratch herself in Nekobi's header?23:51
rgareusfalktx: does that work in ingen?23:51
falktxrgareus: yes. the cat is animated23:53

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