{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "\n", "\n", "In this notebook, we discuss the notion of chroma and introduce Shepard's helix of pitch following Section 1.1.1 of [Müller, FMP, Springer 2015]. Furthermore, we introdue a sonfication of chroma using Shepard tones. \n", "
" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Chroma\n", "\n", "Ordering all notes of the equal-tempered scale according to their pitches, one obtains an equal-tempered **chromatic scale**, where all notes of the scale are equally spaced. The term **chromatic** is derived from the Greek word **chroma**, meaning color. In the music context, the term **chroma** closely relates to the twelve different pitch classes. For example, the notes C2 and C5 both\n", "have the same chroma value C. In other words, all notes that have the same chroma value belong to the same pitch class.\n", "\n", "Notes that belong to the same pitch class (or have the same chroma value) are perceived as similar in a certain way. In contrast, notes that belong to different pitch classes (or have different chroma values) are perceived as dissimilar. This justifies the usage of the term **chroma** in the sense that\n", "notes with different chroma values have a different **sound color.** The cyclic nature of chroma values is illustrated by the **chromatic circle** as shown in the following figure. Extending this notion, **Shepard's helix of pitch**, named after Roger Shepard (\\* 1929), represents the linear pitch space as a helix wrapped around a cylinder so that octave-related pitches lie along a single vertical line. The projection of the cylinder onto the horizontal plane yields the chromatic circle.\n", "\n", "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Shepard Tones\n", "\n", "Shepard's helix of pitch can be sonified using Shepard tones, each being a weighted superposition of sine waves separated by octaves. When playing these tones moving up the chromatic scale, one obtains the auditory illusion of a tone that continuously moves up (similar to the visual illusion of the every ascending Penrose stairs). \n", "\n", "\n", "\n", "In the following code example, only sine waves within the human range of hearing (frequencies from approximately 20 to 20000 Hertz) are used. No specific weighting is used, i.e., all sine waves have an amplitude of one. Finally, Shepard tones are generated for a chromatic scale starting with C3 (MIDI pitch 48) and ending wtih C5 (MIDI pitch 72).\n", "\n", "" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "execution": { "iopub.execute_input": "2024-02-15T08:45:09.368802Z", "iopub.status.busy": "2024-02-15T08:45:09.368553Z", "iopub.status.idle": "2024-02-15T08:45:10.542126Z", "shell.execute_reply": "2024-02-15T08:45:10.541379Z" } }, "outputs": [ { "data": { "text/html": [ "\n", " \n", " " ], "text/plain": [ "\n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " |