Mercurial > hg > vampy-host
annotate test/test_process.py @ 61:f7ee26ca5304
Start on the main process stuff
author | Chris Cannam |
---|---|
date | Wed, 14 Jan 2015 10:36:55 +0000 |
parents | |
children | ee7542afa98e |
rev | line source |
---|---|
Chris@61 | 1 |
Chris@61 | 2 import vamp |
Chris@61 | 3 import numpy as np |
Chris@61 | 4 |
Chris@61 | 5 testPluginKey = "vamp-test-plugin:vamp-test-plugin" |
Chris@61 | 6 |
Chris@61 | 7 rate = 44100 |
Chris@61 | 8 |
Chris@61 | 9 def test_process(): |
Chris@61 | 10 buf = np.zeros(1024) |
Chris@61 | 11 results = vamp.process(buf, rate, testPluginKey, {}, []) |
Chris@61 | 12 print("results = " + str(list(results))) |
Chris@61 | 13 return True |