get_scale
Generate scale notes from a scale type and optional root. Returns intervals without root, spelled notes with root, or concrete MIDI pitches with octave.
Instructions
Describe a scale type; with a root note, generate its notes.
Without root: intervals and degree labels only (e.g. major = 0 2 4 5 7 9 11).
With root: the spelled notes, e.g. get_scale('major', 'C') -> C D E F G A B C.
Give the root an octave for concrete pitches: get_scale('major', 'C5') ->
C5 ... C6 plus MIDI numbers. The returned notes array feeds directly into
match_chords, random_notes, notes_to_midi, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale_type | Yes | ||
| root | No |