Fix: reset ping after a true note trigger (also refactor some hacks).