create

fun create(samaSamplePath: String, beatSamplePath: String, bpm: Float = 120.0f, beatsPerCycle: Int = 4): SonixMetronome

Zero-config factory - creates metronome with default settings.

Usage:

val metronome = SonixMetronome.create(samaPath, beatPath)
metronome.start()

Return

SonixMetronome instance (loads samples asynchronously)

Parameters

samaSamplePath

Path to downbeat (first beat) audio sample

beatSamplePath

Path to regular beat audio sample

bpm

Initial tempo (default: 120)

beatsPerCycle

Beats per cycle (default: 4)