The chord providing the chord tones, as a chord symbol, chord
data, or a Chord.
A key of NAMED_SCALES, or an alias of one. A world scale is not one: chord-scale theory is a Western practice, so a raga named here is rejected rather than answered with a number.
Set use: 'melodic' to judge a line rather than a voicing.
The avoid-note pitch classes, sorted ascending in [0, 11].
List a scale's avoid notes over a chord.
An avoid note is a non-chord scale tone that lies a semitone directly above a chord tone, or the third a suspension displaced; sounding it against the chord clashes. The scale is rooted on the chord root. If the scale does not contain the chord, no avoid notes exist.
The rule states which tones must not be sounded against the chord, which is not the same question as which tones a line may not touch. Pass
{ use: 'melodic' }for the melodic reading: only the semitone above the root survives it, so the result is always a subset of the harmonic one.