Inherits from MIKMIDIEvent : NSObject
Declared in MIKMIDINoteEvent.h

Overview

A MIDI note event.

Tasks

Properties

duration

@property (nonatomic, readonly) Float32 duration
Discussion

The duration of the event.

Declared In

MIKMIDINoteEvent.h

endTimeStamp

@property (nonatomic, readonly) MusicTimeStamp endTimeStamp
Discussion

The time stamp at the end of the notes duration.

Declared In

MIKMIDINoteEvent.h

frequency

@property (nonatomic, readonly) float frequency
Discussion

The frequency of the MIDI note. Based on an equal tempered scale with a 440Hz A5.

Declared In

MIKMIDINoteEvent.h

note

@property (nonatomic, readonly) UInt8 note
Discussion

The MIDI note number for the event.

Declared In

MIKMIDINoteEvent.h

noteLetter

@property (nonatomic, readonly) NSString *noteLetter
Discussion

The note letter of the MIDI note. Notes that correspond to a “black key” on the piano will always be presented as sharp.

Declared In

MIKMIDINoteEvent.h

noteLetterAndOctave

@property (nonatomic, readonly) NSString *noteLetterAndOctave
Discussion

The note letter and octave of the MIDI note. 0 is considered to be the first octave, so the note C0 is equal to MIDI note 0.

Declared In

MIKMIDINoteEvent.h

releaseVelocity

@property (nonatomic, readonly) UInt8 releaseVelocity
Discussion

The release velocity of the event. Use 0 if you don’t want to specify a particular value.

Declared In

MIKMIDINoteEvent.h

velocity

@property (nonatomic, readonly) UInt8 velocity
Discussion

The initial velocity of the event.

Declared In

MIKMIDINoteEvent.h

Class Methods

noteEventWithTimeStamp:message:

+ (instancetype)noteEventWithTimeStamp:(MusicTimeStamp)timeStamp message:(MIDINoteMessage)message
Discussion

Convenience method for creating a new MIKMIDINoteEvent.

Parameters

timeStamp

The MusicTimeStamp for the event.

message

The MIDINoteMessage for the event.

Return Value

A new MIKMIDINoteEvent instance, or nil if there is an error.

Declared In

MIKMIDINoteEvent.h