# HG changeset patch # User Chris Cannam # Date 1421235362 0 # Node ID c5106210370e3be4d41c5011eeb0862269204383 # Parent ee7542afa98e021bd6a4fdb0cdee21aa7003face Default args diff -r ee7542afa98e -r c5106210370e test/test_process.py --- a/test/test_process.py Wed Jan 14 11:33:01 2015 +0000 +++ b/test/test_process.py Wed Jan 14 11:36:02 2015 +0000 @@ -8,6 +8,6 @@ def test_process(): buf = np.zeros(10240) - results = vamp.process(buf, rate, testPluginKey, {}, ["instants","curve-fsr"]) + results = vamp.process(buf, rate, testPluginKey) print("results = " + str(list(results))) return True diff -r ee7542afa98e -r c5106210370e vamp/__init__.py --- a/vamp/__init__.py Wed Jan 14 11:33:01 2015 +0000 +++ b/vamp/__init__.py Wed Jan 14 11:36:02 2015 +0000 @@ -24,8 +24,8 @@ yield frame i = i + stepSize -def process(data, samplerate, key, parameters, outputs): - +def process(data, samplerate, key, parameters = {}, outputs = []): +#!!! docstring plug = vampyhost.loadPlugin(key, samplerate, vampyhost.AdaptInputDomain + vampyhost.AdaptChannelCount)