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()Content copied to clipboard
Return
SonixMetronome instance (loads samples asynchronously)
Parameters
sama Sample Path
Path to downbeat (first beat) audio sample
beat Sample Path
Path to regular beat audio sample
bpm
Initial tempo (default: 120)
beats Per Cycle
Beats per cycle (default: 4)