Mercurial > hg > piper-cpp
changeset 36:1307d0d7e3ed
Test file
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 25 May 2016 14:37:32 +0100 |
parents | 54676b4e224e |
children | f8332b1acfc2 |
files | test/test-vampipe-server.sh |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/test-vampipe-server.sh Wed May 25 14:37:32 2016 +0100 @@ -0,0 +1,12 @@ +#!/bin/bash + +( bin/vampipe-convert request -i json -o capnp | + VAMP_PATH=./vamp-plugin-sdk/examples bin/vampipe-server | + bin/vampipe-convert response -i capnp -o json ) <<EOF +{"type":"list","content": {}} +{"type":"load","content": {"pluginKey":"vamp-example-plugins:percussiononsets","inputSampleRate":44100,"adapterFlags":["AdaptInputDomain","AdaptBufferSize"]}} +{"type":"configure","content":{"pluginHandle":1,"configuration":{"blockSize": 8, "channelCount": 1, "parameterValues": {"sensitivity": 40, "threshold": 3}, "stepSize": 8}}} +{"type":"process","content": {"pluginHandle": 1, "processInput": { "timestamp": {"s": 0, "n": 0}, "inputBuffers": [{"values": [1,2,3,4,5,6,7,8]}]}}} +{"type":"finish","content": {"pluginHandle": 1}} +EOF +