Johann Sebastian Bach encoded his surname into a musical cryptogram using German note names:
B♭ – A – C – B♮
(In German notation: B = B-flat, H = B-natural.)
This four-note motif appears in numerous works, most famously as the fugue subject in The Art of Fugue (Contrapunctus XIV, unfinished) and throughout the B Minor Mass. One of music history's most famous musical signatures.
Note: The alternative "F♯ – A♯ – C♯ – B" in some sources is a transposition, not the literal German spelling.