Deep learning techniques for generating music that has melody and harmony and is similar to music compositions by human beings is something that has fascinated researchers in the field of artificial intelligence. Nowadays, deep learning is being used for solving various problems in numerous artistic fields. There has been a new trend of using deep learning models for various applications in the field of music that has attracted much attention, and automated music generation has been an active area of research that lies in the cross section of artificial intelligence and audio synthesis. Previously, the work in automated music generation was solely focused on generating music, which consisted of a single melody, which is also known as monophonic music. More recently, research work related to the automated generation of polyphonic music, music, which consists of multiple melodies, has met partial success with the help of estimation of time series probability density. In this paper, we use Restricted Boltzmann Machine (RBM) and Recurrent Neural Network Restricted Boltzmann Machine for music generation by training it on a collection of Musical Instrument Digital Interface (MIDI) files. © Springer Nature Singapore Pte Ltd. 2019.