Skip to main content

Application of Deep Neural Networks to Music Composition Based on MIDI Datasets and Graphical Representation

Part of the Lecture Notes in Computer Science book series (LNAI,volume 11508)

Abstract

In this paper we have presented a method for composing and generating short musical phrases using a deep convolutional generative adversarial network (DCGAN). We have used a dataset of classical and jazz music MIDI recordings in order to train the network. Our approach introduces translating the MIDI data into graphical images in a piano roll format suitable for the DCGAN, using the RGB channels as additional information carriers for improved performance. We show that the network has learned to generate images that are indistinguishable from the input data and, when translated back to MIDI and played back, include several musically interesting rhythmic and harmonic structures. The results of the conducted experiments are described and discussed, with conclusions for further work and a short comparison with selected existing solutions.

Keywords

  • AI
  • Artificial intelligence
  • Neural networks
  • GAN
  • Music
  • MIDI

This is a preview of subscription content, access via your institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • DOI: 10.1007/978-3-030-20912-4_14
  • Chapter length: 10 pages
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
eBook
USD   84.99
Price excludes VAT (USA)
  • ISBN: 978-3-030-20912-4
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   109.99
Price excludes VAT (USA)
Fig. 1.
Fig. 2.
Fig. 3.
Fig. 4.
Fig. 5.
Fig. 6.
Fig. 7.
Fig. 8.
Fig. 9.

Notes

  1. 1.

    While the sustain pedal is pressed, the notes of the piano sustain after keys are released by the pianist.

References

  1. Choi, K., Fazekas, G., Sandler, M., Cho, K.: Convolutional recurrent neural networks for music classification. In: 2017 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 2392–2396. IEEE (2017)

    Google Scholar 

  2. McKenzie, D.: MIDI Collection. https://bushgrafts.com/midi/. Accessed 16 Jan 2019

  3. Engel, J., et al.: Neural audio synthesis of musical notes with wavenet autoencoders. In: ICML (2017)

    Google Scholar 

  4. Goodfellow, I., et al.: Generative adversarial nets. In: Ghahramani, Z., Welling, M., Cortes, C., Lawrence, N.D., Weinberger, K.Q. (eds.) Advances in Neural Information Processing Systems, vol. 27, pp. 2672–2680. Curran Associates Inc (2014)

    Google Scholar 

  5. Hawthorne, C., et al.: Enabling Factorized Piano Music Modeling and Generation with the MAESTRO Dataset (2018)

    Google Scholar 

  6. Wilkowska-Chołmińska, K., Chołmiński, J.: Historia Muzyki cz.I. PWM (1989)

    Google Scholar 

  7. Johnson, D.D., Keller, R.M., Weintraut, N.: Learning to create jazz melodies using a product of experts. In: ICCC (2017)

    Google Scholar 

  8. DeepJazz. https://github.com/jisungk/deepjazz. Accessed 16 Jan 2019

  9. Google Magenta - research tool for artistic applications of machine learning. https://magenta.tensorflow.org. Accessed 16 Jan 2019

  10. Amper Music. https://www.ampermusic.com/. Accessed 16 Jan 2019

  11. The MIDI File Format. https://www.csie.ntu.edu.tw/~r92092/ref/midi/. Accessed 16 Jan 2019

  12. What is a Player Piano (Pianola)? http://www.pianola.co.nz/public/index.php/web/about_piano_rolls. Accessed 16 Jan 2019

  13. van den Oord, A., Kalchbrenner, N., Espeholt, L., Kavukcuoglu, K., Vinyals, O., Graves, A.: Conditional image generation with PixelCNN decoders. In: Lee, D.D., Sugiyama, M., Luxburg, U.V., Guyon, I., Garnett, R., (eds.) Advances in Neural Information Processing Systems, vol. 29, pp. 4790–4798. Curran Associates Inc (2016)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mateusz Modrzejewski .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and Permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Verify currency and authenticity via CrossMark

Cite this paper

Modrzejewski, M., Dorobek, M., Rokita, P. (2019). Application of Deep Neural Networks to Music Composition Based on MIDI Datasets and Graphical Representation. In: Rutkowski, L., Scherer, R., Korytkowski, M., Pedrycz, W., Tadeusiewicz, R., Zurada, J. (eds) Artificial Intelligence and Soft Computing. ICAISC 2019. Lecture Notes in Computer Science(), vol 11508. Springer, Cham. https://doi.org/10.1007/978-3-030-20912-4_14

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-20912-4_14

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-20911-7

  • Online ISBN: 978-3-030-20912-4

  • eBook Packages: Computer ScienceComputer Science (R0)