[LV2] How to load a LV2 preset stored in a Turtle file?
Sylvain Leroux
sylvain at chicoree.fr
Sun Apr 29 17:23:47 PDT 2018
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi everyone,
I would like to extend lv2apply
(https://github.com/drobilla/lilv/blob/master/utils/lv2apply.c) to
support presets and plug-in states stored as Turtle data files.
I've tried to do my homework, but the many different projects hosted
on http://drobilla.net and http://lv2plug.in are pretty dense and I'm
having hard time finding my way. I think I already bothered some of
you by mail or through GitHub issues. But I still need some help.
As a starting point, I would like to load a preset (example below). I
think I should use either serd,sord, or sratom. But I'm not quite sure
which of these libraries is suitable for that task, nor how exactly to
load a Turtle file. Maybe someone could point me to an example?
Thanks in advance for your time,
- - Sylvain Leroux
*Preset.ttl*
```
@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#> .
<>
a pset:Preset ;
lv2:appliesTo <https://github.com/lucianodato/noise-repellent> ;
rdfs:label "Preset" ;
lv2:port [
lv2:symbol "Residual_listen" ;
pset:value 0.0
] , [
lv2:symbol "adaptive_noise_learn" ;
pset:value 0.0
] , [
lv2:symbol "enable" ;
pset:value 1.0
] , [
lv2:symbol "masking" ;
pset:value 5.0
] , [
lv2:symbol "noise_learn" ;
pset:value 0.0
] , [
lv2:symbol "offset" ;
pset:value 0.0
]
```
-----BEGIN PGP SIGNATURE-----
iQJIBAEBCAAyFiEEl5bRd1eLmzy/wTZWq1gfHR9hxSIFAlrmYhMUHHN5bHZhaW5A
Y2hpY29yZWUuZnIACgkQq1gfHR9hxSKxvg/5ATqaWs8Qk6RYBn80k4UN18XavOnU
Sb84XmcdcKsYACutaqL6NTmybTwEBsKrklKuQFLsqgygeVI5wVqZfEwcGNAytWIn
T3ADX6GjaxjHU2HFEIvgxL4M/pszz0bvtjc95iMiFS913OYkUVlA+kGxfLOmlPHR
RQrhjecGRtAmB6e8MpoGZ9HP7YBkvRY7cJ5VelUTLeeZg2kJyGdl45+7SPZC+pvP
G1lXbnDum9iOozHo+ro65DmWjV9plCIjPB8wmd8S5qlwzy2QLQLnUrm+1ntrDHa6
Huc+VF15yDLPLx0YHR8KKOjYwjv3ZNrVy1P8TpR26Dry3pivO6+OYiyUeBnNKrHj
Mgn/AKnhbsf/cFVptdj+1JVC4QxMdfGxluw0Q3/ycDngIfjd4mfKVPxjvkyrocho
pE9uM/8PUxC1do6uiPczFJjcHt52pCUEv/GISxAtzW2DLk1o6tX5gVobEW5FJO7b
jgo5uqNYuyUP+0zfvFnXfxjaFqWH1tSC8yJ7ZWM0To4csin3Gfk0BVj+uwEKHYIr
xr1SFkWAWi84wnAL4YqI+gSCi/6i4Eq+Mh1+xoL84Po1CCZ1zkQu9KcAyaQZlnAm
IEtLGm1JzOZCbudxJXQm4CH4R0xRWS6v0kGTyvUTZrgX21YEkbHEtqAauT4Zoqaz
+lAQpEI17GBSviQ=
=ogql
-----END PGP SIGNATURE-----
More information about the Devel
mailing list