|
The basic idea here is that we should not expect a song to have a
consistent rhythmic pattern thoughout. So, we divide the track into
blocks, and nside each block, we assume a consistent pattern.
(Obviously, this is not perfect: we chop it into blocks without regard
for the song. A better scheme mght be to try to find boundaries in the
song where the rhythm changes.) If the rhythm changes within a block,
you'll get a blurred rhythmic pattern.
At the end, we report the average rhythm pattern, over all the
blocks.
- Parameters:
f1 (str) - name of the audio file
name (normally str) - the track's label. (Note: this is just passed through to the
output.)
plotaudio (boolean) - display plots (true) or run silently (false). This particular
routine plots the averaged beat rate as a function of frequency,
and also the averaged feature vector.
- Returns: A
pickle of (name, feature
vector)
- It returns an opaque blob (a
pickle)
that you can write to a file and easily read back. The pickle
contains the track's label, along with the uncompressed feature
vector. This feature vector contains the beat rate as a function
of frequency, followed by the part of the feature vector that
describes the averaged rhythmic pattern.
|