---
title: InstrumentActivityResult
framework: musicunderstanding
role: symbol
role_heading: Structure
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: musicunderstanding/instrumentactivityresult
---

# InstrumentActivityResult

A structure containing the activity levels and detected time ranges for instruments in a song.

## Declaration

```swift
struct InstrumentActivityResult
```

## Overview

Overview The activity property provides a continuous signal for each instrument. The values range from 0.0, which indicates the instrument isn’t  present, to 1.0, which indicates the instrument is fully active. The ranges property provides discrete time windows during which the framework detected each instrument. Use both properties together to determine when an instrument is present and how prominently it features at each moment.

## Topics

### Structures

- [InstrumentActivityResult.Instrument](musicunderstanding/instrumentactivityresult/instrument.md)

### Instance Properties

- [activity](musicunderstanding/instrumentactivityresult/activity.md)
- [ranges](musicunderstanding/instrumentactivityresult/ranges.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Content results

- [MusicUnderstandingSession.SessionResult](musicunderstanding/musicunderstandingsession/sessionresult.md)
- [RhythmResult](musicunderstanding/rhythmresult.md)
- [KeyResult](musicunderstanding/keyresult.md)
- [LoudnessResult](musicunderstanding/loudnessresult.md)
- [PaceResult](musicunderstanding/paceresult.md)
- [StructureResult](musicunderstanding/structureresult.md)
