comparison vamp/collect.py @ 77:aa8491a11530

Naming: Constants -> CONSTANTS
author Chris Cannam
date Wed, 21 Jan 2015 12:22:13 +0000
parents ad08a0fe6673
children 650f0697812f
comparison
equal deleted inserted replaced
76:b2afd385586f 77:aa8491a11530
20 20
21 # def timestampFeatures(sampleRate, stepSize, outputDescriptor, features): 21 # def timestampFeatures(sampleRate, stepSize, outputDescriptor, features):
22 22
23 # n = 0 23 # n = 0
24 24
25 # if outputDict.sampleType == vampyhost.OneSamplePerStep: 25 # if outputDict.sampleType == vampyhost.ONE_SAMPLE_PER_STEP:
26 # for True: 26 # for True:
27 # yield vampyhost.frame2RealTime(n * stepSize, sampleRate) 27 # yield vampyhost.frame2RealTime(n * stepSize, sampleRate)
28 # n = n + 1 28 # n = n + 1
29 29
30 # elif outputDict.sampleType == vampyhost.FixedSampleRate: 30 # elif outputDict.sampleType == vampyhost.FIXED_SAMPLE_RATE:
31 # for True: 31 # for True:
32 32
33 33
34 34
35 def collect(data, sampleRate, key, parameters = {}, output = ""): 35 def collect(data, sampleRate, key, parameters = {}, output = ""):