Melody generation method based on generative adversarial network
A melody and network technology, applied in the field of automatic music melody creation, can solve the problems of inability to guarantee music quality requirements, lack of diversification, etc., and achieve the effect of shortening training time and increasing judgment
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0064] In one embodiment of the present invention, the melody is generated by using deep convolution generation confrontation network (DCGAN) training, first selects a MIDI file of a style, and the style can be pop music, classical music, rock music, etc., and then take the note pitch as the vertical Coordinates, establish a coordinate system with time as the abscissa, and express one of the melody tracks of the MIDI file in the coordinate system; set the time step, assuming that the 64th note is a time step, then the time step of the 64th note is 1 , the time step of the 32nd note is 2, the time step of the 16th note is 4, and so on. Divide the melody track in the coordinate system into multiple time steps, and each time step is an event; set the event number according to the pitch of the note; count all the event numbers of the melody track, and get the event sequence .
[0065] Taking the event sequence as the real data r1 of DCGAN, the generated data x1 of the generator, f...
Embodiment 2
[0068] In the second embodiment of the present invention, adopt WassersteinGAN (WGAN) to train and generate melody, first select the MIDI file of a style, then take the note pitch as the ordinate, take the time as the abscissa to set up a coordinate system, the MIDI file One of the melody tracks is represented in the coordinate system; set the time step, assuming that the 64th note is a time step, the time step of the 64th note is 1, the time step of the 32nd note is 2, and the time of the 16th note The step is 4, and so on. Divide the melody track in the coordinate system into multiple time steps, and each time step is an event; set the event number according to the pitch of the note; count all the event numbers of the melody track, and get the event sequence .
[0069] Taking the event sequence as the real data r1 of WGAN, the generated data x1 of the generator, for the discriminator, its label determines that the output of r1 should be "1" normally, and the output of x1 sho...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


