Mercurial > hg > vampy-host
comparison vamp/__init__.py @ 65:c5106210370e
Default args
author | Chris Cannam |
---|---|
date | Wed, 14 Jan 2015 11:36:02 +0000 |
parents | ee7542afa98e |
children | f0e2a8421797 |
comparison
equal
deleted
inserted
replaced
64:ee7542afa98e | 65:c5106210370e |
---|---|
22 pad = numpy.zeros((frame.shape[0], frameSize - w)) | 22 pad = numpy.zeros((frame.shape[0], frameSize - w)) |
23 frame = numpy.concatenate((frame, pad), 1) | 23 frame = numpy.concatenate((frame, pad), 1) |
24 yield frame | 24 yield frame |
25 i = i + stepSize | 25 i = i + stepSize |
26 | 26 |
27 def process(data, samplerate, key, parameters, outputs): | 27 def process(data, samplerate, key, parameters = {}, outputs = []): |
28 | 28 #!!! docstring |
29 plug = vampyhost.loadPlugin(key, samplerate, | 29 plug = vampyhost.loadPlugin(key, samplerate, |
30 vampyhost.AdaptInputDomain + | 30 vampyhost.AdaptInputDomain + |
31 vampyhost.AdaptChannelCount) | 31 vampyhost.AdaptChannelCount) |
32 | 32 |
33 plugOuts = plug.getOutputs() | 33 plugOuts = plug.getOutputs() |