Patent attributes
A music piece analyzer includes: a beat-position-acquiring-unit configured to detect beat positions in music piece data; a snare drum detector configured to detect sounding positions of a snare drum in the music piece data; a bass drum detector configured to detect sounding positions of a bass drum in, the music piece data; a one-beat-shift-determination-unit configured to determine whether a bar beginning of the music piece data is shifted by one beat based upon the sounding positions of the snare drum detected by the snare drum detector; a two-beat-shift-determination-unit configured to determine whether the bar beginning of the music piece data is shifted by two beats on a basis of the sounding positions of the bass drum detected by the bass drum detector; and a bar-beginning-setting-unit configured to set the bar beginning of the music piece data on a basis of results determined by the one-beat-shift-determination-unit and the two-beat-shift-determination-unit.