A musical analysis apparatus comprising: a spectrum acquisition part that acquires a spectrum for each unit period of an audio signal representing a piece of music, the audio signal being either of a first audio signal or a second audio signal; a beat specification part that specifies a sequence of beats of the audio signal along a time axis; and a feature amount extraction part that divides an interval between the beats into a plurality of analysis periods along the time axis of the audio signal such that one analysis period contains a plurality of the unit periods, and that separates the spectrum of the unit periods contained in one analysis period into a plurality of analysis bands on a frequency axis of the audio signal so as to set a plurality of analysis units in one analysis period in correspondence with the plurality of the analysis bands, such that one analysis unit contains components of the spectrum belonging to the corresponding analysis band, wherein the feature amount extraction part includes a feature calculation part for calculating a feature value of each analysis unit based on the components of the spectrum contained in each analysis unit, thereby generating a rhythmic feature amount that is an array of the feature values calculated for the analysis units arranged in the time axis and in the frequency axis and that features a rhythm of the piece of music, wherein the feature amount extraction part generates a first rhythmic feature amount from the first audio signal, and generates a second rhythmic feature amount from the second audio signal, characterized in that the musical analysis apparatus further comprises a feature comparison part that calculates, for each of the analysis units, an element value corresponding to a difference between each feature value of the first rhythmic feature amount and each feature value of the second rhythmic feature amount to thereby generate an array of the element values which are arranged in the time axis and in the frequency axis, and which represent similarity between the rhythm of the first audio signal and the rhythm of the second audio signal. a spectrum acquisition part that acquires a spectrum for each unit period of an audio signal representing a piece of music, the audio signal being either of a first audio signal or a second audio signal; a beat specification part that specifies a sequence of beats of the audio signal along a time axis; and a feature amount extraction part that divides an interval between the beats into a plurality of analysis periods along the time axis of the audio signal such that one analysis period contains a plurality of the unit periods, and that separates the spectrum of the unit periods contained in one analysis period into a plurality of analysis bands on a frequency axis of the audio signal so as to set a plurality of analysis units in one analysis period in correspondence with the plurality of the analysis bands, such that one analysis unit contains components of the spectrum belonging to the corresponding analysis band, wherein the feature amount extraction part includes a feature calculation part for calculating a feature value of each analysis unit based on the components of the spectrum contained in each analysis unit, thereby generating a rhythmic feature amount that is an array of the feature values calculated for the analysis units arranged in the time axis and in the frequency axis and that features a rhythm of the piece of music, wherein the feature amount extraction part generates a first rhythmic feature amount from the first audio signal, and generates a second rhythmic feature amount from the second audio signal, characterized in that the musical analysis apparatus further comprises a feature comparison part that calculates, for each of the analysis units, an element value corresponding to a difference between each feature value of the first rhythmic feature amount and each feature value of the second rhythmic feature amount to thereby generate an array of the element values which are arranged in the time axis and in the frequency axis, and which represent similarity between the rhythm of the first audio signal and the rhythm of the second audio signal.