"Our ears interpret a changing pattern in air pressure as sound. If the pressure pattern repeats periodically, we experience a sensation of **pitch**.\n",
"\n",
"Pitch is determined by the pattern's **frequency** (i.e. the number of times per second that the pattern repeats). The actual *shape* of the pattern only affects what we call the _timbre_ of the sound (note: _affects_ not _determine_; many more things go into our sense of timbre). "
"The actual mechanics of sound production will enter the story a bit later. For now, let's use the simplest form of periodic patterns, namely, **sinusoids**. "
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "dd746b52-796e-4f22-a36d-65b21d1d2d02",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "90053ce2",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### 1.2. Continuum and categorical perception\n",
+ "Ancient monophonic instrument used in ancient Greece (VI century BC). The motion of the vibrating string can be decomposed into the sum of harmonic standing waves with frequencies\n",
+ "Naturally occurring pitched sounds possess a _harmonic_ spectrum, with frequency content pooled around multiples of the fundamental frequency $f_1$. "
"It was known since antiquity that two vibrating strings sound well together if the length of the second string is **two thirds** of the first. This correspond of a frequency scaling factor equal to $3/2 = 1.5$\n",
"\n",
"The $3/2$ frequency ratio is called a **fifth** (for anachronistic reasons that will be clear later...)"
"Just intonation bypasses the geometric construction of Pythagorean tuning and defines the degrees of the scale in terms of \"what sounds good\". This intonation is also known as the Ptolemaic tuning.\n",
"\n",
"It turns out that most good intervals are described by simple fractions!"
"Consonance and dissonance for real-world musical sound has a lot to do with the harmonic nature of the associated spectra. Let's unpack this a bit at a time."
]
},
{
"cell_type": "markdown",
- "id": "7bb7c194-56f7-454a-8ecf-dc1c15fbd786",
+ "id": "39cd39b0-23d9-42c3-8a52-0584c88952fc",
+ "metadata": {},
+ "source": [
+ "#### 4.2.1. Frequency beatings\n",
+ "\n",
+ "Two sinusoidal tones close in frequency produce so-called beatings: the sound is perceived as a single tone modulated in amplitude at a rate equal to the difference between frequencies:\n",
+ "If $\\omega_a \\approx \\omega_b$, then $(\\omega_a + \\omega_b)/2 \\approx \\omega_a $ and $(\\omega_a - \\omega_b)/2$ will have a very low frequency."
- "beatings: a \"blurry\" spectral perception induces an unwanted temporal percpetion"
+ "The basilar membrane in the cochlea is composed of frequency-selective regions called _critical bands_. The ear can only resolve frequencies falling in distinct critical bands, whose spacing is logarithmic. Critical bands are also involved in the mechanism of _masking_.\n",
+ "\n",
+ "Beatings occur when a \"blurry\" spectral perception induces an unwanted temporal percpetion. Beatings are generally unwanted and unpleasant."
]
},
{
"cell_type": "markdown",
"id": "d6cad5fb-f312-4330-9664-d850d3fdf0a7",
"metadata": {},
"source": [
- "#### 4.2.2. Perceptual dissonance curves and critical band\n",
+ "#### 4.2.3. Perceptual dissonance curves\n",
"\n",
- "A classic psychoacoustic experiment by Plompt and Levelt (1965) using sinusoids established the relation between the perceptual concept of consonance/dissonance and the physical nature of _critical bands_. Listeners are asked to rate the level of dissonance between two tones like so:"
+ "A classic psychoacoustic experiment by Plompt and Levelt (1965) produced a model for the relation between the perceptual concept of consonance/dissonance and the physical nature of critical bands. Listeners are asked to rate the level of dissonance between two sinudoidal tones like so:"
- "The shape of the dissonance curve reflects the structure of the basilar membrane in the cochlea: frequency-selective regions are called _critical bands_ and their width affects the ability of the ear to resolve sinusoidal stimuli close in frequency. Critical bands are also involved in the mechanism of _masking_."
- ]
- },
{
"cell_type": "markdown",
"id": "7b8d2c5e-57dc-46cc-8ae4-d5dc61c9cc61",
"metadata": {},
"source": [
- "#### 4.2.3. Consonance and dissonance: the simple cases\n",
+ "#### 4.2.4. Consonance and dissonance: the simple cases\n",
"\n",
"Octaves sound good togehter because all partials overlap and so there are no frequency lines that are closely spaced"
"The Plompt-Levelt curve applies to pairs of puire sinusoids. To determine the consonance of two harmonic spectra, we can accumulate the dissonance scores for all pairs of spectral lines in the two tones:"
"plt.xticks([n/d for n, d in intervals], ['{}/{}'.format(n, d) for n, d in intervals]);\n",
"plt.yticks([]);"
]
},
{
"cell_type": "markdown",
"id": "8691933d-d61a-46d4-b9f5-71aabdb9fef7",
"metadata": {},
"source": [
"### 4.3. The dirty secret of Just Intonation: the comma pump\n",
"\n",
"Zarlino (XVI century) considered JI the only intonation suitable for singing. But a cappella groups singing in JT are prone to the so-called _comma pump_."