# HG changeset patch # User Chris Cannam # Date 1457533805 0 # Node ID 6ff2abfeb379de47b789dc473ba31860b6a2d1db # Parent 510997a7257b0ae8c6aa3d6034a728a4233f0846 Plugin configuration data diff -r 510997a7257b -r 6ff2abfeb379 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Wed Mar 09 14:30:05 2016 +0000 @@ -0,0 +1,2 @@ +syntax: glob +*~ diff -r 510997a7257b -r 6ff2abfeb379 examples/pluginconfig.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/pluginconfig.json Wed Mar 09 14:30:05 2016 +0000 @@ -0,0 +1,1 @@ +{"blockSize": 512, "channelCount": 2, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 1024} diff -r 510997a7257b -r 6ff2abfeb379 schema/basic.json --- a/schema/basic.json Tue Mar 08 17:17:57 2016 +0000 +++ b/schema/basic.json Wed Mar 09 14:30:05 2016 +0000 @@ -4,9 +4,16 @@ "description": "schema for the basic part of various Vamp descriptors", "type": "object", "properties": { - "identifier": { "type": "string" }, - "name": { "type": "string" }, - "description": { "type": "string" } + "identifier": { + "type": "string", + "pattern": "^[a-zA-Z0-9_-]+$" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + } }, "required": [ "identifier" ], "additionalProperties": false diff -r 510997a7257b -r 6ff2abfeb379 schema/pluginconfiguration.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/pluginconfiguration.json Wed Mar 09 14:30:05 2016 +0000 @@ -0,0 +1,32 @@ +{ + "id": "http://vamp-plugins.org/json/schema/pluginconfiguration#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a serialised bundle of configuration data associated with a Vamp Plugin", + "type": "object", + "properties": { + "parameterValues": { + "type": "object", + "patternProperties": { + "^[a-zA-Z0-9_-]+$": { + "type": "number" + } + }, + "additionalProperties": false + }, + "currentProgram": { + "type": "string" + }, + "channelCount": { + "type": "integer" + }, + "stepSize": { + "type": "integer" + }, + "blockSize": { + "type": "integer" + } + }, + "required": [ "channelCount", "stepSize", "blockSize" ], + "additionalProperties": false +} +