chords_to_midi
Convert a chord sequence into a MIDI file, supporting block chords or arpeggiated patterns. Accepts chord symbols or explicit note arrays, and returns the file path and base64 data along with voiced notes.
Instructions
Write a chord sequence to a MIDI file (block chords, or arpeggiated).
chords items are chord symbols ('C', 'Am7', 'F#dim', 'C/E', 'C4maj7' —
e.g. the symbols output of degrees_to_chords) and/or explicit note
arrays (['C','E','G'] or ['C4','E4','G4']). Octave-less chords are voiced
upward from octave. Each chord lasts beats_per_chord. Returns the file
path and base64 plus each chord's voiced notes and MIDI numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chords | Yes | ||
| beats_per_chord | No | ||
| tempo | No | ||
| octave | No | ||
| arpeggiate | No | ||
| velocity | No | ||
| program | No | ||
| file_name | No | ||
| output_dir | No |