GithubHelp home page GithubHelp logo

ashishrana160796 / markovmusicalchain Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 454 KB

Markov chain being used to make music i.e. an example of Grapheme to Phoneme

License: The Unlicense

Python 100.00%
markov-chain grapheme music phonemes midi-files mido markov-model python3 beginner-friendly beginner-project

markovmusicalchain's Introduction

MarkovMusicalChain

Markov chain being used to make music i.e. an example of Grapheme to Phoneme


Requirements

  • Mido library
  • Python 3.5.2 or any 3.x

Introduction

The order of this Markov chain is not fixed, it varies according to file that is under analysis. Midi files are used as input and for music generation considering the simplicity. For each note the duration is rounded and grouped with every note that is played at the same time. This will result in a 2D matrix storing from_notes and to_notes:time. Which will help us to get resultant markov chain. This project is using different Classical Indian Music(Raga) styles as input. Limitation of markov chains is that hidden information like HMM model cannot be utilized only probabilites from previous state can be utilized.


Command Used For Running Files from Home Directory

  • printfile.py : python3 util/printfile.py _in_raga/Bageshri.mid | head -50
  • generator.py : python3 src/generator.py _in_raga/Bageshri.mid _out_raga/BageshriExtended.mid
  • markov_chain.py : python3 src/markov_chain.py demo
  • parser.py : python3 src/parser.py _in_raga/Bageshri.mid

Reference and Resources

markovmusicalchain's People

Contributors

ashishrana160796 avatar

Stargazers

 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.