Hi, at a first glance I’d say you get the wrong channel. You catch
/midi:MPK_mini:1:1/note_on
while you keyboards sends on
/midi:mpk_mini_3:1/note_on
So, there’s a case, a number, and an underscore error When Sonic Pi is not running (SuperCollider Audio Server stopped) you can cut and paste from the cues window. Also, you can use wildcards, which may be a good idea, as your keyboard may get a different channel the next time you connect it.