Keyboard
public protocol Keyboard : AnyObject
Manages the state of the keyboard
-
The value of the first note shown on the keyboard
Declaration
Swift
var lowestNote: Note { get set }
-
The value of the last note shown on the keyboard
Declaration
Swift
var highestNote: Note { get }
-
Set true if audio is currently muted on the device. Affects how the keys are rendered.
Declaration
Swift
var isMuted: Bool { get set }
-
Command the keyboard to release any pressed keys
Declaration
Swift
func releaseAllKeys()
-
Notify the keyboard that a given note is not playing.
Declaration
Swift
func noteIsOff(note: UInt8)
Parameters
note
the note that is not playing
-
Notify the keyboard that a given note is currently playing.
Declaration
Swift
func noteIsOn(note: UInt8)
Parameters
note
the note that is playing