In music, modulation is a change of key. The change of key is a slide from a secondary dominant ("a hint of another key") to the actual modulation with a "new" tonic. A brief change of key can also be called a deviation. Defining the terms secondary dominant, deviation, and modulation can sometimes be difficult.
In traditional music theory, modulation is divided into subcategories: