1. A data compressor for compressing melody data to compressed data, comprising: a command-data generator; a dictionary having a first plurality of dictionary entries; a sliding window used to gather a plurality of input musical notes in the melody data; a statistical model operable to compare the musical note to be compressed with subsequent musical notes in the sliding window; and a switch that is configured to toggle from an open to a closed position in order to selectively place an input musical note to be compressed into the dictionary when the input musical note has a significance according to the statistical model, the command-data generator being configured to communicate with the sliding window, the statistical model, and the dictionary to output the compressed data.
1. A data compressor for compressing melody data to compressed data, comprising: a command-data generator; a dictionary having a first plurality of dictionary entries; a sliding window used to gather a plurality of input musical notes in the melody data; a statistical model operable to compare the musical note to be compressed with subsequent musical notes in the sliding window; and a switch that is configured to toggle from an open to a closed position in order to selectively place an input musical note to be compressed into the dictionary when the input musical note has a significance according to the statistical model, the command-data generator being configured to communicate with the sliding window, the statistical model, and the dictionary to output the compressed data. 2. The data compressor of claim 1 , wherein the compressed data. comprises a command part and a data part.