Mercurial > hg > piper-vamp-js
diff quick-test.js @ 76:56709f8355cb
Use power spectrum rather than zero crossings, to exercise the input domain adapter, and make a process request in quick-test.cpp
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Tue, 06 Sep 2016 16:08:38 +0100 |
parents | 4c799e23eaef |
children | c250695a784f |
line wrap: on
line diff
--- a/quick-test.js Wed Aug 24 18:00:28 2016 +0100 +++ b/quick-test.js Tue Sep 06 16:08:38 2016 +0100 @@ -52,7 +52,7 @@ var result = request('{"type": "list"}'); comment("Loading zero crossings plugin..."); - result = request('{"type":"load","content": {"pluginKey":"vamp-example-plugins:zerocrossing","inputSampleRate":16,"adapterFlags":["AdaptAllSafe"]}}'); + result = request('{"type":"load","content": {"pluginKey":"vamp-example-plugins:powerspectrum","inputSampleRate":16,"adapterFlags":["AdaptAllSafe"]}}'); comment("I'm now assuming that the load succeeded and the returned pluginHandle was 1. I haven't bothered to parse the JSON. If those assumptions are wrong, this obviously isn't going to work. Configuring the plugin..."); result = request('{"type":"configure","content":{"pluginHandle":1,"configuration":{"blockSize": 8, "channelCount": 1, "stepSize": 8}}}');