[LV2] jalv hacking

Hermann Meyer brummer- at web.de
Sat Aug 29 21:54:34 PDT 2015



Am 29.08.2015 um 20:38 schrieb Hanspeter Portner:
> On 29.08.2015 19:54, Hermann Meyer wrote:
>>
>> Hi Hanspeter
>>
>> Jep, that brings me a step forward, I can save the state file this way,
>> and it looks good so far.
>> Only, jalv cant load it, fail with:
>> error: failed to expand CURIE `pset:Preset'
>> error: attempt to add quad with NULL field
>> error: failed to expand CURIE `lv2:appliesTo'
>> error: attempt to add quad with NULL field
>> error: failed to expand CURIE `rdfs:label'
>> error: attempt to add quad with NULL field
>> looks like a manifest file is needed
> You need to prepend some turtle prefixes manually,
> 'lilv_state_to_string' seems to not do this on its own...
>
> * 'lilv_state_new_from_world'
> * lilv_state_to_string
> * fopen
> * fwrite 'missing prefixes'
>    @prefix atom: <http://lv2plug.in/ns/ext/atom#> .
>    @prefix lv2: <http://lv2plug.in/ns/lv2core#> .
>    @prefix pset: <http://lv2plug.in/ns/ext/presets#> .
>    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
>    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
>    @prefix state: <http://lv2plug.in/ns/ext/state#> .
>    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
> * fwrite 'state string'
>
> _______________________________________________

Hi

Thanks, that's it. Got it to work now.
In addition I need to replace the uri on top of the string with a empty <>
and now it works.

regards
hermann


More information about the Devel mailing list