[LV2] lv2 state#Dirty

David Robillard d at drobilla.net
Sat Oct 15 05:08:14 PDT 2016

On Thu, 2016-10-13 at 22:19 +0200, Robin Gareus wrote:
> On 10/13/2016 09:33 PM, Hanspeter Portner wrote:
> > How does this event look like?
> > Is it a new atom type or set via the patch extension?
> > 
> > e.g.
> > 
> > []
> >   a patch:Set ;
> >   patch:property <http://lvplug.in/ns/ext/state#Dirty> ;
> >   patch:value true .
> It is not a property of the plugin. Hence I envisage just a message:
> As jalv -d puts it these days:
> ## Plugin => UI (8 bytes) ##
> <http://lv2plug.in/ns/ext/atom#Object>
> 	a <http://lvplug.in/ns/ext/state#Dirty> .

I kind of prefer the property way, mainly for two reasons:

1) It allows setting dirty to false, which is useful for example if
plugins have undo or some other mechanism to revert to the previous
"clean" state

2) Having a property defined is useful if you want to store dirtiness in
a typical LV2-ey dictionary, and I imagine we'll be seeing more of these
"announce a property about this plugin instance" sorts of things in the
future, so a mechanism a host could implement with a generic "do I care
about this property change, and if so, do something about it" pattern
seems nice.  The useful scope of an inherently ephemeral event is much


More information about the Devel mailing list