(for convenience here is the output of the midi-player-js example:
https://paste.ubuntu.com/p/WS6tdq7pPw/ )
I was thinking it would be easiest to use the event.noteName and convert it to the note names that MPP uses.
So here are the note names, in order, of MPP keys (using
Object.keys(MPP.piano.keys).join(" "))
a-1 as-1 b-1 c0 cs0 d0 ds0 e0 f0 fs0 g0 gs0 a0 as0 b0 c1 cs1 d1 ds1 e1 f1 fs1 g1 gs1 a1 as1 b1 c2 cs2 d2 ds2 e2 f2 fs2 g2 gs2 a2 as2 b2 c3 cs3 d3 ds3 e3 f3 fs3 g3 gs3 a3 as3 b3 c4 cs4 d4 ds4 e4 f4 fs4 g4 gs4 a4 as4 b4 c5 cs5 d5 ds5 e5 f5 fs5 g5 gs5 a5 as5 b5 c6 cs6 d6 ds6 e6 f6 fs6 g6 gs6 a6 as6 b6 c7
And here are the corresponding key names emmitted by the player (
https://repl.it/@ledlamp89/midi-player-js-key-names )
A0 Bb0 B0 C1 Db1 D1 Eb1 E1 F1 Gb1 G1 Ab1 A1 Bb1 B1 C2 Db2 D2 Eb2 E2 F2 Gb2 G2 Ab2 A2 Bb2 B2 C3 Db3 D3 Eb3 E3 F3 Gb3 G3 Ab3 A3 Bb3 B3 C4 Db4 D4 Eb4 E4 F4 Gb4 G4 Ab4 A4 Bb4 B4 C5 Db5 D5 Eb5 E5 F5 Gb5 G5 Ab5 A5 Bb5 B5 C6 Db6 D6 Eb6 E6 F6 Gb6 G6 Ab6 A6 Bb6 B6 C7 Db7 D7 Eb7 E7 F7 Gb7 G7 Ab7 A7 Bb7 B7 C8