This article mainly uses the Magenta framework to explore the two models of Melody RNN and Performance RNN, They are all recurrent neural networks based on LSTM (Long short-term memory).. The experiment uses a data set containing 120 songs. I set the Melody RNN model is trained for approximately 20,000 steps, while the Performance RNN model is trained for approximately 40,000 steps. The results show that the accuracy of Melody RNN is 80%, while that of Performance RNN is 90%.