Rhythm Box is a music box system for your iOS app written in Swift. The easiest way to create Music Rhythm Patterns in Swift.
To Generate a constant BPM signal is as simple as this.
let rhythmBox = RhythmBox(bpm: 120) rhythmBox.perform {CurrentBeat, CurrentSubBeat, CurrentNote in print("CurrentBeat", CurrentBeat) return .resume }
And to generate a 90 BPM signal with a time signature of 3/4 and subdivision.
let rhythmBox = RhythmBox(bpm: 90, timeSignature: (3,4), subdivision: "011") rhythmBox.perform {CurrentBeat, CurrentSubBeat, CurrentNote in print("CurrentBeat", CurrentBeat) return .resume }
Learn more about it in the github repository or in the documentation.
Leave a Reply
Want to join the discussion?Feel free to contribute!