Giter Club home page Giter Club logo

music-generate-part1's Introduction

Music-Generate-Part1

Introduce

RNN is a kind of sequence to sequence model, it can solve a lot of NLP problems such as Machine translation ใ€ Summarization ใ€ and even can generate article.
This time I am going to use RNN to generate music, similar to Article generation we can convert music into notes and durations then we can treat them as the input of RNN.
But the problem of traditional RNN is that it only output the last latent vector with fixed length, when the setence becomes longer and longer it can't express the meaning of the sentence well.
So I introduced Attention mechanism to solve this problem.

Network Structure

image

network design

  • use Bidirectional LSTM with 256 units
  • use malti-head attention

Data

The data contains 18 anime musics
and is collected from [https://www.midiclouds.com/forum-4-1.html]

Result

[https://github.com/Yukino1010/Music-Generate-Part1/blob/master/output/first.mid]
[https://github.com/Yukino1010/Music-Generate-Part1/blob/master/output/second.mid]
[https://github.com/Yukino1010/Music-Generate-Part1/blob/master/output/third.mid]

Although the result looks terrible and had been overfitting,
But it did capture some of the information in the original data, that makes it a bit like real music.

References

davidADSP GDL_code[https://github.com/davidADSP/GDL_code]

music-generate-part1's People

Contributors

yukino1010 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.