A musical performance information compression apparatus or the like of the
present invention has a primary code production unit which separates SMF
or the like into information of a relative time between events,
information of a sounding start pitch, information of loudness,
information of a sounding end pitch, and other information for each
channel and which integrates each information regardless of the channel
and which disposes the integrated information in independent regions to
produce a primary code, and a secondary code production unit which
compresses the information of each region of the primary code produced by
this primary code production unit by an LZ coding method, a Huffman
coding method and the like.