init(channel:key:velocity:duration:)
Creates an event with a MIDI channel, key number, velocity, and duration.
Declaration
init(channel: UInt32, key keyNum: UInt32, velocity: UInt32, duration: AVMusicTimeStamp)Parameters
- channel:
The MIDI channel, between
0and15. - keyNum:
The MIDI key number, between
0and127. - velocity:
The MIDI velocity, between
0and127. - duration:
The duration for this note, in beats.