*** edogawa has quit IRC | 00:56 | |
*** falktx has quit IRC | 01:30 | |
*** ricardocrudo has quit IRC | 01:44 | |
*** ricardocrudo has joined #lv2 | 01:44 | |
*** ricardocrudo has quit IRC | 03:29 | |
*** edogawa has joined #lv2 | 07:51 | |
*** HarryHaaren has joined #lv2 | 09:53 | |
*** LAbot has joined #lv2 | 11:56 | |
*** HarryHaaren has quit IRC | 12:00 | |
*** HarryHaaren has joined #lv2 | 12:03 | |
*** ricardocrudo has joined #lv2 | 13:18 | |
*** magnetophon has joined #lv2 | 13:29 | |
*** LAbot has joined #lv2 | 14:32 | |
*** LAbot has joined #lv2 | 14:49 | |
*** falktx has joined #lv2 | 15:13 | |
*** bgola has joined #lv2 | 15:54 | |
*** mlpug has joined #lv2 | 15:55 | |
*** edogawa has quit IRC | 16:23 | |
*** ddom has quit IRC | 16:23 | |
*** edogawa has joined #lv2 | 16:26 | |
*** zth has joined #lv2 | 16:27 | |
*** drobilla has joined #lv2 | 17:20 | |
*** falktx has quit IRC | 17:55 | |
drobilla | rgareus: You have keyboard input working with pugl on OSX? | 17:57 |
---|---|---|
drobilla | rgareus: 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_test | 17:59 | |
rgareus | drobilla: I'm not sure. None of my plugins uses keyboard input. (only shift+Click which is a modifier) | 18:15 |
rgareus | drobilla: ask me again in ~1h then I'll be back and near a mac. | 18:16 |
drobilla | rgareus: k | 18:18 |
drobilla | rgareus: Not around a Mac anymore anyway, just curious | 18:18 |
drobilla | (Latest trunk didn't compile, think I screwed up a blind patch commit) | 18:18 |
*** ddom has joined #lv2 | 18:24 | |
*** Yoda-- has joined #lv2 | 18: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 example | 18:37 |
HarryHaaren | hi 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 |
HarryHaaren | Peronsally 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 #lv2 | 19:12 | |
*** zth has quit IRC | 19:16 | |
rgareus | drobilla: 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 stuffs | 19:39 |
HarryHaaren | Yoda--, I've built an "AVTK" on top of NTK, which is exactly that | 19:40 |
rgareus | drobilla: the only pugl-plugin that I have that does have direct keyboard entry is setBfree. I'll compile it now | 19:40 |
HarryHaaren | its not a "proper" library, buy copy-paste the code and you're 1/2 way there ;) | 19:40 |
Yoda-- | ok | 19:40 |
HarryHaaren | Yoda--, what plugin is it that you've developed? | 19:41 |
rgareus | HarryHaaren: did you forget to check-in a few files? https://github.com/harryhaaren/openAV-AVTK/tree/master/widgets only has a button | 19:41 |
rgareus | HarryHaaren: 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 |
HarryHaaren | rgareus, 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 note | 19:42 |
rgareus | Yoda--: the currently most 'ready' version for Plugin UI kitchen-sink solutions are DISTRHO and JUCE. | 19:42 |
rgareus | Yoda--: 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 gui | 19:44 |
rgareus | Yoda--: 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 |
rgareus | Yoda--: in the pitch-detection.ttl add a Llv2:ControlPort, lv2:OutputPort; | 19:45 |
rgareus | Yoda--: then set some values in your case LED 0,1 and level: -0.5, 0.5. | 19:46 |
rgareus | Yoda--: ardour will create a 'generic' GUI and display those numbers | 19:46 |
rgareus | Yoda--: or jalv.gtk for that matter, too. | 19:46 |
Yoda-- | ok | 19:46 |
rgareus | I'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 function | 19:48 |
Yoda-- | so I was quite confuse | 19:48 |
rgareus | Yoda--: you do need to sey the value (a float) every cycle. | 19:49 |
rgareus | Yoda--: 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 |
rgareus | Yoda--: 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 somewhere | 19:51 |
*** dharanamrs has joined #lv2 | 19:52 | |
rgareus | Yoda--: in "connect_port" you get a pointer where to store the value. | 19:53 |
rgareus | Yoda--: I can't find a simple example just now... but | 19:54 |
rgareus | Yoda--: https://github.com/x42/meters.lv2/blob/master/src/meters.cc#L394 is where the value (of a meter) is assigned to an output port | 19:54 |
Yoda-- | ok, so I store the pointer and update the value I support | 19:54 |
rgareus | triune: the ttl (of that output port is) https://github.com/x42/meters.lv2/blob/master/lv2ttl/meters.lv2.ttl.in#L33 | 19:54 |
Yoda-- | ok, that's what I was starting to implement | 19:54 |
rgareus | Yoda--: for the LED, you can specify a port attribute boolan. | 19:55 |
Yoda-- | ok | 19:55 |
rgareus | Yoda--: 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 |
rgareus | drobilla: we really should have a simple example for that | 19:57 |
rgareus | Yoda--: 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-- | ok | 19:58 |
Yoda-- | I'll implement all this and come back here if I have trouble :) thanks a lot rgareus | 19:58 |
rgareus | Yoda--: good luck | 19:58 |
rgareus | Yoda--: that sounds like a fun project | 19:59 |
rgareus | Yoda--: btw. not exactly the same, but https://github.com/x42/tuna.lv2 is probably similar. | 19:59 |
rgareus | Yoda--: it does have a standard lv2:OutputPort for the level and detected frequency/Note | 20:00 |
Yoda-- | nice, the scale points for notes are really nice | 20:02 |
*** mlpug has quit IRC | 20:03 | |
rgareus | Yoda--: if you compile it and have ardour around you can compare (right click > Edit, vs right-click Edit with generic controls) | 20:04 |
rgareus | drobilla: I cannot easily test. setBfree is a ui:CocoaUI liblilv/Ardour does not show it on OSX. | 20:18 |
rgareus | drobilla: meters.lv2 is an externalUI | 20:18 |
rgareus | falktx: does your carla LV2 accept keyboard entry on OSX? | 20:18 |
rgareus | falktx: 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 IRC | 20:21 | |
falktx | rgareus: it's qt5 and it should work just like the regular app does | 20:22 |
falktx | rgareus: I plan to use use to handle win32 and cocoa window embedding soon btw | 20:23 |
falktx | *use juce | 20:23 |
rgareus | falktx: I still only have the old carla-native.lv2 that didn't load in the first place. (Carla the .app works though) | 20:24 |
falktx | I know, I'll build a new binary later on | 20:24 |
rgareus | falktx: drobilla asked about pugl + keyboard entry on OSX. | 20:24 |
rgareus | falktx: just before you joined this channel. | 20:25 |
falktx | pugl embedding doesn't work on osx, only external UIs do | 20:25 |
falktx | for keyboard entry I guess maybe it's not getting events? | 20:26 |
rgareus | AFAIK the only native pugl plugins that work on OSX are Harrison's | 20:26 |
falktx | those are external too | 20:26 |
rgareus | (and meters.lv2) both of which are external UI | 20:26 |
rgareus | falktx: mouse-events + key modifiers work. but I don't know about only keyboard entry. | 20:27 |
drobilla | rgareus: simple example of control out? | 20:29 |
rgareus | drobilla: yes. | 20:29 |
rgareus | drobilla: nothing in the lv2 book it seems | 20:30 |
drobilla | rgareus: OK. Doesn't really matter, I'd just like pugl_test to actually work... | 20:30 |
rgareus | drobilla: pugl svn. ./waf configure --test ; ./waf; ./build/pugl_test | 20:32 |
rgareus | drobilla: the application is not inside a bundle. it cannot get keyfocus | 20:32 |
falktx | it can if you drive the OS events | 20:33 |
rgareus | drobilla: it reacts to mouse events hover - not sure how you managed to pull this off :) | 20:33 |
* falktx has code for this | 20:33 | |
rgareus | the input input focus is still on the app that was running before I launched pugl_test | 20:33 |
falktx | rgareus: https://github.com/DISTRHO/DPF/blob/master/dgl/src/Window.cpp#L547 | 20:34 |
rgareus | falktx: yeah. I know. | 20:34 |
rgareus | falktx: you want a [NSApp finishLaunching] as well. and implement becomeKeyWindow (pugl does the latter) | 20:36 |
falktx | well for now that code seems to get things working | 20:37 |
rgareus | falktx: your hack only works if idle is the main thread of the app | 20:37 |
falktx | of course | 20:38 |
drobilla | rgareus: Really? Being in a bundle will magically make key focus work? | 20:38 |
falktx | drobilla: yes I can confirm this too | 20:38 |
drobilla | insane... | 20:38 |
falktx | if the binary is in a bundle my idle code is not needed | 20:39 |
rgareus | drobilla: it's the info.plist stuff in the bundle that tells OSX that it's an app.. and create the event loop | 20:39 |
drobilla | Guess I can make it build to a skeleton bundle easily enough, but geeze... | 20:39 |
rgareus | drobilla: by default commands outside a bundle are assumed to be gui-less commandline apps. | 20:39 |
rgareus | drobilla: and you need to call [NSApp run] or something. | 20:40 |
rgareus | s/something/add a custom event loop a la falktx/ | 20:41 |
drobilla | Well, 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 |
falktx | yeah, either run the main loop or idle for events | 20:41 |
drobilla | Idle will be easier/smaller when pugl has an event struct, at least | 20:41 |
falktx | plugins usually don't need this cause the host is already driving the events, but standalones do need it | 20: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 specialized | 20:55 |
rgareus | Yoda--: 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 |
rgareus | Yoda--: try jalv.gtk <plugin-url> ; that supports scale-points for sure, not sure about boolen outputs | 20:57 |
rgareus | Yoda--: there has not been any development on ardour master branch since the last release. | 20:57 |
rgareus | Yoda--: 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 IRC | 21:00 | |
falktx | I've seen that ardour can do AU plugins on osx, but does it support lv2 cocoa UIs? | 21:05 |
rgareus | falktx: it uses liblilv which does not yet support cocoa UIs | 21:08 |
falktx | you mean suil? | 21:08 |
rgareus | falktx: right | 21:08 |
falktx | so it won't use the already cocoa stuff already in place for AUs...? | 21:08 |
falktx | already already | 21:09 |
rgareus | falktx: 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 |
rgareus | falktx: 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 evening | 21:21 |
*** ricardocrudo has quit IRC | 21:33 | |
falktx | this is nice. ingen seems to be finally be working ok in carla | 21:45 |
falktx | my ingen is missing options feature for UIs... | 21:46 |
*** Anchakor_ has quit IRC | 22:11 | |
*** Anchakor_ has joined #lv2 | 22:11 | |
*** bgola has quit IRC | 22:14 | |
*** grejppi has quit IRC | 22:14 | |
*** grejppi has joined #lv2 | 22:15 | |
*** bgola has joined #lv2 | 22:16 | |
*** edogawa has quit IRC | 22:21 | |
drobilla | If Ardour requests a CarbonUI suil will just pass through as with any other UI type | 22:27 |
drobilla | But I don't think Ardour tries | 22:27 |
drobilla | falktx: What options? | 22:28 |
falktx | drobilla: options feature | 22:28 |
falktx | I added them when doing the ui show extension | 22:29 |
falktx | I guess I don't need to make them a dependency if the host doesn't do show-interface | 22:29 |
falktx | oh wait | 22:31 |
falktx | drobilla: I use options to know the sample rate on the UI side | 22:31 |
drobilla | falktx: ah. | 22:37 |
drobilla | It 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 ingen | 22:53 | |
falktx | drobilla: with options optional :P, ingen loads dpf-based plugins http://i.imgur.com/hEAIw8a.png :) | 22:59 |
drobilla | falktx: there's an old one in ll-plugins though it's probably useless these days | 23:02 |
*** magnetophon has quit IRC | 23:14 | |
rgareus | drobilla: there's no suil carbon_in_carbon handler, is there? | 23:44 |
rgareus | drobilla: besides ardour is gtk2 :( | 23:44 |
rgareus | drobilla: but I think the real problem suil's ./configure does not find any suitable backends on OSX. | 23:45 |
rgareus | drobilla: it finds gtk+-2.0 but not gtk+-x11-2.0 | 23:46 |
rgareus | it shoudl also check for gtk+-quartz-2.0 | 23:48 |
rgareus | falktx: does the cat still run and scratch herself in Nekobi's header? | 23:51 |
rgareus | falktx: does that work in ingen? | 23:51 |
falktx | rgareus: yes. the cat is animated | 23:53 |
Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!