Fundamentals

Key Signature

Simple definition
A key signature is the set of sharps or flats at the start of a staff that tells you the home scale — which notes are normally in the key. It is a spelling shortcut, not a law against accidentals. In a DAW you may set a key so MIDI tools snap to the scale. Listeners hear the key as the place the song wants to rest.
Technical definition
In notation, a key signature assigns accidentals to pitch classes for the duration of the piece or until it changes. It corresponds to a major key or its relative minor (and other modes that share a signature). It does not by itself prove the tonal centre; melody and cadence do. MIDI key tracks and scale lock are production analogues. Modulation may change signature or simply add accidentals.
Example
A song in G major shows one sharp (F sharp) on the staff. The guitarist still plays an occasional F natural as a blues colour; that accidental is written in the bar, not in the signature.

Why it matters

Players read faster when the default notes are declared. Producers who set the session key make scale-aware MIDI and sample mapping less error-prone. For listeners, a clear key makes choruses land; an unclear one can feel like the song never arrives. Collaboration also needs a shared name: 'we are in D minor' is faster than humming every take.

How to use it

Find the note and chord that feel like home, then name the major or minor scale that matches most of the melody. Set that key in the DAW if you use scale highlighting. When you modulate, change the signature or mark the new centre in the arrangement so later you remember why a section 'goes bright'. Do not force a modal song into a major signature that keeps needing accidentals.

Common mistakes

Confusing key signature with the starting chord. Locking MIDI to the wrong scale and then 'fixing' good blue notes as errors. Another mistake is writing a signature that does not match how the band actually tunes (capo, detuned synth, just drones).

FAQ

Does a key signature tell me the tempo or feel?
No. It only defaults the pitch set. Tempo, metre and groove are separate.
Can a song change key without a new signature?
Yes. Accidentals can carry a modulation. A new signature is a courtesy when the new centre lasts.