ArticleslgStudy

computer science

Music cipher

Music cipher is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Music cipher rather than just read about it. In short: In cryptography, a music cipher is an algorithm for the encryption of a plaintext into musical symbols or sounds. Music-based ciphers are related to, but not the same as musical cryptograms.

Music cipher — main illustration
Music cipher — illustration

Key takeaways

  • Music cipher belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Music cipher to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Music cipher from memory before moving on to harder problems.

Reference excerpt

In cryptography, a music cipher is an algorithm for the encryption of a plaintext into musical symbols or sounds. Music-based ciphers are related to, but not the same as musical cryptograms. The latter were systems used by composers to create musical themes or motifs to represent names based on similarities between letters of the alphabet and musical note names, such as the BACH motif, whereas music ciphers were systems typically used by cryptographers to hide or encode messages for reasons of secrecy or espionage.

Types There are a variety of different types of music ciphers as distinguished by both the method of encryption and the musical symbols used. Regarding the former, most are simple substitution ciphers with a one-to-one correspondence between individual letters of the alphabet and a specific musical note. There are also historical music ciphers that utilize homophonic substitution (one-to-many), polyphonic substitution (many-to-one), compound cipher symbols, and/or cipher keys; all of which can make the enciphered message more difficult to break. Regarding the type of symbol used for substitution, most music ciphers utilize the pitch of a musical note as the primary cipher symbol. Since there are fewer notes in a standard musical scale (e.g., seven for diatonic scales and twelve for chromatic scales) than there are letters of the alphabet, cryptographers would often combine the note name with additional characteristics––such as octave register, rhythmic duration, or clef––to create a complete set of cipher symbols to match every letter. However, there are some music ciphers which rely exclusively on rhythm instead of pitch or on relative scale degree names instead of absolute pitches.

Musical steganography

Music ciphers often have both cryptographic and steganographic elements. Simply put, encryption is scrambling a message so that it is unreadable; steganography is hiding a message so no one knows it is even there. Most practitioners of music ciphers believed that encrypting text into musical symbols gave it added security because, if intercepted, most people would not even suspect that the sheet music contained a message. However, as Francesco Lana de Terzi notes, this is usually not because the resulting cipher melody appears to be a normal piece of music, but rather because so few people know enough about music to realize it is not ("ma gl'intelligenti di musica sono poci"). A message can also be visually hidden within a page of music without actually being a music cipher. William F. Friedman embedded a secret message based on Francis Bacon's cipher into a sheet music arrangement of Stephen Foster's "My Old Kentucky Home" by visually altering the appearance of the note stems. Another steganographic strategy is to musically encrypt a plaintext, but hide the message-bearing notes within a larger musical score that requires some visual marker that distinguishes them from the meaningless null-symbol notes (e.g., the cipher melody is only in the tenor line or only the notes with stems pointing down).

The cipher manuscript from Agostino Amadi there is a musical score in 41v with a pseudo-letter ciphered in it, which is an imaginary letter that Venice writes to Charles V. Italian historian Paolo Preto. "...The emperor sent to prince Gritti, with whom he had been familiar for a long time, a music score that looked like a madrigal....The prince summoned Willaert and the other musicians and asked them to play the melody sent to them by emperor Charles V. When Willaert and the others carefully studied the score, they were unable to play it and confessed they could not understand it."

Diatonic substitution ciphers

Diatonic music ciphers utilize only the seven basic note names of the diatonic scale: A, B, C, D, E, F, and G. While some systems reuse the same seven pitches for multiple letters (e.g., the pitch A can represent the letters A, H, O, or V), most algorithms combine these pitches with other musical attributes to achieve a one-to-one mapping. Perhaps the earliest documented music cipher is found in a manuscript from 1432 called "The Sermon Booklets of Friar Nicholas Philip." Philip's cipher uses only five pitches, but each note can appear with one of four different rhythmic durations, thus providing twenty distinct symbols. A similar cipher appears in a 15th-century British anonymous manuscript as well as in a much later treatise by Giambattista della Porta. In editions of the same treatise (De Furtivis Literarum Notis), Porta also presents a simpler cipher which is much more well-known. Porta's music cipher maps the letters A through M (omitting J and K) onto a stepwise, ascending, octave-and-a-half scale of whole notes (semibreves); with the remainder of the alphabet (omitting V and W) onto a descending scale of half notes (minims). Since alphabetic and scalar sequences are in such close step with each other, this is not a very strong method of encryption, nor are the melodies it produces very natural. Nevertheless, one finds slight variations of this same method employed throughout the 17th and 18th centuries by Daniel Schwenter (1602), John Wilkins (1641), Athanasius Kircher (1650), Kaspar Schott (1655), Philip Thicknesse (1722), and even the British Foreign Office (ca. 1750).

… excerpt ends here. Continue reading the full article.

Illustrations

Music cipher: Giambattista della Porta's music cipher from De Furtivis Literarum Notis (1602).
Giambattista della Porta's music cipher from De Furtivis Literarum Notis (1602).
Music cipher: Madrigal score Amadi (1588)
Madrigal score Amadi (1588)
Music cipher: Music cipher from "The Sermon Booklets of Friar Nicholas Philip" (1436).
Music cipher from "The Sermon Booklets of Friar Nicholas Philip" (1436).
Music cipher: Music Cipher attributed to Michael Haydn (1808)
Music Cipher attributed to Michael Haydn (1808)
Music cipher: Motivic music cipher by Johann Bücking (1804)
Motivic music cipher by Johann Bücking (1804)

Worked examples

Example 1 — a first encounter with Music cipher

Start with the simplest possible case. Write down what Music cipher claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Music cipher before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Music cipher ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Music cipher

In research
Music cipher appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Music cipher in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Music cipher is common in secondary-school and first-year university syllabi. It links to neighbouring topics Ciphers, Cryptography, Music theory, so understanding it makes those chapters shorter.
In everyday life
Look for Music cipher outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Music cipher in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Music cipher means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Music cipher out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Music cipher in simple terms?

In cryptography, a music cipher is an algorithm for the encryption of a plaintext into musical symbols or sounds. Music-based ciphers are related to, but not the same as musical cryptograms.

Why does Music cipher matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Music cipher?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Music cipher.

Tags

  • Ciphers
  • Cryptography
  • Music theory

Keep exploring