Skip to content

Play The Piano With Deep Learning 用深度学习弹钢琴 2019-5-22

License

Notifications You must be signed in to change notification settings

wmylxmj/Deep-Piano

Repository files navigation

Deep-Piano

Play The Piano With Deep Learning

view demo here

prepare your dataset

  • collect some midi files and put them in the midi folder
  • run prepare.py, we will count the frequency at which notes are pressed

creat the model

  • the model uses deep one-dimensional residual dense convolution network to extract time series characteristics
  • the model predicts the state of 88 keys in 1/64 note time at a time
  • so the generation process is shown in the following figure

train the model

  • run train.py
  • in the case of small amount of data, it is recommended that the sequence length be set to 128

generate piano melody

  • run predict.py
  • give the model a short melody, which will produce a melody of similar style

environment

  • tensorflow-gpu 1.12.0
  • Keras 2.2.4

Releases

No releases published

Packages

No packages published

Languages