This app generates melodies with Markov chains and saves them to MIDI files.
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)
python main.py --file output.mid --duration 32 --bpm 135 --key G#