---
title: analyze()
framework: musicunderstanding
role: symbol
role_heading: Instance Method
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/musicunderstandingsession/analyze()
---

# analyze()

Performs all available analyses on the session’s audio source.

## Declaration

```swift
@discardableResult func analyze() async throws -> MusicUnderstandingSession.SessionResult
```

## Return Value

Return Value The aggregated session result containing all analyses.

## Discussion

Discussion note: If analysis is already running on this session. note: This method can only be called once per session instance. Create a new session to run additional analyses. Example usage: let session = MusicUnderstandingSession(audioProvider: provider) let result = try await session.analyze()

## See Also

### Performing an analysis

- [analyze(for:)](musicunderstanding/musicunderstandingsession/analyze(for:).md)
