Skip to content

Commit

Permalink
Minor tweak to MIKMIDICommand (MIKMIDINoteEventToCommands).
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Madsen committed Mar 21, 2016
1 parent 2535c5b commit b3a5eaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/MIKMIDINoteEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ + (NSArray *)commandsFromNoteEvent:(MIKMIDINoteEvent *)noteEvent clock:(MIKMIDIC

+ (MIKMIDINoteOnCommand *)noteOnCommandFromNoteEvent:(MIKMIDINoteEvent *)noteEvent clock:(MIKMIDIClock *)clock
{
MIKMutableMIDINoteOnCommand *noteOn = [MIKMutableMIDINoteOnCommand commandForCommandType:MIKMIDICommandTypeNoteOn];
MIKMutableMIDINoteOnCommand *noteOn = [[MIKMutableMIDINoteOnCommand alloc] init];
noteOn.midiTimestamp = [clock midiTimeStampForMusicTimeStamp:noteEvent.timeStamp];
noteOn.channel = noteEvent.channel;
noteOn.note = noteEvent.note;
Expand All @@ -195,7 +195,7 @@ + (MIKMIDINoteOnCommand *)noteOnCommandFromNoteEvent:(MIKMIDINoteEvent *)noteEve

+(MIKMIDINoteOffCommand *)noteOffCommandFromNoteEvent:(MIKMIDINoteEvent *)noteEvent clock:(MIKMIDIClock *)clock
{
MIKMutableMIDINoteOffCommand *noteOff = [MIKMutableMIDINoteOffCommand commandForCommandType:MIKMIDICommandTypeNoteOff];
MIKMutableMIDINoteOffCommand *noteOff = [[MIKMutableMIDINoteOffCommand alloc] init];
noteOff.midiTimestamp = [clock midiTimeStampForMusicTimeStamp:noteEvent.endTimeStamp];
noteOff.channel = noteEvent.channel;
noteOff.note = noteEvent.note;
Expand Down

0 comments on commit b3a5eaa

Please sign in to comment.