Skip to content

This is a repo that impelements a simple markov chain to generate pitches to play based on a given dataset

Notifications You must be signed in to change notification settings

RaidOuahioune/Markov-Chain-For-Music-Generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This a Markov chain model built from scratch in the goal of music generation(piano pitches)

The models uses the current pitch and its duration(ie the current state only ) to predict the next picth and its duration also, meaning the model is equivalent to a markovify model with state_order=1

So in our model the state consists of a tuple of 2 things:

  1. Pitch Type: For example C5 , D4 ...

  2. The duration: 1,2 ...

The model takes an ordered sequence of pitches and calculate the frequency of each 2 consecutive pairs to infer the transition matrix from one state to another.

About

This is a repo that impelements a simple markov chain to generate pitches to play based on a given dataset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages