changeset 35:02320255746d

Configuration requests
author Chris Cannam
date Wed, 16 Mar 2016 12:12:18 +0000
parents 970bc7984c75
children f69c792a303c
files examples/configurationrequest.json schema/configurationrequest.json
diffstat 2 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/configurationrequest.json	Wed Mar 16 12:12:18 2016 +0000
@@ -0,0 +1,1 @@
+{"pluginHandle":12345,"configuration":{"blockSize": 512, "channelCount": 2, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 1024}}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/configurationrequest.json	Wed Mar 16 12:12:18 2016 +0000
@@ -0,0 +1,17 @@
+{
+    "id": "http://vamp-plugins.org/json/schema/configurationrequest#",
+    "$schema": "http://json-schema.org/draft-04/schema#",
+    "description": "schema for a serialised request to configure a Vamp plugin",
+    "type": "object",
+    "properties": {
+	"pluginHandle": {
+	    "type": "number"
+	},
+	"configuration": {
+	    "$ref": "http://vamp-plugins.org/json/schema/pluginconfiguration#"
+	}
+    },
+    "required": [ "pluginHandle", "configuration" ],
+    "additionalProperties": false
+}
+