comparison test/test-vampipe-server.sh @ 58:c38e12d4bbdd

Merge from branch outputid-string-in-featureset
author Chris Cannam <c.cannam@qmul.ac.uk>
date Mon, 19 Sep 2016 14:48:43 +0100
parents e90fd30990eb
children 72c43bc69616
comparison
equal deleted inserted replaced
48:ce6cb3308bd7 58:c38e12d4bbdd
1 #!/bin/bash 1 #!/bin/bash
2 2
3 ( bin/vampipe-convert request -i json -o capnp | 3 ( bin/vampipe-convert request -i json -o capnp |
4 VAMP_PATH=./vamp-plugin-sdk/examples bin/vampipe-server | 4 VAMP_PATH=./vamp-plugin-sdk/examples bin/vampipe-server |
5 bin/vampipe-convert response -i capnp -o json ) <<EOF 5
6 # capnp decode capnproto/vamp.capnp VampResponse
7
8 bin/vampipe-convert response -i capnp -o json
9 ) <<EOF
6 {"type":"list"} 10 {"type":"list"}
7 {"type":"load","content": {"pluginKey":"vamp-example-plugins:percussiononsets","inputSampleRate":44100,"adapterFlags":["AdaptInputDomain","AdaptBufferSize"]}} 11 {"type":"load","content": {"pluginKey":"vamp-example-plugins:percussiononsets","inputSampleRate":44100,"adapterFlags":["AdaptInputDomain","AdaptBufferSize"]}}
8 {"type":"configure","content":{"pluginHandle":1,"configuration":{"blockSize": 8, "channelCount": 1, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 8}}} 12 {"type":"configure","content":{"pluginHandle":1,"configuration":{"blockSize": 8, "channelCount": 1, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 8}}}
9 {"type":"process","content": {"pluginHandle": 1, "processInput": { "timestamp": {"s": 0, "n": 0}, "inputBuffers": [{"values": [1,2,3,4,5,6,7,8]}]}}} 13 {"type":"process","content": {"pluginHandle": 1, "processInput": { "timestamp": {"s": 0, "n": 0}, "inputBuffers": [{"values": [1,2,3,4,5,6,7,8]}]}}}
10 {"type":"finish","content": {"pluginHandle": 1}} 14 {"type":"finish","content": {"pluginHandle": 1}}