<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MusicUnderstanding",
  "identifier" : "/documentation/MusicUnderstanding/MusicUnderstandingSession/SessionResult",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Music Understanding",
      "MusicUnderstanding"
    ],
    "preciseIdentifier" : "s:18MusicUnderstanding0aB7SessionC0C6ResultV"
  },
  "title" : "MusicUnderstandingSession.SessionResult"
}
-->

# MusicUnderstandingSession.SessionResult

The aggregated results for all analysis types that a music understanding session performs.

```
struct SessionResult
```

## Overview

Each property corresponds to one analysis type that the session can perform: the instrument activity, key, loudness, rhythm, pace, and structure. A property is nil if the session wasn’t configured to perform that analysis. Access a session result after the session finishes processing audio to retrieve the data for each configured type.

## Topics

### Getting music understanding session results

[`let instrumentActivity: InstrumentActivityResult?`](/documentation/MusicUnderstanding/MusicUnderstandingSession/SessionResult/instrumentActivity)

The aggregated instrument activity results, identifying which instruments are present and when they’re active.

[`let key: KeyResult?`](/documentation/MusicUnderstanding/MusicUnderstandingSession/SessionResult/key)

The aggregated key results, identifying the central note (tonic) and mode around which a piece of music is organized.

[`let loudness: LoudnessResult?`](/documentation/MusicUnderstanding/MusicUnderstandingSession/SessionResult/loudness)

The aggregated loudness results, providing information about volume levels throughout the audio.

[`let pace: PaceResult?`](/documentation/MusicUnderstanding/MusicUnderstandingSession/SessionResult/pace)

The aggregated pace results, describing the energy and momentum variations over time.

[`let rhythm: RhythmResult?`](/documentation/MusicUnderstanding/MusicUnderstandingSession/SessionResult/rhythm)

The aggregated rhythm results, including detected beats, bars, and BPM.

[`let structure: StructureResult?`](/documentation/MusicUnderstanding/MusicUnderstandingSession/SessionResult/structure)

The aggregated structure results, identifying musical sections and their boundaries.

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`Sendable`](/documentation/Swift/Sendable)

[`Decodable`](/documentation/Swift/Decodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)