# Musical acoustics

Musical acoustics or music acoustics is a multidisciplinary field that combines knowledge from physics, psychophysics, organology (classification of the instruments), physiology, music theory, ethnomusicology, signal processing and instrument building, among other disciplines. As a branch of acoustics, it is concerned with researching and describing the physics of music – how sounds are employed to make music. Examples of areas of study are the function of musical instruments, the human voice (the physics of speech and singing), computer analysis of melody, and in the clinical use of music in music therapy.
The pioneer of music acoustics was Hermann von Helmholtz, a German polymath of the 19th century who was an influential physician, physicist, physiologist, musician, mathematician and philosopher. His book On the Sensations of Tone as a Physiological Basis for the Theory of Music is a revolutionary compendium of several studies and approaches that provided a complete new perspective to music theory, musical performance, music psychology and the physical behaviour of musical instruments.

## Methods and fields of study

* The physics of musical instruments
* Frequency range of music
* Fourier analysis
* Computer analysis of musical structure
* Synthesis of musical sounds
* Music cognition, based on physics (also known as psychoacoustics)

## Physical aspects

Whenever two different pitches are played at the same time, their sound waves interact with each other – the highs and lows in the air pressure reinforce each other to produce a different sound wave. Any repeating sound wave that is not a sine wave can be modeled by many different sine waves of the appropriate frequencies and amplitudes (a frequency spectrum). In humans the hearing apparatus (composed of the ears and brain) can usually isolate these tones and hear them distinctly. When two or more tones are played at once, a variation of air pressure at the ear "contains" the pitches of each, and the ear and/or brain isolate and decode them into distinct tones.
When the original sound sources are perfectly periodic, the note consists of several related sine waves (which mathematically add to each other) called the fundamental and the harmonics, partials, or overtones. The sounds have harmonic frequency spectra. The lowest frequency present is the fundamental, and is the frequency at which the entire wave vibrates. The overtones vibrate faster than the fundamental, but must vibrate at integer multiples of the fundamental frequency for the total wave to be exactly the same each cycle. Real instruments are close to periodic, but the frequencies of the overtones are slightly imperfect, so the shape of the wave changes slightly over time.

## Subjective aspects

Variations in air pressure against the ear drum, and the subsequent physical and neurological processing and interpretation, give rise to the subjective experience called sound. Most sound that people recognize as musical is dominated by periodic or regular vibrations rather than non-periodic ones; that is, musical sounds typically have a definite pitch. The transmission of these variations through air is via a sound wave. In a very simple case, the sound of a sine wave, which is considered the most basic model of a sound waveform, causes the air pressure to increase and decrease in a regular fashion, and is heard as a very pure tone. Pure tones can be produced by tuning forks or whistling. The rate at which the air pressure oscillates is the frequency of the tone, which is measured in oscillations per second, called hertz. Frequency is the primary determinant of the perceived pitch. Frequency of musical instruments can change with altitude due to changes in air pressure.

## Pitch ranges of musical instruments

*This chart only displays down to C$_0$, though some pipe organs, such as the Boardwalk Hall Auditorium Organ, extend down to C$_{−1}$ (one octave below C$_0$). Also, the fundamental frequency of the subcontrabass tuba is B♭$_{−1}$.

## Harmonics, partials, and overtones

The fundamental is the frequency at which the entire wave vibrates. Overtones are other sinusoidal components present at frequencies above the fundamental. All of the frequency components that make up the total waveform, including the fundamental and the overtones, are called partials. Together they form the harmonic series.
Overtones that are perfect integer multiples of the fundamental are called harmonics. When an overtone is near to being harmonic, but not exact, it is sometimes called a harmonic partial, although they are often referred to simply as harmonics. Sometimes overtones are created that are not anywhere near a harmonic, and are just called partials or inharmonic overtones.
The fundamental frequency is considered the first harmonic and the first partial. The numbering of the partials and harmonics is then usually the same; the second partial is the second harmonic, etc. But if there are inharmonic partials, the numbering no longer coincides. Overtones are numbered as they appear above the fundamental. So strictly speaking, the first overtone is the second partial (and usually the second harmonic). As this can result in confusion, only harmonics are usually referred to by their numbers, and overtones and partials are described by their relationships to those harmonics.

## Harmonics and non-linearities

When a periodic wave is composed of a fundamental and only odd harmonics (f, 3 f, 5 f, 7 f, ...), the summed wave is half-wave symmetric; it can be inverted and phase shifted and be exactly the same. If the wave has any even harmonics (2 f, 4 f, 6 f, ...), it is asymmetrical; the top half of the plotted wave form does not mirror image the bottom.
Conversely, a system that changes the shape of the wave (beyond simple scaling or shifting) creates additional harmonics (harmonic distortion). This is called a non-linear system. If it affects the wave symmetrically, the harmonics produced are all odd. If it affects the harmonics asymmetrically, at least one even harmonic is produced (and probably also odd harmonics).

## Harmony

If two notes are simultaneously played, with frequency ratios that are simple fractions (e.g. ⁠ 2 / 1 ⁠ , ⁠3/ 2 ⁠ , or ⁠5/ 4 ⁠ ), the composite wave is still periodic, with a short period – and the combination sounds consonant. For instance, a note vibrating at 200 Hz and a note vibrating at 300 Hz (a perfect fifth, or ⁠3/ 2 ⁠ ratio, above 200 Hz) add together to make a wave that repeats at 100 Hz: Every ⁠1/ 100 ⁠ of a second, the 300 Hz wave repeats three times and the 200 Hz wave repeats twice. Note that the combined wave repeats at 100 Hz, even though there is no actual 100 Hz sinusoidal component contributed by an individual sound source.
Additionally, the two notes from acoustical instruments will have overtone partials that will include many that share the same frequency. For instance, a note with the frequency of its fundamental harmonic at 200 Hz can have harmonic overtones at: 400, 600, 800, 1000, 1200, 1400, 1600, 1800, ... Hz. A note with fundamental frequency of 300 Hz can have overtones at: 600, 900, 1200, 1500, 1800, ... Hz. The two notes share harmonics at 600, 1200, 1800 Hz, and more that coincide with each other, further along in the each series.
Although the mechanism of human hearing that accomplishes it is still incompletely understood, practical musical observations for nearly 2000 years The combination of composite waves with short fundamental frequencies and shared or closely related partials is what causes the sensation of harmony: When two frequencies are near to a simple fraction, but not exact, the composite wave cycles slowly enough to hear the cancellation of the waves as a steady pulsing instead of a tone. This is called beating, and is considered unpleasant, or dissonant.
The frequency of beating is calculated as the difference between the frequencies of the two notes. When two notes are close in pitch they beat slowly enough that a human can measure the frequency difference by ear, with a stopwatch; beat timing is how tuning pianos, harps, and harpsichords to complicated temperaments was managed before affordable tuning meters.
* For the example above, | 200 Hz − 300 Hz |  =  100 Hz .
* As another example from modulation theory, a combination of  3425 Hz  and  3426 Hz  would beat once per second, since   | 3425 Hz − 3426 Hz |  =  1 Hz .
The difference between consonance and dissonance is not clearly defined, but the higher the beat frequency, the more likely the interval is dissonant. Helmholtz proposed that maximum dissonance would arise between two pure tones when the beat rate is roughly 35 Hz.

## Scales

The material of a musical composition is usually taken from a collection of pitches known as a scale. Because most people cannot adequately determine absolute frequencies, the identity of a scale lies in the ratios of frequencies between its tones (known as intervals).
The diatonic scale appears in writing throughout history, consisting of seven tones in each octave. In just intonation the diatonic scale may be easily constructed using the three simplest intervals within the octave, the perfect fifth (3/2), perfect fourth (4/3), and the major third (5/4). As forms of the fifth and third are naturally present in the overtone series of harmonic resonators, this is a very simple process.
The following table shows the ratios between the frequencies of all the notes of the just major scale and the fixed frequency of the first note of the scale.
| C | D | E | F | G | A | B | C |
| 1 | 9/8 | 5/4 | 4/3 | 3/2 | 5/3 | 15/8 | 2 |
There are other scales available through just intonation, for example the minor scale. Scales that do not adhere to just intonation, and instead have their intervals adjusted to meet other needs are called temperaments, of which equal temperament is the most used. Temperaments, though they obscure the acoustical purity of just intervals, often have desirable properties, such as a closed circle of fifths.