Skip to content

mihaibabusca/GLNPianoView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLNPianoView

A piano keyboard view, written in Swift. Has an IBInspectable key count property and IB_DESIGNABLE preview. All image elements drawn via Core Graphics.

alt tag

Installation

GLNPianoView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'GLNPianoView'

Demo

The Example demo project demonstrates how to use and integrate the GLNPianoView into your project, using AVAudioEngine and an AVAudioUnitSampler as the 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
}

##Requirements

  • Requires iOS 8.0 or later
  • Requires Automatic Reference Counting (ARC)

Author

Gary Newby

License

Licensed under the MIT License.

About

Piano keyboard view, written in Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 96.1%
  • Ruby 3.9%