Transcribing Music

The following code samples demonstrate how to transcribe music via jythonMusic.

Ludwig van Beethoven – “Für Elise”

This code sample (Ch. 3, p. 56) demonstrates how to create phrases and add notes to them. It generates the theme from one of the most popular classical pieces, Ludwig van Beethoven’s Bagatelle No. 25 in A minor for solo piano, commonly known as “Für Elise” (for Elise).

2Pac – “Changes”

This code sample (Ch. 3, p. 68) demonstrates how to use lists to create chord progressions. It generates the main chord progression from 2Pac’s (Tupac Shakur’s) “Changes” (1998). It so happens that this is the same chord progression as in Bruce Hornsby’s “The Way It Is” (1986).

Joseph Kosma – “Autumn Leaves” (Jazz Trio)

This code sample (Ch. 3, p. 77) demonstrates how to create a score containing different parts, each containing a different phrase. This is a complete example of the Score, Part, Phrase, Note data structure. It generates the theme from “Autumn Leaves”.

Deep Purple—“Smoke on the Water”

This code sample (Ch. 3, p. 83) demonstrates how to combine drums with other instruments. It is the opening of Deep Purple’s “Smoke on the Water,” a rock riff from 1972. It combines melody, chords (actually, power-chords constructed from two simultaneous pitches), and drums. The emphasis here is on demonstrating how to combine the various building elements we have seen so far.