<!--
{
  "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/AnalysisType",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Music Understanding"
    ],
    "preciseIdentifier" : "s:18MusicUnderstanding12AnalysisTypeV"
  },
  "title" : "AnalysisType"
}
-->

# AnalysisType

The analysis type for each session.

```
struct AnalysisType
```

## Overview

This serves as the primarily type used by the [`MusicUnderstandingSession`](/documentation/MusicUnderstanding/MusicUnderstandingSession).

## Topics

### Types of analysis

[`static let key: AnalysisType`](/documentation/MusicUnderstanding/AnalysisType/key)

A value that identifies the key music analysis type.

[`static let instrumentActivity: AnalysisType`](/documentation/MusicUnderstanding/AnalysisType/instrumentActivity)

A value that identifies the instrument activity music analysis type.

[`static let loudness: AnalysisType`](/documentation/MusicUnderstanding/AnalysisType/loudness)

A value that identifies the loudness music analysis type.

[`static let pace: AnalysisType`](/documentation/MusicUnderstanding/AnalysisType/pace)

A value that identifies the pace music analysis type.

[`let rawValue: String`](/documentation/MusicUnderstanding/AnalysisType/rawValue)

A value that identifies the type of music analysis to perform.

[`static let rhythm: AnalysisType`](/documentation/MusicUnderstanding/AnalysisType/rhythm)

A value that identifies the rhythm music analysis type.

[`static let structure: AnalysisType`](/documentation/MusicUnderstanding/AnalysisType/structure)

A value that identifies the structure music analysis type.

## Relationships

### Conforms To

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

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

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

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

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

[`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)