3v324v23 commited on
Commit
a387817
1 Parent(s): 867bb6e

added > and < syntax

Browse files
Files changed (1) hide show
  1. beat_manipulator/beatmap.py +1 -0
beat_manipulator/beatmap.py CHANGED
@@ -57,6 +57,7 @@ class beatmap:
57
  if lib=='madmom.BeatTrackingProcessor':
58
  proc = madmom.features.beats.BeatTrackingProcessor(fps=100)
59
  act = madmom.features.beats.RNNBeatProcessor()(madmom.audio.signal.Signal(self.audio.T, self.samplerate))
 
60
  self.beatmap= proc(act)*self.samplerate
61
  if lib=='madmom.BeatTrackingProcessor.constant':
62
  proc = madmom.features.beats.BeatTrackingProcessor(fps=100, look_ahead=None)
 
57
  if lib=='madmom.BeatTrackingProcessor':
58
  proc = madmom.features.beats.BeatTrackingProcessor(fps=100)
59
  act = madmom.features.beats.RNNBeatProcessor()(madmom.audio.signal.Signal(self.audio.T, self.samplerate))
60
+ assert len(act)>200, f'Audio file is too short, len={len(act)}'
61
  self.beatmap= proc(act)*self.samplerate
62
  if lib=='madmom.BeatTrackingProcessor.constant':
63
  proc = madmom.features.beats.BeatTrackingProcessor(fps=100, look_ahead=None)