Pentatonic plus deliberate friction
Minor pentatonic + one deliberate clash
The blues scale is a construction in two moves. Start with the A minor pentatonic — five clash-free notes (A C D E G). Then do something the clash detector said not to: add the flattened 5th (♭5) — here the note E♭ — a semitone-neighbour of both D and E. That “blue note” is deliberate friction. The ♭5 is the interval name (it works the same way in any key); E♭ is what that interval lands on in A. Toggle it and generate licks with and without the grit.
Every press writes a new two-bar lick (8 beats) over a bass vamp on A — sometimes with a run of triplets. The amber key is the blue note.
An honest caveat
This demo generates the construction of blues — the note set and the deliberate friction. It does not generate the idiom: real blues lives in bends, slides and microtones between these keys, in phrasing, and in call-and-response — things a rule system cannot produce. The scale is the doorway, not the room.