For at least one music piece, a storage section stores tone data of each
of a plurality of fragments segmented from the music piece and stores a
first descriptor indicative of a musical character of each of the
fragments in association with the fragment. Descriptor generation section
receives input data based on operation by a user and generates a second
descriptor, indicative of a musical character, on the basis of the
received input data. Determination section determines similarity between
the second descriptor and the first descriptor of each of the fragments.
Selection section selects the tone data of at least one fragment on the
basis of a result of the similarity determination by the determination
section. On the basis of the tone data of the selected at least one
fragment, a data generation section generates tone data to be outputted.