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

# RhythmResult

A structure that describes a song’s rhythm results in terms of beats, bars, and beats per minute (BPM).

```
struct RhythmResult
```

## Overview

- Bars: A group of beats, typically containing 2-4 beats depending on the song’s time signature.
- Beats: The basic, recurrent pulse of a song.
- Beats Per Minute (BPM): The tempo of the song, measuring how many beats occur in one minute.

## Topics

### Types of rhythm results

[`let bars: [CMTime]`](/documentation/MusicUnderstanding/RhythmResult/bars)

The start time of each bar. A bar is a musical unit typically containing several beats.

[`let beats: [CMTime]`](/documentation/MusicUnderstanding/RhythmResult/beats)

The timestamp of each detected beat.

[`let beatsPerMinute: Float?`](/documentation/MusicUnderstanding/RhythmResult/beatsPerMinute)

The tempo of the song in beats per minute.

## Relationships

### Conforms To

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

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

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

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

---

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)