Skip to content

cymon4380/markov-melody-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markov Melody Generator

This app generates melodies with Markov chains and saves them to MIDI files.


Usage

python main.py --file FILE [--seed SEED] [--duration DURATION] [--bpm BPM] [--key KEY] [--snap-interval SNAP_INTERVAL] [--chord-type CHORD_TYPE]

Required parameters

  • --file - Output file

Optional parameters

  • --seed - Random seed
  • --duration - Duration of melody (in bars) (default: 16)
  • --bpm - Tempo (in beats per minute) (default: random)
  • --key - Music key (e.g. C, Dm, F#, Bbm) (default: random)
  • --snap-interval - Snap notes to grid every ... bars (default: 4)
  • --chord-type - Type of chords (none / only-root-notes / full) (default: only-root-notes)

Example

python main.py --file output.mid --duration 32 --bpm 135 --key G#

Releases

No releases published

Packages

No packages published

Languages