# US 2021/0287642 A1 · Systems, devices, and methods for segmenting a musical composition into musical segments

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

- Number: US 2021/0287642 A1
- Document ID: US20210287642A1
- Status: Published application
- Kind: A1
- Application number: 17/334,753
- Filed: 2021-05-30
- Published: 2021-09-16
- Earliest claimed: 2020-01-28
- Assignees: Obeebo Labs Ltd.
- Applicants: Obeebo Labs Ltd.
- Inventors: Colin P. Williams
- Web page: https://patentgrep.com/patent/US20210287642A1

## CPC

- G10H 1/0008: {Associated control or indicating means}
- G10G 1/00: Means for the representation of music
- 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 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/105: Composing aid, e.g. for supporting creation, edition or modification of a piece of music
- G10H 2250/135: Autocorrelation
- 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
- G10G: REPRESENTATION OF MUSIC; RECORDING MUSIC IN NOTATION FORM; ACCESSORIES FOR MUSIC OR MUSICAL INSTRUMENTS NOT OTHERWISE PROVIDED FOR, e.g. SUPPORTS (music stands A47B; non-musical aspects of musical toy instruments A63H5/00; metronomes G04F5/02; teaching music G09B15/00)

## Abstract

Systems, devices, and methods for segmenting musical compositions are described. Discrete, musically-coherent segments (such as intro, verse, chorus, bridge, solo, and the like) of a musical composition are identified. Distance measures are used to evaluate whether each bar of a musical composition is more like the bars that directly precede it or more like the bars that directly succeed it, and each respective series of musically similar bars is assigned to the same respective segment. Large changes in the distance measure(s) between adjacent bars may be used to identify boundaries between abutting musical segments. Computer systems and computer program products for implementing segmentation are also described. The results of segmentation may advantageously be applied in computer-based composition of music and musical variations, as well as in other applications involving labelling, characterizing, or otherwise processing music.

## Claims

### Claim 1

A computer-implemented method of segmenting a musical composition into musical segments, wherein the musical composition comprises a sequence of X bars, where X is an integer greater than 1, the method comprising:
for each jth bar of the musical composition and for at least one (m, n) value combination where m, n≥0:
determining a first measure of similarity between the jth bar and a set of m bars that directly precede the jth bar in the musical composition;
determining a second measure of similarity between the jth bar and a set of n bars that directly succeed the jth bar in the musical composition; and
one of:
if the first measure of similarity satisfies at least a first criterion and the jth bar is not a first bar of the musical composition for which j=1, assigning the jth bar to a same musical segment as a (j−1)th bar that directly precedes the jth bar in the musical composition; or
if the second measure of similarity satisfies at least a second criterion and the jth bar is not a last bar of the musical composition for which j=X, assigning the jth bar to a same musical segment as a (j+1)th bar that directly succeeds the jth bar in the musical composition.

### Claim 2 (depends on 1)

The method of claim 1 wherein:
determining a first measure of similarity between the jth bar and a set of m bars that directly precede the jth bar in the musical composition includes:
determining a respective measure of similarity between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition; and
determining, as the first measure of similarity, a property of the respective measures of similarity between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition;
and
determining a second measure of similarity between the jth bar and a set of n bars that directly succeed the jth bar in the musical composition includes:
determining a respective measure of similarity between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition; and
determining, as the second measure of similarity, a property of the respective measures of similarity between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition.

### Claim 3 (depends on 2)

The method of claim 2 wherein:
determining a respective measure of similarity between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition includes determining a respective correlation distance between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition;
determining, as the first measure of similarity, a property of the respective measures of similarity between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition includes determining, as the first measure of similarity, a minimum of the respective correlation distances between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition;
determining a respective measure of similarity between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition includes determining a respective correlation distance between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition; and
determining, as the second measure of similarity, a property of the respective measures of similarity between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition includes determining, as the second measure of similarity, a minimum of the respective correlation distances between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition.

### Claim 4 (depends on 2)

The method of claim 2 wherein:
determining a respective measure of similarity between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition includes, for each track of each bar in the set of m bars that directly precede the jth bar in the musical composition, at least one of:
for each respective note in the track, determining a respective product of note duration multiplied by note volume and determining a sum of the respective products; and
sorting all notes by note start time and, for each note start time, sorting all corresponding notes by note pitch, wherein sorting all corresponding notes by note pitch includes ignoring octave information for each note;
and
determining a respective measure of similarity between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition includes, for each track of each bar in the set of n bars that directly succeed the jth bar in the musical composition, at least one of:
for each respective note in the track, determining a respective product of note duration multiplied by note volume and determining a sum of the respective products; and
sorting all notes by note start time and, for each note start time, sorting all corresponding notes by note pitch, wherein sorting all corresponding notes by note pitch includes ignoring octave information for each note.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
repeating, for multiple different (m, n) value combinations:
determining a first measure of similarity between the jth bar and a set of m bars that directly precede the jth bar in the musical composition;
determining a second measure of similarity between the jth bar and a set of n bars that directly succeed the jth bar in the musical composition; and
one of:
if the first measure of similarity satisfies at least a first criterion, assigning the jth bar to a first musical segment; or
if the second measure of similarity satisfies at least a second criterion, assigning the jth bar to a second musical segment;
tallying a number of (m, n) value combinations that result in the jth bar being assigned to the first musical segment;
tallying a number of (m, n) value combinations that result in the jth bar being assigned to the second musical segment; and
one of:
if the number of (m, n) value combinations that result in the jth bar being assigned to the first musical segment is greater than the number of (m, n) value combinations that result in the jth bar being assigned to the second musical segment, assigning the jth bar to the first musical segment; or
if the number of (m, n) value combinations that result in the jth bar being assigned to the second musical segment is greater than the number of (m, n) value combinations that result in the jth bar being assigned to the first musical segment, assigning the jth bar to the second musical segment.

### Claim 6 (depends on 1)

The method of claim 1 wherein the first criterion includes a first threshold value that is representative of a measure of distance between the jth bar and the set of m bars that directly precede the jth bar in the musical composition and the second criterion includes a second threshold value that is representative of a measure of distance between the jth bar and the set of n bars that directly succeed the jth bar in the musical composition.

### Claim 7 (depends on 1)

The method of claim 1 wherein X is an integer greater than 2, and wherein:
for a first (j=1) bar of the musical composition m=0;
for a last (j=X) bar of the musical composition n=0; and
for all other bars (1<j<X) of the musical composition, m, n>0.

### Claim 8

A system for segmenting a musical composition into musical segments, wherein the musical composition comprises a sequence of bars, 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 the musical composition and processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to:
identify, for at least one (m, n) value combination where m, n≥0, respective pairs of adjacent bars in the musical composition for which:
a first bar is correlated more strongly to a set of m bars that directly precede the first bar in the musical composition than to a set of n bars that directly succeed the first bar in the musical composition; and
a second bar is correlated more strongly to a set of n bars that directly succeed the second bar in the musical composition than to a set of m bars that directly precede the second bar in the musical composition, wherein the first bar directly precedes the second bar in the musical composition;
assign each respective first bar to a respective first musical segment; and
assign each respective second bar to a respective second musical segment.

### Claim 9 (depends on 8)

The system of claim 8 wherein the processor-executable instructions and/or data, when executed by the at least one processor, further cause the at least one processor to:
determine a respective feature of each bar;
determine a respective correlation distance between the respective feature of each bar and the respective features of a set of m bars that directly precede the bar in the musical composition for at least one value of m; and
determine a respective correlation distance between the respective feature of each bar and the respective features of a set of n bars that directly succeed the bar in the musical composition for at least one value of n.

### Claim 10 (depends on 9)

The system of claim 9 wherein the 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 feature of each bar, further cause that at least one processor to, for each respective track in the bar, at least one of:
determine, for each respective note in the track, a respective product of note duration multiplied by note volume and determine a sum of the respective products; and
sort all notes by note start time and, for each note start time, sort all corresponding notes by note pitch while ignoring octave information for each note.

### Claim 11 (depends on 8)

The system of claim 8 wherein the processor-executable instructions and/or data, when executed by the at least one processor, further cause the at least one processor to:
repeat, for multiple (m, n) value combinations, the identifying respective pairs of adjacent bars in the musical composition for which:
a first bar is correlated more strongly to a set of m bars that directly precede the first bar in the musical composition than to a set of n bars that directly succeed the first bar in the musical composition; and
a second bar is correlated more strongly to a set of n bars that directly succeed the second bar in the musical composition than to a set of m bars that directly precede the second bar in the musical composition;
and, for each bar:
tally a number of (m, n) value combinations that result in the bar being identified as a first bar that is correlated more strongly to a set of m bars that directly precede the first bar in the musical composition than to a set of n bars that directly succeed the first bar in the musical composition;
tally a number of (m, n) value combinations that result in the bar being identified as a second bar that is correlated more strongly to a set of n bars that directly succeed the second bar in the musical composition than to a set of m bars that directly precede the second bar in the musical composition; and
wherein, for each bar:
the processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to assign each respective first bar to a respective first musical segment, further cause the at least one processor to assign the bar to the first musical segment if the number of (m, n) value combinations that result in the bar being identified as a first bar exceeds a first threshold; and
the processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to assign each respective second bar to a respective second musical segment, further cause the at least one processor to assign the bar to the second musical segment if the number of (m, n) value combinations that result in the bar being identified as a second bar exceeds a second threshold;
and the system further comprising processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to, for each bar:
if the number of (m, n) value combinations that result in the bar being identified as a first bar does not exceed the first threshold and the number of (m, n) value combinations that result in the bar being identified as a second bar does not exceed the second threshold, assign the bar to a same musical segment as both a bar that directly precedes the bar in the musical composition and a bar that directly succeeds the bar in the musical composition.

### Claim 12 (depends on 8)

The system of claim 8 wherein:
the processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to assign each respective first bar to a respective first musical segment, further cause the at least one processor to assign each respective first bar to a same musical segment as a bar that directly precedes the first bar in the musical composition; and
the processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to assign each respective second bar to respective second musical segment, further cause the at least one processor to assign each respective second bar to a same musical segment as a bar that directly succeeds the second bar in the musical composition.

### Claim 13

A system for segmenting a musical composition into musical segments, wherein the musical composition comprises a sequence of X bars, where X is an integer greater than 2, 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 the musical composition and processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to:
for each jth bar of the musical composition and for at least one (m, n) value combination where for a first (j=1) bar of the musical composition m=0, for a last (j=X) bar of the musical composition n=0, and for all other bars (1<j<X) of the musical composition m, n>0:
determine a first measure of similarity between the jth bar and a set of m bars that directly precede the jth bar in the musical composition;
determine a second measure of similarity between the jth bar and a set of n bars that directly succeed the jth bar in the musical composition; and
one of:
if the first measure of similarity satisfies at least a first criterion, assign the jth bar to a first musical segment; or
if the second measure of similarity satisfies at least a second criterion, assign the jth bar to a second musical segment.

### Claim 14 (depends on 13)

The system of claim 13 wherein:
the processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to determine a first measure of similarity between the jth bar and a set of m bars that directly precede the jth bar in the musical composition, further cause the at least one processor to:
determine a respective measure of similarity between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition; and
determine, as the first measure of similarity, a property of the respective measures of similarity between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition;
and
the processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to determine a second measure of similarity between the jth bar and a set of n bars that directly succeed the jth bar in the musical composition, further cause the at least one processor to:
determine a respective measure of similarity between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition; and
determine, as the second measure of similarity, a property of the respective measures of similarity between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition.

### Claim 15 (depends on 14)

The system of claim 14 wherein:
the 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 measure of similarity between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition, further cause the at least one processor to determine a respective correlation distance between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition;
the processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to determine, as the first measure of similarity, a property of the respective measures of similarity between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition, further cause the at least one processor to determine, as the first measure of similarity, a minimum of the respective correlation distances between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition;
the 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 measure of similarity between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition, further cause the at least one processor to determine a respective correlation distance between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition; and
the processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to determine, as the second measure of similarity, a property of the respective measures of similarity between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition, further cause the at least one processor to determine, as the second measure of similarity, a minimum of the respective correlation distances between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition.

### Claim 16 (depends on 14)

The system of claim 14 wherein:
the 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 measure of similarity between the jth bar and each respective bar in the set of m bars that directly precede the jth bar in the musical composition, further cause the at least one processor to, for each track of each bar in the set of m bars that directly precede the jth bar in the musical composition, at least one of:
for each respective note in the track, determine a respective product of note duration multiplied by note volume and determine a sum of the respective products; and
sort all notes by note start time and, for each note start time, sort all corresponding notes by note pitch while ignoring octave information for each note;
and
the 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 measure of similarity between the jth bar and each respective bar in the set of n bars that directly succeed the jth bar in the musical composition, further cause the at least one processor to, for each track of each bar in the set of n bars that directly succeed the jth bar in the musical composition, at least one of:
for each respective note in the track, determine a respective product of note duration multiplied by note volume and determine a sum of the respective products; and
sort all notes by note start time and, for each note start time, sort all corresponding notes by note pitch while ignoring octave information for each note.

### Claim 17 (depends on 13)

The system of claim 13, further comprising processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to:
repeat, for multiple different (m, n) value combinations:
determining a first measure of similarity between the jth bar and a set of m bars that directly precede the jth bar in the musical composition;
determining a second measure of similarity between the jth bar and a set of n bars that directly succeed the jth bar in the musical composition; and
one of:
if the first measure of similarity satisfies at least a first criterion, assigning the jth bar to a first musical segment; or
if the second measure of similarity satisfies at least a second criterion, assigning the jth bar to a second musical segment;
tally a number of (m, n) value combinations that result in the jth bar being assigned to the first musical segment;
tally a number of (m, n) value combinations that result in the jth bar being assigned to the second musical segment; and
one of:
if the number of (m, n) value combinations that result in the jth bar being assigned to the first musical segment is greater than the number of (m, n) value combinations that result in the jth bar being assigned to the second musical segment, assign the jth bar to the first musical segment; or
if the number of (m, n) value combinations that result in the jth bar being assigned to the second musical segment is greater than the number of (m, n) value combinations that result in the jth bar being assigned to the first musical segment, assign the jth bar to the second musical segment.

### Claim 18 (depends on 13)

The system of claim 13 wherein the first criterion includes a first threshold value that is representative of a measure of distance between the jth bar and the set of m bars that directly precede the jth bar in the musical composition and the second criterion includes a second threshold value that is representative of a measure of distance between the jth bar and the set of n bars that directly succeed the jth bar in the musical composition.

### Claim 19 (depends on 13)

The system of claim 13 wherein:
the processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to assign the jth bar to a first musical segment, further cause the at least one processor to assign the jth bar to a same musical segment as a (j−1)th bar that directly precedes the jth bar in the musical composition; and
the processor-executable instructions and/or data that, when executed by the at least one processor, cause the at least one processor to assign the jth bar to a second musical segment, further cause the at least one processor to assign the jth bar to a same musical segment as a (j+1)th bar that directly succeeds the jth bar in the musical composition.
