Skip to content

Commit

Permalink
Issue #39 & #108: Fixed up some nullability and generics annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Madsen committed Nov 11, 2015
1 parent 72d8dff commit 7b25b18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Source/MIKMIDINoteEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ NS_ASSUME_NONNULL_BEGIN

@interface MIKMIDICommand (MIKMIDINoteEventToCommands)

+ (MIKArrayOf(MIKMIDICommand *) *)commandsFromNoteEvent:(MIKMIDINoteEvent *)noteEvent clock:(MIKMIDIClock *)clock;
+ (MIKMIDINoteOnCommand *)noteOnCommandFromNoteEvent:(MIKMIDINoteEvent *)noteEvent clock:(MIKMIDIClock *)clock;
+ (MIKMIDINoteOffCommand *)noteOffCommandFromNoteEvent:(MIKMIDINoteEvent *)noteEvent clock:(MIKMIDIClock *)clock;
+ (MIKArrayOf(MIKMIDICommand *) *)commandsFromNoteEvent:(MIKMIDINoteEvent *)noteEvent clock:(nullable MIKMIDIClock *)clock;
+ (MIKMIDINoteOnCommand *)noteOnCommandFromNoteEvent:(MIKMIDINoteEvent *)noteEvent clock:(nullable MIKMIDIClock *)clock;
+ (MIKMIDINoteOffCommand *)noteOffCommandFromNoteEvent:(MIKMIDINoteEvent *)noteEvent clock:(nullable MIKMIDIClock *)clock;

@end

Expand Down
2 changes: 1 addition & 1 deletion Source/MIKMIDISynthesizerInstrument.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @return A MIKMIDISynthesizerInstrument instance with the matching instrument ID, or nil if no instrument was found.
*/
+ (nullable instancetype)instrumentWithID:(MusicDeviceInstrumentID)instrumentID name:(NSString *)name;
+ (nullable instancetype)instrumentWithID:(MusicDeviceInstrumentID)instrumentID name:(nullable NSString *)name;

/**
* The human readable name of the receiver. e.g. "Piano 1".
Expand Down
2 changes: 1 addition & 1 deletion Source/MIKMIDITrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @return An array of specified class of MIDI events.
*/
- (MIKArrayOf(MIKMIDIEvent *) *)eventsOfClass:(Class)eventClass fromTimeStamp:(MusicTimeStamp)startTimeStamp toTimeStamp:(MusicTimeStamp)endTimeStamp;
- (MIKArrayOfKindOf(MIKMIDIEvent *) *)eventsOfClass:(Class)eventClass fromTimeStamp:(MusicTimeStamp)startTimeStamp toTimeStamp:(MusicTimeStamp)endTimeStamp;

/**
* Gets all of the MIDI notes in the track starting from startTimeStamp and ending at endTimeStamp inclusively.
Expand Down

0 comments on commit 7b25b18

Please sign in to comment.