[LV2] jalv hacking

Hermann Meyer brummer- at web.de
Sun Aug 30 08:19:47 PDT 2015



Am 30.08.2015 um 16:57 schrieb Hermann Meyer:
>
>
> Am 30.08.2015 um 16:16 schrieb David Robillard:
>> On Sun, 2015-08-30 at 07:33 +0200, Hermann Meyer wrote:
>>> jalv_apply_preset fails in that state, as jalv seems to need to load 
>>> the
>>> resources first.
>>> However, identify a preset by label have the advance that the option
>>> could be used to set the windows tittle. The uri could be fetched by 
>>> the
>>> label identifier and then used.
>>> Indeed, it could be done the other way round, but I fail to see the big
>>> difference.
>> The big difference is that labels are not an identifier.  At all.  In
>> any way.  No, not even a little bit.
>>
>> It's flaky, slow, and a glob of messy code where one line would do and
>> be better in every way (since the whole thing is fundamentally designed
>> to look up things by URI).
>>
>>> Could one plugin really have multiple presets with the same label? I've
>>> tried that, and wasn't able to do so.
>> Yes.
>>
>>> But, as far I can see, the label is part of the uri anyway,
>> This is only true for presets saved by Jalv, but even then is only true
>> if the name happens to be restricted so it's not changed to make a
>> suitable directory name.
>>
>> It's not true in general, and many if not most factory presets do not
>> follow that simplified structure, which only exists to make saving them
>> less of a nuisance.
>>
>> http://dev.drobilla.net/changeset/5717
>>
>
> Okay, that is cool.
> It's indeed simpler then expected, and for sure faster then my approve.
> I'll defiantly check it out.

. . and it works great. Defiantly a great plus for the use of jalv. :-)

regards
hermann


More information about the Devel mailing list