wmylxmj / Deep-Piano

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:Python 100.0%