MIKMIDINoteOnCommand

Objective-C

@interface MIKMIDINoteOnCommand : MIKMIDINoteCommand

Swift

class MIKMIDINoteOnCommand : MIKMIDINoteCommand

A MIDI note on message.

  • Convenience method for creating a note on command.

    Declaration

    Objective-C

    + (nonnull instancetype)noteOnCommandWithNote:(NSUInteger)note
                                         velocity:(NSUInteger)velocity
                                          channel:(UInt8)channel
                                        timestamp:(nullable NSDate *)timestamp;

    Swift

    convenience init(note: UInt, velocity: UInt, channel: UInt8, timestamp: Date?)

    Parameters

    note

    The note number for the command. Must be between 0 and 127.

    velocity

    The velocity for the command. Must be between 0 and 127.

    channel

    The channel for the command. Must be between 0 and 15.

    timestamp

    The timestamp for the command. Pass nil to use the current date/time.

    Return Value

    An initialized MIKMIDINoteOnCommand instance.

  • Convenience method for creating a note on command.

    Declaration

    Objective-C

    + (nonnull instancetype)noteOnCommandWithNote:(NSUInteger)note
                                         velocity:(NSUInteger)velocity
                                          channel:(UInt8)channel
                                    midiTimeStamp:(MIDITimeStamp)timestamp;

    Swift

    convenience init(note: UInt, velocity: UInt, channel: UInt8, midiTimeStamp timestamp: MIDITimeStamp)

    Parameters

    note

    The note number for the command. Must be between 0 and 127.

    velocity

    The velocity for the command. Must be between 0 and 127.

    channel

    The channel for the command. Must be between 0 and 15.

    timestamp

    The MIDITimestamp for the command.

    Return Value

    An initialized MIKMIDINoteOnCommand instance.

Unavailable

  • Unavailable

    This is currently undocumented. Documentation contributions are always welcome!

    Declaration

    Objective-C

    + (nonnull instancetype)noteCommandWithNote:(NSUInteger)note
                                       velocity:(NSUInteger)velocity
                                        channel:(UInt8)channel
                                       isNoteOn:(BOOL)isNoteOn
                                      timestamp:(nullable NSDate *)timestamp;
  • Unavailable

    This is currently undocumented. Documentation contributions are always welcome!

    Declaration

    Objective-C

    + (nonnull instancetype)noteCommandWithNote:(NSUInteger)note
                                       velocity:(NSUInteger)velocity
                                        channel:(UInt8)channel
                                       isNoteOn:(BOOL)isNoteOn
                                  midiTimeStamp:(MIDITimeStamp)timestamp;