changeset 65:c5106210370e

Default args
author Chris Cannam
date Wed, 14 Jan 2015 11:36:02 +0000
parents ee7542afa98e
children f0e2a8421797
files test/test_process.py vamp/__init__.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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)