comparison vamp/__init__.py @ 58:c444be7637c0

Adapter flags; tidy
author Chris Cannam
date Wed, 14 Jan 2015 09:58:25 +0000
parents 3db99d3f2e30
children f7ee26ca5304
comparison
equal deleted inserted replaced
57:a0243984805b 58:c444be7637c0
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 plug = vampyhost.loadPlugin(key, samplerate, vampyhost.AdaptNone) ##!!! input domain 28 plug = vampyhost.loadPlugin(key, samplerate,
29 vampyhost.AdaptInputDomain +
30 vampyhost.AdaptChannelCount)
29 stepSize = plug.getPreferredStepSize() 31 stepSize = plug.getPreferredStepSize()
30 blockSize = plug.getPreferredBlockSize() 32 blockSize = plug.getPreferredBlockSize()
31 ff = framesFromArray(data, stepSize, blockSize) 33 ff = framesFromArray(data, stepSize, blockSize)
32 return True 34 return True