One Logo Pool Ball
MusicUnderstanding · IOS API REFERENCE

InstrumentActivityResult

struct · iOS 27.0+ · SDK 27.1

struct InstrumentActivityResult

A structure containing the activity levels and detected time ranges for instruments in a song. The ``activity`` property provides a continuous signal for each instrument. The values range from `0.0`, not present to `1.0`, 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.

Members (2)

get · iOS 27.0+

ranges

TypeScript
get ranges(): NativeMap<InstrumentActivityResult_Instrument, Array<_CoreMedia_CMTimeRange>>
Swift declaration
let ranges: [InstrumentActivityResult.Instrument : [CMTimeRange]]

The time ranges during which each instrument is detected.

get · iOS 27.0+

activity

TypeScript
get activity(): NativeMap<InstrumentActivityResult_Instrument, Array<MusicUnderstandingSession_TimedValue<number>>>
Swift declaration
let activity: [InstrumentActivityResult.Instrument : [MusicUnderstandingSession.TimedValue<Float>]]

The activity level of each instrument over time, as values from 0.0 to 1.0.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

InstrumentActivityResult.Instrument

The iOS SDK compiler rejected this binding: type 'InstrumentActivityResult.Instrument' does not conform to protocol 'RawRepresentable'

All MusicUnderstanding types →