get_chord
Generate chord notes from a chord type and optional root, returning intervals, note names, or MIDI pitches for music composition.
Instructions
Describe a chord type; with a root note, generate its notes.
Without root: intervals and degrees only (e.g. minor 7 = 0 3 7 10).
With root: the spelled chord, e.g. get_chord('min', 'F') -> F Ab C.
Give the root an octave for concrete pitches: get_chord('9', 'C4') ->
C4 E4 G4 Bb4 D5 plus MIDI numbers. The returned notes array feeds
directly into random_notes, notes_to_midi, match_scales, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chord_type | Yes | ||
| root | No |