예제 #1
0
 def read_features(self, track_id):
     filename = os.path.join(self.billboard_path, 'cqt-hpss', '%s.json' % track_id)
     timed_cqt = read_timed_cqt(filename)
     analysis = read_analysis(track_id, self.billboard_path)
     beats = read_beats(analysis, self.half_beats)
     aligned_cqt, beats = align(beats, timed_cqt, average=True)
     return aligned_cqt, beats
예제 #2
0
 def read_features(self, track_id):
     timed_cqt = read_timed_cqt(cqt_path(track_id))
     beats = read_beats(track_id, self.half_beats)
     aligned_cqt, beats = align(beats, timed_cqt, average=True)
     return aligned_cqt, beats
예제 #3
0
 def read_aligned_segments(self, track_id, times):
     unaligned_segments = read_lab_segments(segments_path(track_id))
     aligned_segments, beats = align(times, unaligned_segments)
     return aligned_segments
예제 #4
0
 def read_aligned_labels(self, track_id, times):
     unaligned_chords = read_lab_chords(label_path(track_id))
     aligned_chords, beats = align(times, unaligned_chords)
     return aligned_chords
예제 #5
0
 def read_aligned_labels(self, track_id, times):
     unaligned_chords = read_lab_chords(mcgill_path(self.billboard_path, track_id, 'majmin.lab'))
     aligned_chords, beats = align(times, unaligned_chords)
     return aligned_chords