The Example app demonstrates integrating PianoKeyboard in a SwiftUI project and creating a custom style, and includes a simple AVAudioEngine based sound source.
Delegate Methods
func pianoKeyDown(_ keyNumber: Int) {
// Called when the key corresponding to midi number keyNumber is pressed
}
func pianoKeyUp(_ keyNumber: Int) {
// Called when the key corresponding to midi number keyNumber is released
}
PianoKeyboard
A SwiftUI piano keyboard view for iPhone and iPad.
Easily customisable styles, configurable
Example app
Installation
Swift Package Manager
https://github.com/garynewby/PianoKeyboard.git
Demo
The Example app demonstrates integrating PianoKeyboard in a SwiftUI project and creating a custom style, and includes a simple AVAudioEngine based sound source.
Delegate Methods
Requirements
Author
Gary Newby
License
Licensed under the MIT License.