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

# InstrumentActivityResult.Instrument

A type that identifies a specific instrument category.

```
struct Instrument
```

## Overview

The framework defines four built-in categories: [`vocal`](/documentation/MusicUnderstanding/InstrumentActivityResult/Instrument/vocal), [`drum`](/documentation/MusicUnderstanding/InstrumentActivityResult/Instrument/drum), [`bass`](/documentation/MusicUnderstanding/InstrumentActivityResult/Instrument/bass), and [`other`](/documentation/MusicUnderstanding/InstrumentActivityResult/Instrument/other). The [`other`](/documentation/MusicUnderstanding/InstrumentActivityResult/Instrument/other) category groups any instruments that don’t fall into the other three categories.

## Topics

### Instance Properties

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

The raw value string.

### Type Properties

[`static let bass: InstrumentActivityResult.Instrument`](/documentation/MusicUnderstanding/InstrumentActivityResult/Instrument/bass)

The key to use to obtain bass activity from an instrument activity result.

[`static let drum: InstrumentActivityResult.Instrument`](/documentation/MusicUnderstanding/InstrumentActivityResult/Instrument/drum)

The key to use to obtain drum activity from an instrument activity result.

[`static let other: InstrumentActivityResult.Instrument`](/documentation/MusicUnderstanding/InstrumentActivityResult/Instrument/other)

The key to use to obtain other instrument activity from an instrument activity result.

[`static let vocal: InstrumentActivityResult.Instrument`](/documentation/MusicUnderstanding/InstrumentActivityResult/Instrument/vocal)

The key to use to obtain vocal activity from an instrument activity result.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

---

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)