aboutsummaryrefslogtreecommitdiff
path: root/bundle
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-06-06 18:01:48 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-06-06 18:01:48 +0200
commitf3049b07133488a6e8d940be5dc35e47a97baaf4 (patch)
tree22a32d3b4fafa83dcb883a78870de5cb78acc875 /bundle
parentf3af527a5c5102bc79a4b2e621b90a0d5021b6a0 (diff)
downloadsynthpod-f3049b07133488a6e8d940be5dc35e47a97baaf4.tar.xz
migrate to file-based state storage/retrieval.
* synthpod binary and LV2 plugin use the same mechanism and are thus interchangeable * state saved by binary can be loaded as LV2 preset * state saved as LV2 preset can be loaded with binary
Diffstat (limited to 'bundle')
-rw-r--r--bundle/CMakeLists.txt2
-rw-r--r--bundle/manifest.ttl12
-rw-r--r--bundle/state.ttl27
3 files changed, 41 insertions, 0 deletions
diff --git a/bundle/CMakeLists.txt b/bundle/CMakeLists.txt
new file mode 100644
index 00000000..4359ee45
--- /dev/null
+++ b/bundle/CMakeLists.txt
@@ -0,0 +1,2 @@
+install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/state.ttl DESTINATION ${SYNTHPOD_DATA_DIR})
+install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/manifest.ttl DESTINATION ${SYNTHPOD_DATA_DIR})
diff --git a/bundle/manifest.ttl b/bundle/manifest.ttl
new file mode 100644
index 00000000..23fdcf5a
--- /dev/null
+++ b/bundle/manifest.ttl
@@ -0,0 +1,12 @@
+@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#> .
+
+<state.ttl>
+ a pset:Preset ;
+ rdfs:seeAlso <state.ttl> ;
+ lv2:appliesTo <http://open-music-kontrollers.ch/lv2/synthpod#stereo> .
diff --git a/bundle/state.ttl b/bundle/state.ttl
new file mode 100644
index 00000000..72f6b249
--- /dev/null
+++ b/bundle/state.ttl
@@ -0,0 +1,27 @@
+@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 <http://open-music-kontrollers.ch/lv2/synthpod#stereo> ;
+ lv2:port [
+ lv2:symbol "control_in_1" ;
+ pset:value 0.0
+ ] , [
+ lv2:symbol "control_in_2" ;
+ pset:value 0.0
+ ] , [
+ lv2:symbol "control_in_3" ;
+ pset:value 0.0
+ ] , [
+ lv2:symbol "control_in_4" ;
+ pset:value 0.0
+ ] ;
+ state:state [
+ <http://open-music-kontrollers.ch/lv2/synthpod#json> <state.json>
+ ] .