# US 2020/0402488 A1 · Systems, devices, and methods for harmonic structure in digital representations of music

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0402488 A1
- Document ID: US20200402488A1
- Status: Published application
- Kind: A1
- Application number: 16/775,254
- Filed: 2020-01-28
- Published: 2020-12-24
- Earliest claimed: 2019-06-21
- Assignees: Obeebo Labs Ltd.
- Applicants: Obeebo Labs Ltd.
- Inventors: Colin P. Williams
- Web page: https://patentgrep.com/patent/US20200402488A1

## CPC

- G10H 1/0025: {Automatic or semi-automatic music composition, e.g. producing random music, applying rules from music theory or modifying a musical piece (automatically producing a series of tones G10H1/26)}
- G10H 1/0041: {in coded form}
- G10H 1/38: Chord
- G10H 2210/061: for extraction of musical phrases, isolation of musically relevant segments, e.g. musical thumbnail generation, or for temporal structure analysis of a musical piece, e.g. determination of the movement sequence of a musical work
- G10H 2210/066: for pitch analysis as part of wider processing for musical purposes, e.g. transcription, musical performance evaluation; Pitch recognition, e.g. in polyphonic sounds; Estimation or use of missing fundamental
- G10H 2210/081: for automatic key or tonality recognition, e.g. using musical rules or a knowledge base
- G10H 2210/105: Composing aid, e.g. for supporting creation, edition or modification of a piece of music
- G10H 2210/165: Humanizing effects, i.e. causing a performance to sound less machine-like, e.g. by slightly randomising pitch or tempo
- G10H 2240/011: Files or data streams containing coded musical information, e.g. for transmission
- G10H 2240/041: File watermark, i.e. embedding a hidden code in an electrophonic musical instrument file or stream for identification or authentification purposes
- G10H: ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE

## Abstract

Systems, devices, and methods for encoding the harmonic structure of a musical composition in a digital data structure are described. Tonal and rhythmic commonalities are identified across the musical bars that make up a musical composition. Individual bars of the musical composition are each analyzed to characterize their respective harmonic fingerprints in various forms, and the respective harmonic fingerprints are compared to sort the musical bars into harmonic equivalence categories. Isomorphic mappings between hierarchical data structures that encode the musical composition based on musicality and harmony, respectively, are also described. The systems, devices, and methods for encoding the harmonic structure of a musical composition in a digital data structure have broad applicability in computer-based composition and variation of music.

## Claims

### Claim 1

A computer-implemented method of encoding a harmonic structure of a musical composition in a digital data structure, wherein the musical composition includes a sequence of bars, the method comprising:
determining a respective harmonic fingerprint of each bar in the musical composition;
comparing the respective harmonic fingerprints of respective bars in the musical composition to identify sets of harmonically equivalent bars;
assigning a respective harmonic equivalence category to each bar in each respective set of harmonically equivalent bars; and
encoding the respective harmonic equivalence category of each bar in the digital data structure.

### Claim 2 (depends on 1)

The method of claim 1 wherein the digital data structure comprises a set of bar data objects with each bar of the musical composition encoded in a respective bar data object, and wherein encoding the respective harmonic equivalence category of each bar in the digital data structure includes encoding the respective harmonic equivalence category of each bar in a respective corresponding bar data object.

### Claim 3 (depends on 2)

The method of claim 2 wherein the digital data structure further comprises a set of segment data objects with each segment data object encoding a respective sequence of bar data objects, and wherein the method further comprises:
encoding a respective sequence of harmonic equivalence categories in each segment data object.

### Claim 4 (depends on 1)

The method of claim 1 wherein assigning a respective harmonic equivalence category to each bar in each respective set of harmonically equivalent bars includes, for respective pairs of bars in the musical composition:
assigning a first bar in the pair of bars and a second bar in the pair of bars to a same harmonic equivalence category when a comparison between the respective harmonic fingerprints of the first bar and the second bar indicates that the first bar and the second bar are harmonically equivalent to one another; and
assigning the first bar in the pair of bars and the second bar in the pair of bars to different respective harmonic equivalence categories when the comparison between the respective harmonic fingerprints of the first bar and the second bar indicates that the first bar and the second bar are not harmonically equivalent to one another.

### Claim 5 (depends on 1)

The method of claim 1 wherein determining a respective harmonic fingerprint of each bar in the musical composition includes determining a respective note sequence fingerprint of each bar in the musical composition, and wherein determining a respective note sequence fingerprint of each bar in the musical composition includes, for each bar in the musical composition:
sorting all notes in the bar by note start time and, for each note start time, sorting all corresponding notes by note pitch.

### Claim 6 (depends on 5)

The method of claim 5 wherein comparing the respective harmonic fingerprints of respective bars in the musical composition to identify sets of harmonically equivalent bars includes, for respective pairs of bars in the musical composition, determining a difference between:
a maximum of a first length of a first note sequence fingerprint of a first bar in the pair of bars and a second length of a second note sequence fingerprint of a second bar in the pair of bars; and
a length of a longest common note sequence between the first note sequence fingerprint and the second note sequence fingerprint.

### Claim 7 (depends on 1)

The method of claim 1 wherein determining a respective harmonic fingerprint of each bar in the musical composition includes determining a respective note envelope fingerprint of each bar in the musical composition, and wherein determining a respective note envelope fingerprint of each bar in the musical composition includes, for each bar in the musical composition:
sorting all notes in the bar by note start time and, for each note start time, determining a respective highest pitch note and a respective lowest pitch note; and
interpolating between respective lowest pitch notes at successive note start times and between respective highest pitch notes at successive note start times to determine an envelope for the bar.

### Claim 8 (depends on 7)

The method of claim 7 wherein comparing the respective harmonic fingerprints of respective bars in the musical composition to identify sets of harmonically equivalent bars includes, for respective pairs of bars in the musical composition:
creating a first graphic of a first envelope of a first note envelope fingerprint of a first bar in the pair of bars, the first graphic having first pixel dimensions;
creating a second graphic of a second envelope of a second note envelope fingerprint of a second bar in the pair of bars, the second graphic having the first pixel dimensions; and
determining a distance between respective pixel values of the first graphic and the second graphic.

### Claim 9 (depends on 1)

The method of claim 1 wherein determining a respective harmonic fingerprint of each bar in the musical composition includes determining a respective note count distribution fingerprint of each bar in the musical composition, and wherein determining a respective note count distribution fingerprint of each bar in the musical composition includes, for each bar in the musical composition:
determining a number of instances of each unique note in the bar.

### Claim 10 (depends on 9)

The method of claim 9 wherein comparing the respective harmonic fingerprints of respective bars in the musical composition to identify sets of harmonically equivalent bars includes:
determining a mean count distribution of each unique note in the musical composition; and
for respective pairs of bars in the musical composition, determining a sum of:
a Kullback-Leibler Divergence between a first note count distribution fingerprint of a first bar in the pair of bars and the mean count distribution; and
a Kullback-Leibler Divergence between the mean count distribution and a second note count distribution fingerprint of a second bar in the pair of bars.

### Claim 11 (depends on 1)

The method of claim 1 wherein determining a respective harmonic fingerprint of each bar in the musical composition includes determining a respective note energy distribution fingerprint of each bar in the musical composition, and wherein determining a respective note energy distribution fingerprint of each bar in the musical composition includes, for each bar in the musical composition:
determining a respective note energy of each note in the bar, wherein determining a respective note energy of each note in the bar includes, for each note in the bar:
determining, for each instance of the note in the bar, a respective product of note duration multiplied by note volume; and
determining a sum of the respective products.

### Claim 12 (depends on 11)

The method of claim 11 wherein comparing the respective harmonic fingerprints of respective bars in the musical composition to identify sets of harmonically equivalent bars includes:
determining a mean note energy distribution, wherein determining a mean note energy distribution includes determining a respective mean note energy of each unique note in the musical composition; and
for respective pairs of bars in the musical composition, determining a sum of:
a Kullback-Leibler Divergence between a first note energy distribution fingerprint of a first bar in the pair of bars and the mean note energy distribution; and
a Kullback-Leibler Divergence between the mean note energy distribution and a second note energy distribution fingerprint of a second bar in the pair of bars.

### Claim 13 (depends on 1)

The method of claim 1 wherein determining a respective harmonic fingerprint of each bar in the musical composition includes determining a respective audio fingerprint of each bar in the musical composition, and wherein determining a respective audio fingerprint of each bar in the musical composition includes, for each bar in the musical composition:
encoding the bar in a respective audio object.

### Claim 14 (depends on 13)

The method of claim 13 wherein comparing the respective harmonic fingerprints of respective bars in the musical composition to identify sets of harmonically equivalent bars includes, for respective pairs of bars in the musical composition:
determining a first power spectrum of a first audio object corresponding to a first audio fingerprint of a first bar in the pair of bars;
determining a second power spectrum of a second audio object corresponding to a second audio fingerprint of a second bar in the pair of bars; and
determining a Euclidean distance between the first power spectrum and the second power spectrum.

### Claim 15 (depends on 1)

The method of claim 1 wherein determining a respective harmonic fingerprint of each bar in the musical composition includes determining a respective graphical fingerprint of each bar in the musical composition, and wherein determining a respective graphical fingerprint of each bar in the musical composition includes, for each bar in the musical composition:
encoding the bar in a respective graphical image that visually represents musical information contained within the bar, each respective graphical image having a same number of pixels.

### Claim 16 (depends on 15)

The method of claim 15 wherein comparing the respective harmonic fingerprints of respective bars in the musical composition to identify sets of harmonically equivalent bars includes, for respective pairs of bars in the musical composition:
determining a distance between a first graphical image corresponding to a first graphical fingerprint of a first bar in the pair of bars and a second graphical image corresponding to a second graphical fingerprint of a second bar in the pair of bars.

### Claim 17

A system for encoding a harmonic structure of a musical composition in a digital data structure, wherein the musical composition includes a sequence of bars encoded in the digital data structure, the system comprising:
at least one processor; and
a non-transitory processor-readable storage medium communicatively coupled to the at least one processor, the non-transitory processor-readable storage medium storing processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to:
determine a respective harmonic fingerprint of each bar in the musical composition;
compare the respective harmonic fingerprints of respective bars in the musical composition to identify sets of harmonically equivalent bars;
assign a respective harmonic equivalence category to each bar in each respective set of harmonically equivalent bars; and
encode the respective harmonic equivalence category of each bar in the digital data structure.

### Claim 18 (depends on 17)

The system of claim 17 wherein the digital data structure comprises a set of bar data objects with each bar of the musical composition encoded in a respective bar data object, and wherein the processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to encode the respective harmonic equivalence category of each bar in the digital data structure, cause the at least one processor to encode the respective harmonic equivalence category of each bar in a respective corresponding bar data object.

### Claim 19

A computer program product for encoding a harmonic structure of a musical composition in a digital data structure, wherein the musical composition includes a sequence of bars encoded in the digital data structure, the computer program product comprising:
processor-executable instructions and/or data that, when the computer program product is stored in a non-transitory processor-readable storage medium and executed by at least one processor communicatively coupled to the non-transitory processor-readable storage medium, cause the at least one processor to:
determine a respective harmonic fingerprint of each bar in the musical composition;
compare the respective harmonic fingerprints of respective bars in the musical composition to identify sets of harmonically equivalent bars;
assign a respective harmonic equivalence category to each bar in each respective set of harmonically equivalent bars; and
encode the respective harmonic equivalence category of each bar in the digital data structure.

### Claim 20 (depends on 19)

The computer program product of claim 19 wherein the digital data structure comprises a set of bar data objects with each bar of the musical composition encoded in a respective bar data object, and wherein the processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to encode the respective harmonic equivalence category of each bar in the digital data structure, cause the at least one processor to encode the respective harmonic equivalence category of each bar in a respective corresponding bar data object.
