Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 823 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 823 Bytes

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#