# HG changeset patch # User Chris Cannam # Date 1475851283 -3600 # Node ID 4c2ff04a89cfcb70152e0c475a7ab0722c48acc0 # Parent 4997e3b4aa54598c6027f22b1ac53602a9e696a9 Move to subdirectory diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/basic.json --- a/examples/basic.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"description": "Power values of the frequency spectrum bins calculated from the input signal", "identifier": "powerspectrum", "name": "Power Spectrum"} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/configuration.json --- a/examples/configuration.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"blockSize": 512, "channelCount": 2, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 1024} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/configurationrequest.json --- a/examples/configurationrequest.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"handle":12345,"configuration":{"blockSize": 512, "channelCount": 2, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 1024}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/configurationresponse.json --- a/examples/configurationresponse.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"outputList": [{"basic": {"description": "Percussive note onset locations", "identifier": "onsets", "name": "Onsets"}, "configured": { "binCount": 0, "binNames": [], "hasDuration": false, "sampleRate": 44100, "sampleType": "VariableSampleRate", "unit": ""}}, {"basic": {"description": "Broadband energy rise detection function", "identifier": "detectionfunction", "name": "Detection Function"}, "configured": { "binCount": 1, "binNames": [""], "hasDuration": false, "quantizeStep": 1, "sampleRate": 44100, "sampleType": "OneSamplePerStep", "unit": ""}}]} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/configuredoutputdescriptor.json --- a/examples/configuredoutputdescriptor.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -{"binCount": 513, "binNames": [], "hasDuration": false, "sampleRate": 0, "sampleType": "OneSamplePerStep", "unit": ""} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/enums.json --- a/examples/enums.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/error.json --- a/examples/error.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"code": 6, "message": "An error occurred!" } diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/extractorstaticdata.json --- a/examples/extractorstaticdata.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"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} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/feature-array.json --- a/examples/feature-array.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"featureValues": [ 1.0, -1.0, 4.0, 1505050.50 ], "label": "A feature", "timestamp": {"n": 141590000, "s": 3}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/feature-base64.json --- a/examples/feature-base64.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"featureValues": "AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA", "label": "A feature", "timestamp": {"n": 141590000, "s": 3}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/featureset.json --- a/examples/featureset.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"outputid": [{"featureValues": "AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA", "label": "A feature", "timestamp": {"n": 141590000, "s": 3}}]} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/finishrequest.json --- a/examples/finishrequest.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"handle": 1} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/finishresponse.json --- a/examples/finishresponse.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -{"handle":12345,"features":{"outputid": [{"featureValues": [1,2,3], "timestamp": {"n": 141590000, "s": 3}}]}} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/listrequest.json --- a/examples/listrequest.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/listresponse.json --- a/examples/listresponse.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,284 +0,0 @@ -{ - "available": [ - { - "basic": { - "description": "Track the amplitude of the audio signal", - "identifier": "amplitudefollower", - "name": "Amplitude Follower" - }, - "basicOutputInfo": [ - { - "description": "The peak tracked amplitude for the current processing block", - "identifier": "amplitude", - "name": "Amplitude" - } - ], - "category": [], - "copyright": "Code copyright 2006 Dan Stowell; method from SuperCollider. Freely redistributable (BSD license)", - "inputDomain": "TimeDomain", - "maker": "Vamp SDK Example Plugins", - "maxChannelCount": 1, - "minChannelCount": 1, - "parameters": [ - { - "basic": { - "description": "The 60dB convergence time for an increase in amplitude", - "identifier": "attack", - "name": "Attack time" - }, - "defaultValue": 0.0099999997764825821, - "extents": { - "max": 1, - "min": 0 - }, - "unit": "s", - "valueNames": [] - }, - { - "basic": { - "description": "The 60dB convergence time for a decrease in amplitude", - "identifier": "release", - "name": "Release time" - }, - "defaultValue": 0.0099999997764825821, - "extents": { - "max": 1, - "min": 0 - }, - "unit": "s", - "valueNames": [] - } - ], - "key": "vamp-example-plugins:amplitudefollower", - "version": 1, - "programs": [] - }, - { - "basic": { - "description": "Study a short section of audio and estimate its tempo, assuming the tempo is constant", - "identifier": "fixedtempo", - "name": "Simple Fixed Tempo Estimator" - }, - "basicOutputInfo": [ - { - "description": "Estimated tempo", - "identifier": "tempo", - "name": "Tempo" - }, - { - "description": "Possible tempo estimates, one per bin with the most likely in the first bin", - "identifier": "candidates", - "name": "Tempo candidates" - }, - { - "description": "Onset detection function", - "identifier": "detectionfunction", - "name": "Detection Function" - }, - { - "description": "Autocorrelation of onset detection function", - "identifier": "acf", - "name": "Autocorrelation Function" - }, - { - "description": "Filtered autocorrelation of onset detection function", - "identifier": "filtered_acf", - "name": "Filtered Autocorrelation" - } - ], - "category": [], - "copyright": "Code copyright 2008 Queen Mary, University of London. Freely redistributable (BSD license)", - "inputDomain": "FrequencyDomain", - "maker": "Vamp SDK Example Plugins", - "maxChannelCount": 1, - "minChannelCount": 1, - "parameters": [ - { - "basic": { - "description": "Minimum beat-per-minute value which the tempo estimator is able to return", - "identifier": "minbpm", - "name": "Minimum estimated tempo" - }, - "defaultValue": 50, - "extents": { - "max": 360, - "min": 10 - }, - "unit": "bpm", - "valueNames": [] - }, - { - "basic": { - "description": "Maximum beat-per-minute value which the tempo estimator is able to return", - "identifier": "maxbpm", - "name": "Maximum estimated tempo" - }, - "defaultValue": 190, - "extents": { - "max": 360, - "min": 10 - }, - "unit": "bpm", - "valueNames": [] - }, - { - "basic": { - "description": "Length of audio input, in seconds, which should be taken into account when estimating tempo. There is no need to supply the plugin with any further input once this time has elapsed since the start of the audio. The tempo estimator may use only the first part of this, up to eight times the slowest beat duration: increasing this value further than that is unlikely to improve results.", - "identifier": "maxdflen", - "name": "Input duration to study" - }, - "defaultValue": 10, - "extents": { - "max": 40, - "min": 2 - }, - "unit": "s", - "valueNames": [] - } - ], - "key": "vamp-example-plugins:fixedtempo", - "version": 1, - "programs": [] - }, - { - "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": [], - "copyright": "Code copyright 2006 Queen Mary, University of London, after Dan Barry et al 2005. Freely redistributable (BSD license)", - "inputDomain": "FrequencyDomain", - "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": [] - } - ], - "key": "vamp-example-plugins:percussiononsets", - "version": 2, - "programs": [] - }, - { - "basic": { - "description": "Return the power spectrum of a signal", - "identifier": "powerspectrum", - "name": "Simple Power Spectrum" - }, - "basicOutputInfo": [ - { - "description": "Power values of the frequency spectrum bins calculated from the input signal", - "identifier": "powerspectrum", - "name": "Power Spectrum" - } - ], - "category": [], - "copyright": "Freely redistributable (BSD license)", - "inputDomain": "FrequencyDomain", - "maker": "Vamp SDK Example Plugins", - "maxChannelCount": 1, - "minChannelCount": 1, - "parameters": [], - "key": "vamp-example-plugins:powerspectrum", - "version": 1, - "programs": [] - }, - { - "basic": { - "description": "Calculate the centroid frequency of the spectrum of the input signal", - "identifier": "spectralcentroid", - "name": "Spectral Centroid" - }, - "basicOutputInfo": [ - { - "description": "Centroid of the log weighted frequency spectrum", - "identifier": "logcentroid", - "name": "Log Frequency Centroid" - }, - { - "description": "Centroid of the linear frequency spectrum", - "identifier": "linearcentroid", - "name": "Linear Frequency Centroid" - } - ], - "category": [], - "copyright": "Freely redistributable (BSD license)", - "inputDomain": "FrequencyDomain", - "maker": "Vamp SDK Example Plugins", - "maxChannelCount": 1, - "minChannelCount": 1, - "parameters": [], - "key": "vamp-example-plugins:spectralcentroid", - "version": 2, - "programs": [] - }, - { - "basic": { - "description": "Detect and count zero crossing points", - "identifier": "zerocrossing", - "name": "Zero Crossings" - }, - "basicOutputInfo": [ - { - "description": "The number of zero crossing points per processing block", - "identifier": "counts", - "name": "Zero Crossing Counts" - }, - { - "description": "The locations of zero crossing points", - "identifier": "zerocrossings", - "name": "Zero Crossings" - } - ], - "category": [], - "copyright": "Freely redistributable (BSD license)", - "inputDomain": "TimeDomain", - "maker": "Vamp SDK Example Plugins", - "maxChannelCount": 1, - "minChannelCount": 1, - "parameters": [], - "key": "vamp-example-plugins:zerocrossing", - "version": 2, - "programs": [] - } - ] -} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/loadrequest.json --- a/examples/loadrequest.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"key":"vamp-example-plugins:percussiononsets","inputSampleRate":44100,"adapterFlags":["AdaptInputDomain","AdaptBufferSize"]} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/loadresponse.json --- a/examples/loadresponse.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"handle":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}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/outputdescriptor.json --- a/examples/outputdescriptor.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"basic": {"description": "Power values of the frequency spectrum bins calculated from the input signal", "identifier": "powerspectrum", "name": "Power Spectrum"}, "configured": { "binCount": 513, "binNames": [], "hasDuration": false, "sampleRate": 0, "sampleType": "OneSamplePerStep", "unit": ""}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/parameterdescriptor.json --- a/examples/parameterdescriptor.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"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.5, "min": 0}, "unit": "dB", "valueNames": []} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/processinput-array.json --- a/examples/processinput-array.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"inputBuffers":[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]], "timestamp": {"n": 141590000, "s": 3}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/processinput-base64.json --- a/examples/processinput-base64.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"inputBuffers":["AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA"], "timestamp": {"n": 141590000, "s": 3}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/processrequest.json --- a/examples/processrequest.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"handle":12345,"processInput":{"inputBuffers":["AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA"], "timestamp": {"n": 141590000, "s": 3}}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/processresponse.json --- a/examples/processresponse.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -{"handle":12345,"features":{"outputid": [{"featureValues": "AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA", "label": "A feature", "timestamp": {"n": 141590000, "s": 3}}]}} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/realtime.json --- a/examples/realtime.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"s":14,"n":500000} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/rpcrequest.json --- a/examples/rpcrequest.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -{"method": "load", "params": {"key":"vamp-example-plugins:percussiononsets","inputSampleRate":44100,"adapterFlags":["AdaptInputDomain","AdaptBufferSize"]}, "id": 6, "jsonrpc": "2.0"} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/rpcresponse-error.json --- a/examples/rpcresponse-error.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"method": "process", "error": {"code": 6, "message": "An error occurred!" },"id": "6"} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/rpcresponse-ok.json --- a/examples/rpcresponse-ok.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{"method": "load", "result": {"handle":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}},"id": "6"} diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/serialisedarray-array.json --- a/examples/serialisedarray-array.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -[1,2,-3,3.1415926537] diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/serialisedarray-base64.json --- a/examples/serialisedarray-base64.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -"AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA" diff -r 4997e3b4aa54 -r 4c2ff04a89cf examples/valueextents.json --- a/examples/valueextents.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -{ "min": 0.1, "max": 0.9 } diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/basic.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/basic.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"description": "Power values of the frequency spectrum bins calculated from the input signal", "identifier": "powerspectrum", "name": "Power Spectrum"} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/configuration.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/configuration.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"blockSize": 512, "channelCount": 2, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 1024} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/configurationrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/configurationrequest.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"handle":12345,"configuration":{"blockSize": 512, "channelCount": 2, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 1024}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/configurationresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/configurationresponse.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"outputList": [{"basic": {"description": "Percussive note onset locations", "identifier": "onsets", "name": "Onsets"}, "configured": { "binCount": 0, "binNames": [], "hasDuration": false, "sampleRate": 44100, "sampleType": "VariableSampleRate", "unit": ""}}, {"basic": {"description": "Broadband energy rise detection function", "identifier": "detectionfunction", "name": "Detection Function"}, "configured": { "binCount": 1, "binNames": [""], "hasDuration": false, "quantizeStep": 1, "sampleRate": 44100, "sampleType": "OneSamplePerStep", "unit": ""}}]} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/configuredoutputdescriptor.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/configuredoutputdescriptor.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,2 @@ +{"binCount": 513, "binNames": [], "hasDuration": false, "sampleRate": 0, "sampleType": "OneSamplePerStep", "unit": ""} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/enums.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/enums.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/error.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/error.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"code": 6, "message": "An error occurred!" } diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/extractorstaticdata.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/extractorstaticdata.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"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} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/feature-array.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/feature-array.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"featureValues": [ 1.0, -1.0, 4.0, 1505050.50 ], "label": "A feature", "timestamp": {"n": 141590000, "s": 3}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/feature-base64.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/feature-base64.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"featureValues": "AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA", "label": "A feature", "timestamp": {"n": 141590000, "s": 3}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/featureset.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/featureset.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"outputid": [{"featureValues": "AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA", "label": "A feature", "timestamp": {"n": 141590000, "s": 3}}]} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/finishrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/finishrequest.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"handle": 1} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/finishresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/finishresponse.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,2 @@ +{"handle":12345,"features":{"outputid": [{"featureValues": [1,2,3], "timestamp": {"n": 141590000, "s": 3}}]}} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/listrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/listrequest.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/listresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/listresponse.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,284 @@ +{ + "available": [ + { + "basic": { + "description": "Track the amplitude of the audio signal", + "identifier": "amplitudefollower", + "name": "Amplitude Follower" + }, + "basicOutputInfo": [ + { + "description": "The peak tracked amplitude for the current processing block", + "identifier": "amplitude", + "name": "Amplitude" + } + ], + "category": [], + "copyright": "Code copyright 2006 Dan Stowell; method from SuperCollider. Freely redistributable (BSD license)", + "inputDomain": "TimeDomain", + "maker": "Vamp SDK Example Plugins", + "maxChannelCount": 1, + "minChannelCount": 1, + "parameters": [ + { + "basic": { + "description": "The 60dB convergence time for an increase in amplitude", + "identifier": "attack", + "name": "Attack time" + }, + "defaultValue": 0.0099999997764825821, + "extents": { + "max": 1, + "min": 0 + }, + "unit": "s", + "valueNames": [] + }, + { + "basic": { + "description": "The 60dB convergence time for a decrease in amplitude", + "identifier": "release", + "name": "Release time" + }, + "defaultValue": 0.0099999997764825821, + "extents": { + "max": 1, + "min": 0 + }, + "unit": "s", + "valueNames": [] + } + ], + "key": "vamp-example-plugins:amplitudefollower", + "version": 1, + "programs": [] + }, + { + "basic": { + "description": "Study a short section of audio and estimate its tempo, assuming the tempo is constant", + "identifier": "fixedtempo", + "name": "Simple Fixed Tempo Estimator" + }, + "basicOutputInfo": [ + { + "description": "Estimated tempo", + "identifier": "tempo", + "name": "Tempo" + }, + { + "description": "Possible tempo estimates, one per bin with the most likely in the first bin", + "identifier": "candidates", + "name": "Tempo candidates" + }, + { + "description": "Onset detection function", + "identifier": "detectionfunction", + "name": "Detection Function" + }, + { + "description": "Autocorrelation of onset detection function", + "identifier": "acf", + "name": "Autocorrelation Function" + }, + { + "description": "Filtered autocorrelation of onset detection function", + "identifier": "filtered_acf", + "name": "Filtered Autocorrelation" + } + ], + "category": [], + "copyright": "Code copyright 2008 Queen Mary, University of London. Freely redistributable (BSD license)", + "inputDomain": "FrequencyDomain", + "maker": "Vamp SDK Example Plugins", + "maxChannelCount": 1, + "minChannelCount": 1, + "parameters": [ + { + "basic": { + "description": "Minimum beat-per-minute value which the tempo estimator is able to return", + "identifier": "minbpm", + "name": "Minimum estimated tempo" + }, + "defaultValue": 50, + "extents": { + "max": 360, + "min": 10 + }, + "unit": "bpm", + "valueNames": [] + }, + { + "basic": { + "description": "Maximum beat-per-minute value which the tempo estimator is able to return", + "identifier": "maxbpm", + "name": "Maximum estimated tempo" + }, + "defaultValue": 190, + "extents": { + "max": 360, + "min": 10 + }, + "unit": "bpm", + "valueNames": [] + }, + { + "basic": { + "description": "Length of audio input, in seconds, which should be taken into account when estimating tempo. There is no need to supply the plugin with any further input once this time has elapsed since the start of the audio. The tempo estimator may use only the first part of this, up to eight times the slowest beat duration: increasing this value further than that is unlikely to improve results.", + "identifier": "maxdflen", + "name": "Input duration to study" + }, + "defaultValue": 10, + "extents": { + "max": 40, + "min": 2 + }, + "unit": "s", + "valueNames": [] + } + ], + "key": "vamp-example-plugins:fixedtempo", + "version": 1, + "programs": [] + }, + { + "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": [], + "copyright": "Code copyright 2006 Queen Mary, University of London, after Dan Barry et al 2005. Freely redistributable (BSD license)", + "inputDomain": "FrequencyDomain", + "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": [] + } + ], + "key": "vamp-example-plugins:percussiononsets", + "version": 2, + "programs": [] + }, + { + "basic": { + "description": "Return the power spectrum of a signal", + "identifier": "powerspectrum", + "name": "Simple Power Spectrum" + }, + "basicOutputInfo": [ + { + "description": "Power values of the frequency spectrum bins calculated from the input signal", + "identifier": "powerspectrum", + "name": "Power Spectrum" + } + ], + "category": [], + "copyright": "Freely redistributable (BSD license)", + "inputDomain": "FrequencyDomain", + "maker": "Vamp SDK Example Plugins", + "maxChannelCount": 1, + "minChannelCount": 1, + "parameters": [], + "key": "vamp-example-plugins:powerspectrum", + "version": 1, + "programs": [] + }, + { + "basic": { + "description": "Calculate the centroid frequency of the spectrum of the input signal", + "identifier": "spectralcentroid", + "name": "Spectral Centroid" + }, + "basicOutputInfo": [ + { + "description": "Centroid of the log weighted frequency spectrum", + "identifier": "logcentroid", + "name": "Log Frequency Centroid" + }, + { + "description": "Centroid of the linear frequency spectrum", + "identifier": "linearcentroid", + "name": "Linear Frequency Centroid" + } + ], + "category": [], + "copyright": "Freely redistributable (BSD license)", + "inputDomain": "FrequencyDomain", + "maker": "Vamp SDK Example Plugins", + "maxChannelCount": 1, + "minChannelCount": 1, + "parameters": [], + "key": "vamp-example-plugins:spectralcentroid", + "version": 2, + "programs": [] + }, + { + "basic": { + "description": "Detect and count zero crossing points", + "identifier": "zerocrossing", + "name": "Zero Crossings" + }, + "basicOutputInfo": [ + { + "description": "The number of zero crossing points per processing block", + "identifier": "counts", + "name": "Zero Crossing Counts" + }, + { + "description": "The locations of zero crossing points", + "identifier": "zerocrossings", + "name": "Zero Crossings" + } + ], + "category": [], + "copyright": "Freely redistributable (BSD license)", + "inputDomain": "TimeDomain", + "maker": "Vamp SDK Example Plugins", + "maxChannelCount": 1, + "minChannelCount": 1, + "parameters": [], + "key": "vamp-example-plugins:zerocrossing", + "version": 2, + "programs": [] + } + ] +} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/loadrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/loadrequest.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"key":"vamp-example-plugins:percussiononsets","inputSampleRate":44100,"adapterFlags":["AdaptInputDomain","AdaptBufferSize"]} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/loadresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/loadresponse.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"handle":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}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/outputdescriptor.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/outputdescriptor.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"basic": {"description": "Power values of the frequency spectrum bins calculated from the input signal", "identifier": "powerspectrum", "name": "Power Spectrum"}, "configured": { "binCount": 513, "binNames": [], "hasDuration": false, "sampleRate": 0, "sampleType": "OneSamplePerStep", "unit": ""}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/parameterdescriptor.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/parameterdescriptor.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"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.5, "min": 0}, "unit": "dB", "valueNames": []} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/processinput-array.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/processinput-array.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"inputBuffers":[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]], "timestamp": {"n": 141590000, "s": 3}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/processinput-base64.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/processinput-base64.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"inputBuffers":["AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA"], "timestamp": {"n": 141590000, "s": 3}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/processrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/processrequest.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"handle":12345,"processInput":{"inputBuffers":["AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA"], "timestamp": {"n": 141590000, "s": 3}}} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/processresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/processresponse.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,2 @@ +{"handle":12345,"features":{"outputid": [{"featureValues": "AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA", "label": "A feature", "timestamp": {"n": 141590000, "s": 3}}]}} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/realtime.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/realtime.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"s":14,"n":500000} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/rpcrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/rpcrequest.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,2 @@ +{"method": "load", "params": {"key":"vamp-example-plugins:percussiononsets","inputSampleRate":44100,"adapterFlags":["AdaptInputDomain","AdaptBufferSize"]}, "id": 6, "jsonrpc": "2.0"} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/rpcresponse-error.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/rpcresponse-error.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"method": "process", "error": {"code": 6, "message": "An error occurred!" },"id": "6"} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/rpcresponse-ok.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/rpcresponse-ok.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{"method": "load", "result": {"handle":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}},"id": "6"} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/serialisedarray-array.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/serialisedarray-array.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +[1,2,-3,3.1415926537] diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/serialisedarray-base64.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/serialisedarray-base64.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +"AACAPwAAAEAEAEBAAACAQAAAoEAAAMBAAADQQAAA4EA" diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/examples/valueextents.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/examples/valueextents.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,1 @@ +{ "min": 0.1, "max": 0.9 } diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/basic.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/basic.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,20 @@ +{ + "id": "http://vamp-plugins.org/json/schema/basic#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a common unit of basic metadata", + "type": "object", + "properties": { + "identifier": { + "type": "string", + "pattern": "^[a-zA-Z0-9_-]+$" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ "identifier" ], + "additionalProperties": false +} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/configuration.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/configuration.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,32 @@ +{ + "id": "http://vamp-plugins.org/json/schema/pluginconfiguration#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a bundle of configuration data capturing the setup of a feature extractor", + "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 +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/configurationrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/configurationrequest.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,17 @@ +{ + "id": "http://vamp-plugins.org/json/schema/configurationrequest#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a request to configure a feature extractor; may be served in the params field of a configure-method rpcrequest", + "type": "object", + "properties": { + "handle": { + "type": "number" + }, + "configuration": { + "$ref": "http://vamp-plugins.org/json/schema/configuration#" + } + }, + "required": [ "handle", "configuration" ], + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/configurationresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/configurationresponse.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,18 @@ +{ + "id": "http://vamp-plugins.org/json/schema/configurationresponse#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a response to a request to configure a feature extractor; may be served in the result field of a configure-method rpcresponse", + "type": "object", + "properties": { + "handle": { + "type": "number" + }, + "outputList": { + "type": "array", + "items": { "$ref": "http://vamp-plugins.org/json/schema/outputdescriptor#" } + } + }, + "required": [ "outputList" ], + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/configuredoutputdescriptor.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/configuredoutputdescriptor.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,42 @@ +{ + "id": "http://vamp-plugins.org/json/schema/configuredoutputdescriptor#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for the non-static metadata fields of an output descriptor belonging to a feature extractor", + "type": "object", + "properties": { + "unit": { + "type": "string" + }, + "binCount": { + "type": "integer" + }, + "binNames": { + "type": "array", + "items": { "type": "string" } + }, + "extents": { + "type": "object", + "properties": { + "min": { "type": "number" }, + "max": { "type": "number" } + }, + "required": [ "min", "max" ], + "additionalProperties": false + }, + "quantizeStep": { + "type": "number" + }, + "sampleType": { + "$ref": "http://vamp-plugins.org/json/schema/enums#/definitions/sample_type" + }, + "sampleRate": { + "type": "number" + }, + "hasDuration": { + "type": "boolean" + } + }, + "required": [ "sampleType", "hasDuration" ], + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/enums.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/enums.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,20 @@ +{ + "id": "http://vamp-plugins.org/json/schema/enums#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for common feature extractor enum types", + "definitions": { + "input_domain": { + "type": "string", + "enum": [ "TimeDomain", "FrequencyDomain" ] + }, + "sample_type": { + "type": "string", + "enum": [ "OneSamplePerStep", "FixedSampleRate", "VariableSampleRate" ] + }, + "adapter_flags": { + "type": "string", + "enum": [ "AdaptNone", "AdaptInputDomain", "AdaptChannelCount", + "AdaptBufferSize", "AdaptAllSafe", "AdaptAll" ] + } + } +} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/error.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/error.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,16 @@ +{ + "id": "http://vamp-plugins.org/json/schema/error#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for an error object in a response to an rpcrequest", + "type": "object", + "properties": { + "code": { + "type": "number" + }, + "message": { + "type": "string" + } + }, + "required": [ "code", "message" ] +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/extractorstaticdata.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/extractorstaticdata.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,53 @@ +{ + "id": "http://vamp-plugins.org/json/schema/pluginstaticdata#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for the static metadata associated with a feature extractor", + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "basic": { + "$ref": "http://vamp-plugins.org/json/schema/basic#" + }, + "maker": { + "type": "string" + }, + "copyright": { + "type": "string" + }, + "version": { + "type": "integer" + }, + "category": { + "type": "array", + "items": { "type": "string" } + }, + "minChannelCount": { + "type": "integer" + }, + "maxChannelCount": { + "type": "integer" + }, + "parameters": { + "type": "array", + "items": { "$ref": "http://vamp-plugins.org/json/schema/parameterdescriptor#" } + }, + "programs": { + "type": "array", + "items": { "type": "string" } + }, + "inputDomain": { + "$ref": "http://vamp-plugins.org/json/schema/enums#/definitions/input_domain" + }, + "basicOutputInfo": { + "type": "array", + "items": { "$ref": "http://vamp-plugins.org/json/schema/basic#" } + } + }, + "required": [ "key", "basic", "version", + "minChannelCount", "maxChannelCount", + "inputDomain", "basicOutputInfo" ], + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/feature.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/feature.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,23 @@ +{ + "id": "http://vamp-plugins.org/json/schema/feature#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a single feature returned by a feature extractor", + "type": "object", + "properties": { + "timestamp": { + "$ref": "http://vamp-plugins.org/json/schema/realtime#" + }, + "duration": { + "$ref": "http://vamp-plugins.org/json/schema/realtime#" + }, + "label": { + "type": "string" + }, + "featureValues": { + "$ref": "http://vamp-plugins.org/json/schema/serialisedarray#" + } + }, + "additionalProperties": false +} + + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/featureset.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/featureset.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,13 @@ +{ + "id": "http://vamp-plugins.org/json/schema/featureset#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a set of features returned by a feature extractor, associating an output id with an array of features from that output", + "type": "object", + "patternProperties": { + "^[a-zA-Z0-9_-]+$": { + "type": "array", + "items": { "$ref": "http://vamp-plugins.org/json/schema/feature#" } + } + }, + "additionalProperties": false +} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/finishrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/finishrequest.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,13 @@ +{ + "id": "http://vamp-plugins.org/json/schema/finishrequest#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a serialised request to finish processing with a feature extractor; may be served in the params field of a finish-method rpcrequest", + "type": "object", + "properties": { + "handle": { + "type": "number" + } + }, + "required": [ "handle" ], + "additionalProperties": false +} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/finishresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/finishresponse.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,17 @@ +{ + "id": "http://vamp-plugins.org/json/schema/finishresponse#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a response to a request to finishing processing with a feature extractor; may be served in the result field of a finish-method rpcresponse", + "type": "object", + "properties": { + "handle": { + "type": "number" + }, + "features": { + "$ref": "http://vamp-plugins.org/json/schema/featureset#" + } + }, + "required": [ "handle", "features" ], + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/listrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/listrequest.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,9 @@ +{ + "id": "http://vamp-plugins.org/json/schema/listrequest#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a list request for feature extractors; may be served in the params field of a list-method rpcrequest", + "type": "object", + "properties": { + }, + "additionalProperties": false +} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/listresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/listresponse.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,14 @@ +{ + "id": "http://vamp-plugins.org/json/schema/listresponse#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a response to a request to list available feature extractors; may be served in the result field of a list-method rpcresponse", + "type": "object", + "properties": { + "available": { + "type": "array", + "items": { "$ref": "http://vamp-plugins.org/json/schema/extractorstaticdata#" } + } + }, + "required": [ "available" ], + "additionalProperties": false +} diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/loadrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/loadrequest.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,23 @@ +{ + "id": "http://vamp-plugins.org/json/schema/loadrequest#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a request to load a feature extractor; may be served in the params field of a load-method rpcrequest", + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "inputSampleRate": { + "type": "number" + }, + "adapterFlags": { + "type": "array", + "items": { + "$ref": "http://vamp-plugins.org/json/schema/enums#/definitions/adapter_flags" + } + } + }, + "required": [ "key", "inputSampleRate" ], + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/loadresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/loadresponse.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,19 @@ +{ + "id": "http://vamp-plugins.org/json/schema/loadresponse#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a response to a request to load a feature extractor; may be served in the result field of a load-method rpcresponse", + "type": "object", + "properties": { + "handle": { + "type": "number" + }, + "staticData": { + "$ref": "http://vamp-plugins.org/json/schema/extractorstaticdata#" + }, + "defaultConfiguration": { + "$ref": "http://vamp-plugins.org/json/schema/configuration#" + } + }, + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/outputdescriptor.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/outputdescriptor.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,17 @@ +{ + "id": "http://vamp-plugins.org/json/schema/outputdescriptor#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for an output descriptor belonging to a feature extractor", + "type": "object", + "properties": { + "basic": { + "$ref": "http://vamp-plugins.org/json/schema/basic#" + }, + "configured": { + "$ref": "http://vamp-plugins.org/json/schema/configuredoutputdescriptor#" + } + }, + "required": [ "basic", "configured" ], + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/parameterdescriptor.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/parameterdescriptor.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,30 @@ +{ + "id": "http://vamp-plugins.org/json/schema/parameterdescriptor#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a metadata about an adjustable parameter of a feature extractor", + "type": "object", + "properties": { + "basic": { + "$ref": "http://vamp-plugins.org/json/schema/basic#" + }, + "unit": { + "type": "string" + }, + "extents": { + "$ref": "http://vamp-plugins.org/json/schema/valueextents#" + }, + "defaultValue": { + "type": "number" + }, + "quantizeStep": { + "type": "number" + }, + "valueNames": { + "type": "array", + "items": { "type": "string" } + } + }, + "required": [ "basic", "extents", "defaultValue" ], + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/processinput.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/processinput.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,20 @@ +{ + "id": "http://vamp-plugins.org/json/schema/processinput#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a chunk of input data provided to a process request", + "type": "object", + "properties": { + "timestamp": { + "$ref": "http://vamp-plugins.org/json/schema/realtime#" + }, + "inputBuffers": { + "type": "array", + "items": { + "$ref": "http://vamp-plugins.org/json/schema/serialisedarray#" + } + } + }, + "additionalProperties": false +} + + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/processrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/processrequest.json Fri Oct 07 15:41:23 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 request to process a chunk of data using a feature extractor; may be served in the params field of a process-method rpcrequest", + "type": "object", + "properties": { + "handle": { + "type": "number" + }, + "processInput": { + "$ref": "http://vamp-plugins.org/json/schema/processinput#" + } + }, + "required": [ "handle", "processInput" ], + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/processresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/processresponse.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,17 @@ +{ + "id": "http://vamp-plugins.org/json/schema/processresponse#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a response to a request to process a chunk of data using a feature extractor; may be served in the result field of a process-method rpcresponse", + "type": "object", + "properties": { + "handle": { + "type": "number" + }, + "features": { + "$ref": "http://vamp-plugins.org/json/schema/featureset#" + } + }, + "required": [ "handle", "features" ], + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/realtime.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/realtime.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,13 @@ +{ + "id": "http://vamp-plugins.org/json/schema/realtime#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a timestamp given in seconds and nanoseconds", + "type": "object", + "properties": { + "s": { "type": "integer" }, + "n": { "type": "integer" } + }, + "required": [ "s", "n" ], + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/rpcrequest.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/rpcrequest.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,32 @@ +{ + "id": "http://vamp-plugins.org/json/schema/rpcrequest#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a serialised request compatible with JSON-RPC", + "type": "object", + "properties": { + "method": { + "type": "string" + }, + "params": { + "anyOf": [ + { "$ref": "http://vamp-plugins.org/json/schema/listrequest#" }, + { "$ref": "http://vamp-plugins.org/json/schema/loadrequest#" }, + { "$ref": "http://vamp-plugins.org/json/schema/configurationrequest#" }, + { "$ref": "http://vamp-plugins.org/json/schema/processrequest#" }, + { "$ref": "http://vamp-plugins.org/json/schema/finishrequest#" } + ] + }, + "id": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + }, + "jsonrpc": { + "type": "string" + } + }, + "required": [ "method" ], + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/rpcresponse.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/rpcresponse.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,55 @@ +{ + "id": "http://vamp-plugins.org/json/schema/rpcresponse#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a serialised response to an RPC request; compatible with JSON-RPC, except that the method name must be included here as well as in the request", + "type": "object", + "oneOf": [ { + "properties": { + "method": { + "type": "string" + }, + "result": { + "anyOf": [ + { "$ref": "http://vamp-plugins.org/json/schema/listresponse#" }, + { "$ref": "http://vamp-plugins.org/json/schema/loadresponse#" }, + { "$ref": "http://vamp-plugins.org/json/schema/configurationresponse#" }, + { "$ref": "http://vamp-plugins.org/json/schema/processresponse#" }, + { "$ref": "http://vamp-plugins.org/json/schema/finishresponse#" } + ] + }, + "id": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + }, + "jsonrpc": { + "type": "string" + } + }, + "required": [ "method", "result" ], + "additionalProperties": false + }, { + "properties": { + "method": { + "type": "string" + }, + "error": { + "$ref": "http://vamp-plugins.org/json/schema/error#" + }, + "id": { + "anyOf": [ + { "type": "string" }, + { "type": "number" } + ] + }, + "jsonrpc": { + "type": "string" + } + }, + "required": [ "method", "error" ], + "additionalProperties": false + } ] +} + + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/serialisedarray.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/serialisedarray.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,20 @@ +{ + "id": "http://vamp-plugins.org/json/schema/serialisedarray#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for alternate serialisations of an array of floating-point values", + "anyOf": [ + { + "type": "array", + "items": { "type": "number" } + }, + { + "type": "string", + "media": { + "binaryEncoding": "base64", + "type": "application/octet-stream" + } + } + ] +} + + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/schema/valueextents.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/schema/valueextents.json Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,13 @@ +{ + "id": "http://vamp-plugins.org/json/schema/valueextents#", + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "schema for a structure giving the extents of a value range", + "type": "object", + "properties": { + "min": { "type": "number" }, + "max": { "type": "number" } + }, + "required": [ "min", "max" ], + "additionalProperties": false +} + diff -r 4997e3b4aa54 -r 4c2ff04a89cf json/test.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/json/test.sh Fri Oct 07 15:41:23 2016 +0100 @@ -0,0 +1,17 @@ +#!/bin/bash + +set -eu + +for ex in examples/*.json ; do + echo "Checking $ex..." 1>&2 + jsonschema -i "$ex" schema/$(basename "$ex" | sed 's/-[^.]*//') +done + +for s in schema/*.json ; do + if [ ! -f examples/$(basename "$s") ]; then + if ! ls -1 examples/$(basename "$s" .json)-*.json >/dev/null 2>&1; then + echo "WARNING: No example file for schema $s" + fi + fi +done + diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/basic.json --- a/schema/basic.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/basic#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a common unit of basic metadata", - "type": "object", - "properties": { - "identifier": { - "type": "string", - "pattern": "^[a-zA-Z0-9_-]+$" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - } - }, - "required": [ "identifier" ], - "additionalProperties": false -} diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/configuration.json --- a/schema/configuration.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/pluginconfiguration#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a bundle of configuration data capturing the setup of a feature extractor", - "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 -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/configurationrequest.json --- a/schema/configurationrequest.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/configurationrequest#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a request to configure a feature extractor; may be served in the params field of a configure-method rpcrequest", - "type": "object", - "properties": { - "handle": { - "type": "number" - }, - "configuration": { - "$ref": "http://vamp-plugins.org/json/schema/configuration#" - } - }, - "required": [ "handle", "configuration" ], - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/configurationresponse.json --- a/schema/configurationresponse.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/configurationresponse#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a response to a request to configure a feature extractor; may be served in the result field of a configure-method rpcresponse", - "type": "object", - "properties": { - "handle": { - "type": "number" - }, - "outputList": { - "type": "array", - "items": { "$ref": "http://vamp-plugins.org/json/schema/outputdescriptor#" } - } - }, - "required": [ "outputList" ], - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/configuredoutputdescriptor.json --- a/schema/configuredoutputdescriptor.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,42 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/configuredoutputdescriptor#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for the non-static metadata fields of an output descriptor belonging to a feature extractor", - "type": "object", - "properties": { - "unit": { - "type": "string" - }, - "binCount": { - "type": "integer" - }, - "binNames": { - "type": "array", - "items": { "type": "string" } - }, - "extents": { - "type": "object", - "properties": { - "min": { "type": "number" }, - "max": { "type": "number" } - }, - "required": [ "min", "max" ], - "additionalProperties": false - }, - "quantizeStep": { - "type": "number" - }, - "sampleType": { - "$ref": "http://vamp-plugins.org/json/schema/enums#/definitions/sample_type" - }, - "sampleRate": { - "type": "number" - }, - "hasDuration": { - "type": "boolean" - } - }, - "required": [ "sampleType", "hasDuration" ], - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/enums.json --- a/schema/enums.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/enums#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for common feature extractor enum types", - "definitions": { - "input_domain": { - "type": "string", - "enum": [ "TimeDomain", "FrequencyDomain" ] - }, - "sample_type": { - "type": "string", - "enum": [ "OneSamplePerStep", "FixedSampleRate", "VariableSampleRate" ] - }, - "adapter_flags": { - "type": "string", - "enum": [ "AdaptNone", "AdaptInputDomain", "AdaptChannelCount", - "AdaptBufferSize", "AdaptAllSafe", "AdaptAll" ] - } - } -} diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/error.json --- a/schema/error.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/error#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for an error object in a response to an rpcrequest", - "type": "object", - "properties": { - "code": { - "type": "number" - }, - "message": { - "type": "string" - } - }, - "required": [ "code", "message" ] -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/extractorstaticdata.json --- a/schema/extractorstaticdata.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/pluginstaticdata#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for the static metadata associated with a feature extractor", - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "basic": { - "$ref": "http://vamp-plugins.org/json/schema/basic#" - }, - "maker": { - "type": "string" - }, - "copyright": { - "type": "string" - }, - "version": { - "type": "integer" - }, - "category": { - "type": "array", - "items": { "type": "string" } - }, - "minChannelCount": { - "type": "integer" - }, - "maxChannelCount": { - "type": "integer" - }, - "parameters": { - "type": "array", - "items": { "$ref": "http://vamp-plugins.org/json/schema/parameterdescriptor#" } - }, - "programs": { - "type": "array", - "items": { "type": "string" } - }, - "inputDomain": { - "$ref": "http://vamp-plugins.org/json/schema/enums#/definitions/input_domain" - }, - "basicOutputInfo": { - "type": "array", - "items": { "$ref": "http://vamp-plugins.org/json/schema/basic#" } - } - }, - "required": [ "key", "basic", "version", - "minChannelCount", "maxChannelCount", - "inputDomain", "basicOutputInfo" ], - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/feature.json --- a/schema/feature.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/feature#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a single feature returned by a feature extractor", - "type": "object", - "properties": { - "timestamp": { - "$ref": "http://vamp-plugins.org/json/schema/realtime#" - }, - "duration": { - "$ref": "http://vamp-plugins.org/json/schema/realtime#" - }, - "label": { - "type": "string" - }, - "featureValues": { - "$ref": "http://vamp-plugins.org/json/schema/serialisedarray#" - } - }, - "additionalProperties": false -} - - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/featureset.json --- a/schema/featureset.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/featureset#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a set of features returned by a feature extractor, associating an output id with an array of features from that output", - "type": "object", - "patternProperties": { - "^[a-zA-Z0-9_-]+$": { - "type": "array", - "items": { "$ref": "http://vamp-plugins.org/json/schema/feature#" } - } - }, - "additionalProperties": false -} diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/finishrequest.json --- a/schema/finishrequest.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/finishrequest#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a serialised request to finish processing with a feature extractor; may be served in the params field of a finish-method rpcrequest", - "type": "object", - "properties": { - "handle": { - "type": "number" - } - }, - "required": [ "handle" ], - "additionalProperties": false -} diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/finishresponse.json --- a/schema/finishresponse.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/finishresponse#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a response to a request to finishing processing with a feature extractor; may be served in the result field of a finish-method rpcresponse", - "type": "object", - "properties": { - "handle": { - "type": "number" - }, - "features": { - "$ref": "http://vamp-plugins.org/json/schema/featureset#" - } - }, - "required": [ "handle", "features" ], - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/listrequest.json --- a/schema/listrequest.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/listrequest#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a list request for feature extractors; may be served in the params field of a list-method rpcrequest", - "type": "object", - "properties": { - }, - "additionalProperties": false -} diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/listresponse.json --- a/schema/listresponse.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/listresponse#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a response to a request to list available feature extractors; may be served in the result field of a list-method rpcresponse", - "type": "object", - "properties": { - "available": { - "type": "array", - "items": { "$ref": "http://vamp-plugins.org/json/schema/extractorstaticdata#" } - } - }, - "required": [ "available" ], - "additionalProperties": false -} diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/loadrequest.json --- a/schema/loadrequest.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/loadrequest#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a request to load a feature extractor; may be served in the params field of a load-method rpcrequest", - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "inputSampleRate": { - "type": "number" - }, - "adapterFlags": { - "type": "array", - "items": { - "$ref": "http://vamp-plugins.org/json/schema/enums#/definitions/adapter_flags" - } - } - }, - "required": [ "key", "inputSampleRate" ], - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/loadresponse.json --- a/schema/loadresponse.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/loadresponse#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a response to a request to load a feature extractor; may be served in the result field of a load-method rpcresponse", - "type": "object", - "properties": { - "handle": { - "type": "number" - }, - "staticData": { - "$ref": "http://vamp-plugins.org/json/schema/extractorstaticdata#" - }, - "defaultConfiguration": { - "$ref": "http://vamp-plugins.org/json/schema/configuration#" - } - }, - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/outputdescriptor.json --- a/schema/outputdescriptor.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/outputdescriptor#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for an output descriptor belonging to a feature extractor", - "type": "object", - "properties": { - "basic": { - "$ref": "http://vamp-plugins.org/json/schema/basic#" - }, - "configured": { - "$ref": "http://vamp-plugins.org/json/schema/configuredoutputdescriptor#" - } - }, - "required": [ "basic", "configured" ], - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/parameterdescriptor.json --- a/schema/parameterdescriptor.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/parameterdescriptor#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a metadata about an adjustable parameter of a feature extractor", - "type": "object", - "properties": { - "basic": { - "$ref": "http://vamp-plugins.org/json/schema/basic#" - }, - "unit": { - "type": "string" - }, - "extents": { - "$ref": "http://vamp-plugins.org/json/schema/valueextents#" - }, - "defaultValue": { - "type": "number" - }, - "quantizeStep": { - "type": "number" - }, - "valueNames": { - "type": "array", - "items": { "type": "string" } - } - }, - "required": [ "basic", "extents", "defaultValue" ], - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/processinput.json --- a/schema/processinput.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/processinput#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a chunk of input data provided to a process request", - "type": "object", - "properties": { - "timestamp": { - "$ref": "http://vamp-plugins.org/json/schema/realtime#" - }, - "inputBuffers": { - "type": "array", - "items": { - "$ref": "http://vamp-plugins.org/json/schema/serialisedarray#" - } - } - }, - "additionalProperties": false -} - - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/processrequest.json --- a/schema/processrequest.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/processrequest#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a request to process a chunk of data using a feature extractor; may be served in the params field of a process-method rpcrequest", - "type": "object", - "properties": { - "handle": { - "type": "number" - }, - "processInput": { - "$ref": "http://vamp-plugins.org/json/schema/processinput#" - } - }, - "required": [ "handle", "processInput" ], - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/processresponse.json --- a/schema/processresponse.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/processresponse#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a response to a request to process a chunk of data using a feature extractor; may be served in the result field of a process-method rpcresponse", - "type": "object", - "properties": { - "handle": { - "type": "number" - }, - "features": { - "$ref": "http://vamp-plugins.org/json/schema/featureset#" - } - }, - "required": [ "handle", "features" ], - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/realtime.json --- a/schema/realtime.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/realtime#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a timestamp given in seconds and nanoseconds", - "type": "object", - "properties": { - "s": { "type": "integer" }, - "n": { "type": "integer" } - }, - "required": [ "s", "n" ], - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/rpcrequest.json --- a/schema/rpcrequest.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/rpcrequest#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a serialised request compatible with JSON-RPC", - "type": "object", - "properties": { - "method": { - "type": "string" - }, - "params": { - "anyOf": [ - { "$ref": "http://vamp-plugins.org/json/schema/listrequest#" }, - { "$ref": "http://vamp-plugins.org/json/schema/loadrequest#" }, - { "$ref": "http://vamp-plugins.org/json/schema/configurationrequest#" }, - { "$ref": "http://vamp-plugins.org/json/schema/processrequest#" }, - { "$ref": "http://vamp-plugins.org/json/schema/finishrequest#" } - ] - }, - "id": { - "anyOf": [ - { "type": "string" }, - { "type": "number" } - ] - }, - "jsonrpc": { - "type": "string" - } - }, - "required": [ "method" ], - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/rpcresponse.json --- a/schema/rpcresponse.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/rpcresponse#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a serialised response to an RPC request; compatible with JSON-RPC, except that the method name must be included here as well as in the request", - "type": "object", - "oneOf": [ { - "properties": { - "method": { - "type": "string" - }, - "result": { - "anyOf": [ - { "$ref": "http://vamp-plugins.org/json/schema/listresponse#" }, - { "$ref": "http://vamp-plugins.org/json/schema/loadresponse#" }, - { "$ref": "http://vamp-plugins.org/json/schema/configurationresponse#" }, - { "$ref": "http://vamp-plugins.org/json/schema/processresponse#" }, - { "$ref": "http://vamp-plugins.org/json/schema/finishresponse#" } - ] - }, - "id": { - "anyOf": [ - { "type": "string" }, - { "type": "number" } - ] - }, - "jsonrpc": { - "type": "string" - } - }, - "required": [ "method", "result" ], - "additionalProperties": false - }, { - "properties": { - "method": { - "type": "string" - }, - "error": { - "$ref": "http://vamp-plugins.org/json/schema/error#" - }, - "id": { - "anyOf": [ - { "type": "string" }, - { "type": "number" } - ] - }, - "jsonrpc": { - "type": "string" - } - }, - "required": [ "method", "error" ], - "additionalProperties": false - } ] -} - - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/serialisedarray.json --- a/schema/serialisedarray.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/serialisedarray#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for alternate serialisations of an array of floating-point values", - "anyOf": [ - { - "type": "array", - "items": { "type": "number" } - }, - { - "type": "string", - "media": { - "binaryEncoding": "base64", - "type": "application/octet-stream" - } - } - ] -} - - diff -r 4997e3b4aa54 -r 4c2ff04a89cf schema/valueextents.json --- a/schema/valueextents.json Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -{ - "id": "http://vamp-plugins.org/json/schema/valueextents#", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "schema for a structure giving the extents of a value range", - "type": "object", - "properties": { - "min": { "type": "number" }, - "max": { "type": "number" } - }, - "required": [ "min", "max" ], - "additionalProperties": false -} - diff -r 4997e3b4aa54 -r 4c2ff04a89cf test.sh --- a/test.sh Thu Oct 06 14:00:51 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -#!/bin/bash - -set -eu - -for ex in examples/*.json ; do - echo "Checking $ex..." 1>&2 - jsonschema -i "$ex" schema/$(basename "$ex" | sed 's/-[^.]*//') -done - -for s in schema/*.json ; do - if [ ! -f examples/$(basename "$s") ]; then - if ! ls -1 examples/$(basename "$s" .json)-*.json >/dev/null 2>&1; then - echo "WARNING: No example file for schema $s" - fi - fi -done -