It works with vmpk too ! 
That's odd... it depends on whether vmpk's showing only an "in" or both an "In" and an "Out"... JP's example and your working ones are the latter case. Most likely a bug in vmpk, which isn't encouraging.
MarkMLl
In fact, I get all I need with
vkeybd, I did have a little bemol about the number of octave displayed (default = 3) but there is a parameter to define it (see picture):
So, for me, I am happy with
vkeybd.
Hum, new things are not always better:
> vkeybd --help
vkeybd -- virtual keyboard
version 0.1.18d
Copyright (c) 1997-2000 Takashi Iwai
> vmpk -h
VMPK v0.8.7
Virtual MIDI Piano Keyboard
Copyright (C) 2006-2022 Pedro Lopez-Cabanillas