explaingit

rryam/musaverakit

Analysis updated 2026-05-18

15SwiftAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

MusaveraKit is a Swift package that simplifies Apple's on-device Music Understanding framework, giving apps easy access to beat, key, loudness, and instrument detection.

Mindmap

mindmap
  root((musaverakit))
    What it does
      Wraps Music Understanding
      On device audio analysis
      Beat key loudness detection
      Timeline helpers
    Tech stack
      Swift
      Xcode
      Apple platforms
    Use cases
      Music visualization
      Real time audio analysis
      Playback interfaces
    Audience
      iOS and Apple developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Analyze an audio file on-device to detect beats per minute, musical key, and loudness.

USE CASE 2

Detect which instruments, such as vocals, drums, or bass, are active at different points in a song.

USE CASE 3

Stream live audio from a microphone and read loudness values in real time.

USE CASE 4

Build a music visualization or playback interface with beat and section timeline lookups.

What is it built with?

SwiftXcode

How does it compare?

rryam/musaverakitemanuele-web04/remodextextkitrudrankriyam/core-ai-framework-lab
Stars151515
LanguageSwiftSwiftSwift
Setup difficultyeasyeasymoderate
Complexity2/53/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Requires Xcode 27, Swift 6.4, and a beta Apple OS version 27 or later.

Permissive MIT license, use freely for any purpose including commercial use, keeping the copyright notice.

In plain English

MusaveraKit is a Swift package that makes it simpler to use Apple's Music Understanding framework in iOS, macOS, tvOS, watchOS, and visionOS apps. Apple introduced Music Understanding at WWDC26 as a way to analyze audio files directly on the device, without sending audio to any server. MusaveraKit wraps that framework with shorter, cleaner code so you spend less time on session setup and repetition. The package works by taking an audio file your app already has access to and running an analysis on it. You get back information about the music: beats per minute, musical key, loudness, perceived pace, the number of sections in the song, and whether vocals, drums, bass, or other instruments are active at different points. All of that processing runs on-device, so no audio ever leaves the user's device. If you only need one aspect of a track, the package has focused helper functions for rhythm, key, loudness, pace, structure, and instrument activity individually. There is also a streaming mode for analyzing live audio as it comes in, for example from a microphone, so you can read loudness values in real time while the rest of the analysis finishes once the audio stream stops. For apps that show music visualizations or playback interfaces, MusaveraKit adds timeline helpers. You can look up the musical key at a specific playback position, find the nearest beat or bar to a timestamp, or check which song section or phrase is active at a given moment. Because this builds on a framework still in beta as of mid-2026, APIs may change as Apple updates the SDK. The package requires Xcode 27, Swift 6.4, and Apple platform operating systems version 27 or later. It is distributed as a Swift Package and is available under the MIT License.

Copy-paste prompts

Prompt 1
Show me how to use MusaveraKit to get the BPM and musical key of an audio file in Swift.
Prompt 2
How do I set up MusaveraKit's streaming mode to analyze live microphone audio?
Prompt 3
Write Swift code using MusaveraKit to find the active song section at a given playback timestamp.
Prompt 4
What Apple platform and Xcode versions does MusaveraKit require?

Frequently asked questions

What is musaverakit?

MusaveraKit is a Swift package that simplifies Apple's on-device Music Understanding framework, giving apps easy access to beat, key, loudness, and instrument detection.

What language is musaverakit written in?

Mainly Swift. The stack also includes Swift, Xcode.

What license does musaverakit use?

Permissive MIT license, use freely for any purpose including commercial use, keeping the copyright notice.

How hard is musaverakit to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is musaverakit for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.