Contents

analyze(for:)

Performs the specified analyses on the session’s audio source.

Declaration

@discardableResult func analyze(for analysisTypes: Set<AnalysisType>) async throws -> MusicUnderstandingSession.SessionResult

Parameters

  • analysisTypes:

    A Set of AnalysisType values specifying which analyses to perform.

Return Value

The aggregated session result containing all requested analyses.

Discussion

Example usage:

let session = MusicUnderstandingSession(audioProvider: provider)
let result = try await session.analyze(for: [.rhythm, .pace, .loudness])

See Also

Performing an analysis