Skip to content

Commit

Permalink
fix error in documentation of midireader NoteOffVelocity option
Browse files Browse the repository at this point in the history
  • Loading branch information
metakeule committed Sep 3, 2018
1 parent 6a13256 commit 83eaf07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion midireader/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type Option func(rd *reader)
// NoteOffVelocity is an option for the reader that lets it differentiate between "fake" noteoff messages
// (which are in fact noteon messages (typ 9) with velocity of 0) and "real" noteoff messages (typ 8)
// having their own velocity.
// The former are returned as NoteOffVelocity messages and keep the given velocity, the later
// The later are returned as NoteOffVelocity messages and keep the given velocity, the former
// are returned as NoteOff messages without velocity. That means in order to get all noteoff messages,
// there must be checks for NoteOff and NoteOffVelocity (if this option is set).
// If this option is not set, both kinds are returned as NoteOff (default).
Expand Down

0 comments on commit 83eaf07

Please sign in to comment.