The cognitive neuroscience of music is the scientific study of brain-based mechanisms involved in the cognitive processes underlying music. Methods include functional magnetic resonance imaging (fMRI), transcranial magnetic stimulation (TMS), magnetoencephalography (MEG), electroencephalography (EEG), and positron emission tomography (PET).