Coder Social home page Coder Social logo

chyauang / dnn-composer Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 3.0 24.37 MB

An experimental work in Python mainly using RNN and CNN for algorithmic composition.

License: MIT License

Python 100.00%
algorithmic-composition deep-neural-networks cnn rnn abc-notation style-transfer

dnn-composer's Introduction

DNN-Composer

An experimental work in Python mainly using GNN and CNN for Algorithmic composition.

 This work is inspired by this paper and this paper.
 The main idea of this work is to generate a melody by using GNN and to change its style by using CNN.
 Take the differences between a melody and an image into consideration,the idea metioned above is just a tentative version.
 This work is now under experiment.The final version will be commited once finished.

The preprocessing part

 The ABC notation, compared with the MIDI, is more human-oriented than machine-oriented. So a preprocessing procedure is necessary. This part aims at extracting useful information from the raw text data of the data set, by processing the prefixes and suffixes of each note.

 The main files in this part and their functions are as follows:
  ABCParser.py : ABC parser for ABC notation files.
  DataPreprocess.py : extracting the pitch and duration information from the data set.
  GetPitchDurationData.py : getting the pitch and duration information and write them in files.
  GlobalConstant.py : several global constants in this part.

 Pitch.dat and Duration.dat are uploaded. The files contain the extracted information mentioned above. They all are normalized to reduce redundancies in representations. The normalization process is in DataPreprocess.py.

The melody generating part

 This part aims at generating new melodies by the nerual network model. The nerual network consists of two part: the melody model and the rhythm part.
 The main files in this part and their functions are as follows:
  GetData.py : get the inputs of the melody model and the rhythm model from the pitch and duration.
  MelodyGenerater.py : build the models, train and test and evaluate them, then generate new melodies.
  generaterTester.py : the current entry of the work.

 This part is very memory-consuming. The optimization is now in process.

    

dnn-composer's People

Contributors

chyauang avatar ibuki77777 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.