Tutorial with explanations to learn the B scale and its variants on guitar.
B major scale
B minor scale (natural)
B pentatonic (blues)
B major flamenco (harmonic minor)
B minor flamenco (harmonic minor)
Learn more about the scale on guitar
The logic of tracing the patterns with the chord note requires to know the notes of the guitar. I refer you to our course on guitar notes.