from max_level import *
from mean_level import *
from dc import *
-#from aubio_bpm import *
-#from aubio_onsetrate import *
-
-
+from aubio_bpm import *
+from aubio_onsetrate import *
+from aubio_onset import *
+from aubio_pitch import *
@staticmethod
@interfacedoc
def name():
- return "aubio bpm"
+ return "bpm (aubio)"
@staticmethod
@interfacedoc
@staticmethod
@interfacedoc
def name():
- return "aubio onset rate"
+ return "onsets (aubio)"
@staticmethod
@interfacedoc
@staticmethod
@interfacedoc
def name():
- return "aubio onset rate"
+ return "onset rate (aubio)"
@staticmethod
@interfacedoc
@staticmethod
@interfacedoc
def name():
- return "aubio pitch"
+ return "f0 (aubio)"
@staticmethod
@interfacedoc
i = 0
while i < frames.shape[0]:
downmixed = frames[i:i+self.hop_s, :].sum(axis = -1)
- self.pitches += [self.p(downmixed)[0]]
+ time = self.block_read * self.hop_s * 1. / self.samplerate()
+ self.pitches += [[time, self.p(downmixed)[0]]]
i += self.hop_s
self.block_read += 1
return frames, eod