Spaces:
Running
Running
added > and < syntax
Browse files
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)
|