One Logo Pool Ball
MusicUnderstanding · IOS API REFERENCE

StructureResult

struct · iOS 27.0+ · SDK 27.1

struct StructureResult

A structure that provides a song's structure boundary information including sections, segments, and phrases. The `StructureResult` describes a song's structure in terms of sections, segments and phrases. A section corresponds to a distinct part of a song, such as an intro, verse, or chorus. A section consists of one or more segments, and each segment consists of one or more phrases.

Members (3)

get · iOS 27.0+

phrases

TypeScript
get phrases(): Array<_CoreMedia_CMTimeRange>
Swift declaration
let phrases: [CMTimeRange]

The time range of each phrase in the song. A phrase is a group of bars that form a distinct part of a song.

get · iOS 27.0+

sections

TypeScript
get sections(): Array<_CoreMedia_CMTimeRange>
Swift declaration
let sections: [CMTimeRange]

The time ranges of each section in the song. A section contains one or more segments and represents a major structural component, such as a verse or chorus.

get · iOS 27.0+

segments

TypeScript
get segments(): Array<_CoreMedia_CMTimeRange>
Swift declaration
let segments: [CMTimeRange]

The time range of each segment in the song. A segment is a collection of phrases that form a distinct part of a song.

Skipped declarations

No declarations were skipped in this snapshot.

All MusicUnderstanding types →