A method for attaching metadata includes steps of specifying at least two
positions in head portions of bars of music data of music, and segmenting
into segments a duration extending between the specified two positions
and attaching time-series metadata to the segments.