init(midiNote:velocity:groupID:duration:)
Creates an event with a MIDI note, velocity, group identifier, and duration.
Declaration
init(midiNote: Float, velocity: Float, groupID: UInt32, duration: AVMusicTimeStamp)Parameters
- midiNote:
The MIDI note number.
- velocity:
The MIDI velocity.
- groupID:
The identifier that represents the audio unit channel that handles the event.
- duration:
The duration of the event, in beats.