music_theory
Get scale notes for any root and scale type, or generate chord progressions by key and style, writing the resulting pattern into the current session.
Instructions
Music-theory queries. query=scale returns the notes of a scale (e.g. "C major scale: C, D, E, F, G, A, B"). query=chord_progression returns a chord progression for the key/style AND writes the resulting chord pattern into the current session. Example: music_theory({ query: "scale", root: "C", scale: "major" }). For pattern generation (drums/bass/melody) use generate_part; for rhythmic patterns use generate_rhythm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Which theory query | |
| root | No | Root note (query=scale; also used as key for chord_progression) | |
| scale | No | Scale type (query=scale) | |
| key | No | Key (query=chord_progression) | |
| style | No | Style (query=chord_progression: pop/jazz/blues/etc) | |
| session_id | No | Optional session ID (#108). Omit to use default session. |