"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",
"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",
+ "metadata": {},
+ "source": [
+ "#### 4.2.1. Dissonance and beatings\n",
+ "\n",
+ "beatings: a \"blurry\" spectral perception induces an unwanted temporal percpetion"
+ ]
+ },
{
"cell_type": "markdown",
"id": "d6cad5fb-f312-4330-9664-d850d3fdf0a7",
"metadata": {},
"source": [
- "#### 4.2.2. The critical band and dissonance curves\n",
+ "#### 4.2.2. Perceptual dissonance curves and critical band\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:"
"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.1. Consonance and dissonance: the simple cases\n",
+ "#### 4.2.3. 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_."