# HG changeset patch # User Chris Cannam # Date 1463409971 -3600 # Node ID 1fddeaf62c3b5b3cef08f2003f02e6bea9aa32c8 # Parent fff38eb46ad25eef17efd49fcd94e73ded00df68 Add process request (i.e. process block plus plugin handle) diff -r fff38eb46ad2 -r 1fddeaf62c3b examples/loadresponse.json --- a/examples/loadresponse.json Thu May 12 16:40:59 2016 +0100 +++ b/examples/loadresponse.json Mon May 16 15:46:11 2016 +0100 @@ -1,1 +1,1 @@ -{"pluginHandle":12345,"staticData":{"basic": {"description": "Detect percussive note onsets by identifying broadband energy rises", "identifier": "percussiononsets", "name": "Simple Percussion Onset Detector"}, "basicOutputInfo": [{"description": "Percussive note onset locations", "identifier": "onsets", "name": "Onsets"}, {"description": "Broadband energy rise detection function", "identifier": "detectionfunction", "name": "Detection Function"}], "category": ["Time", "Onsets"], "copyright": "Code copyright 2006 Queen Mary, University of London, after Dan Barry et al 2005. Freely redistributable (BSD license)", "inputDomain": "FrequencyDomain", "key": "vamp-example-plugins:percussiononsets", "maker": "Vamp SDK Example Plugins", "maxChannelCount": 1, "minChannelCount": 1, "parameters": [{"basic": {"description": "Energy rise within a frequency bin necessary to count toward broadband total", "identifier": "threshold", "name": "Energy rise threshold"}, "defaultValue": 3, "extents": {"max": 20, "min": 0}, "unit": "dB", "valueNames": []}, {"basic": {"description": "Sensitivity of peak detector applied to broadband detection function", "identifier": "sensitivity", "name": "Sensitivity"}, "defaultValue": 40, "extents": {"max": 100, "min": 0}, "unit": "%", "valueNames": []}], "programs": [], "version": 2},"defaultConfiguration":{"blockSize": 512, "channelCount": 2, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 1024}} +{"pluginHandle":12345,"staticData":{"basic": {"description": "Detect percussive note onsets by identifying broadband energy rises", "identifier": "percussiononsets", "name": "Simple Percussion Onset Detector"}, "basicOutputInfo": [{"description": "Percussive note onset locations", "identifier": "onsets", "name": "Onsets"}, {"description": "Broadband energy rise detection function", "identifier": "detectionfunction", "name": "Detection Function"}], "category": ["Time", "Onsets"], "copyright": "Code copyright 2006 Queen Mary, University of London, after Dan Barry et al 2005. Freely redistributable (BSD license)", "inputDomain": "FrequencyDomain", "pluginKey": "vamp-example-plugins:percussiononsets", "maker": "Vamp SDK Example Plugins", "maxChannelCount": 1, "minChannelCount": 1, "parameters": [{"basic": {"description": "Energy rise within a frequency bin necessary to count toward broadband total", "identifier": "threshold", "name": "Energy rise threshold"}, "defaultValue": 3, "extents": {"max": 20, "min": 0}, "unit": "dB", "valueNames": []}, {"basic": {"description": "Sensitivity of peak detector applied to broadband detection function", "identifier": "sensitivity", "name": "Sensitivity"}, "defaultValue": 40, "extents": {"max": 100, "min": 0}, "unit": "%", "valueNames": []}], "programs": [], "pluginVersion": 2},"defaultConfiguration":{"blockSize": 512, "channelCount": 2, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 1024}} diff -r fff38eb46ad2 -r 1fddeaf62c3b examples/processrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/processrequest.json Mon May 16 15:46:11 2016 +0100 @@ -0,0 +1,1 @@ +{"pluginHandle":12345,"processBlock":{"input":[{"b64values": "AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA"}], "timestamp": {"n": 141590000, "s": 3}}} diff -r fff38eb46ad2 -r 1fddeaf62c3b schema/processrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/processrequest.json Mon May 16 15:46:11 2016 +0100 @@ -0,0 +1,17 @@ +{ + "id": "http://vamp-plugins.org/json/schema/processrequest#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a serialised request to process a data block using a Vamp plugin; normally served as the content field of an object matching the plain request schema", + "type": "object", + "properties": { + "pluginHandle": { + "type": "number" + }, + "processBlock": { + "$ref": "http://vamp-plugins.org/json/schema/processblock#" + } + }, + "required": [ "pluginHandle", "processBlock" ], + "additionalProperties": false +} +