Accidentals
Sharps, flats and naturals change a written note; they do not necessarily announce a key change.
Read the note before the symbol
A sharp raises a written pitch by a semitone, a flat lowers it and a natural cancels a previous sharp or flat in the relevant notation context. The key signature supplies a standing default, while an accidental beside a note changes that local instruction. If a melody in G major needs F-natural for one moment, the natural sign tells the player exactly where.
Change one melodic color
Play G–A–B–C–D, then play G–A–B-flat–C–D. The one changed note alters the color without requiring a new instrument or chord. Write both versions and listen against the same G bass note. Then move the bass to E-flat and hear how the altered melody note gains a different role.
Keep local changes readable
Notation rules about how long an accidental carries can vary by style and edition. A playback program may display a courtesy accidental to prevent confusion. When writing for people, choose clarity over a clever but ambiguous page; when editing MIDI, listen as well as checking the displayed spelling.
Related entries
Further reading
These source links provide technical background; the exercises above are Eidolon's own editorial guidance.