- ignore non-note commands

The command byte of a MIDI message is not a mask, it's a range. For note-on the range is 0x90 - 0x9F. By applying 0x90 mask you would pick non-note messages (0xB0, 0xD0).