The invention relates to the technical field of auxiliary music composition, in particular to a composition method and device and a computer readable storage medium, and the method comprises the steps: carrying out the vectorization expression of a first sample to be subjected to composition
processing, and obtaining a
sample sequence;
processing the
sample sequence by using an annealing
algorithm to obtain a first approximate sequence; based on the
pitch duration distribution characteristics of the first approximate sequence and the
pitch and intensity distribution characteristics of the first approximate sequence, screening is carried out from a preset audio
database, a second approximate sequence and a third approximate sequence are obtained, and the audio
database comprises a plurality of audio clips and phoneme characteristics corresponding to the audio clips; the phoneme features comprise
pitch duration distribution features and pitch and pitch intensity distribution features; the second approximate sequence and the third approximate sequence are combined through an annealing
algorithm, a target sequence is obtained, and the pitch approximation degree of the target sequence is larger than a preset first threshold value in the preset time length. The problem that existing auxiliary music creation cannot refer to automatic composition is solved.