Mercurial > hg > piper-cpp
comparison test/test-vampipe-server.sh @ 68:a5ba837bca28
Update again to latest plugin-terminology-free schema
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 06 Oct 2016 14:32:58 +0100 |
parents | db17657ac875 |
children | 7bfc07576830 |
comparison
equal
deleted
inserted
replaced
67:db17657ac875 | 68:a5ba837bca28 |
---|---|
17 } | 17 } |
18 | 18 |
19 validate_request() { | 19 validate_request() { |
20 local json="$1" | 20 local json="$1" |
21 echo "$json" > "$reqfile" | 21 echo "$json" > "$reqfile" |
22 validate "$reqfile" "request" | 22 validate "$reqfile" "rpcrequest" |
23 } | 23 } |
24 | 24 |
25 validate_response() { | 25 validate_response() { |
26 local json="$1" | 26 local json="$1" |
27 echo "$json" > "$respfile" | 27 echo "$json" > "$respfile" |
28 validate "$respfile" "response" | 28 validate "$respfile" "rpcresponse" |
29 } | 29 } |
30 | 30 |
31 ( while read request ; do | 31 ( while read request ; do |
32 validate_request "$request" | 32 validate_request "$request" |
33 echo "$request" | 33 echo "$request" |
38 while read response ; do | 38 while read response ; do |
39 validate_response "$response" | 39 validate_response "$response" |
40 done | 40 done |
41 ) <<EOF | 41 ) <<EOF |
42 {"method":"list"} | 42 {"method":"list"} |
43 {"method":"load","params": {"pluginKey":"vamp-example-plugins:percussiononsets","inputSampleRate":44100,"adapterFlags":["AdaptInputDomain","AdaptBufferSize"]}} | 43 {"method":"load","params": {"key":"vamp-example-plugins:percussiononsets","inputSampleRate":44100,"adapterFlags":["AdaptInputDomain","AdaptBufferSize"]}} |
44 {"method":"configure","params":{"pluginHandle":1,"configuration":{"blockSize": 8, "channelCount": 1, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 8}}} | 44 {"method":"configure","params":{"handle":1,"configuration":{"blockSize": 8, "channelCount": 1, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 8}}} |
45 {"method":"process","params": {"pluginHandle": 1, "processInput": { "timestamp": {"s": 0, "n": 0}, "inputBuffers": [ [1,2,3,4,5,6,7,8] ]}}} | 45 {"method":"process","params": {"handle": 1, "processInput": { "timestamp": {"s": 0, "n": 0}, "inputBuffers": [ [1,2,3,4,5,6,7,8] ]}}} |
46 {"method":"finish","params": {"pluginHandle": 1}} | 46 {"method":"finish","params": {"handle": 1}} |
47 EOF | 47 EOF |