Problems porting midi controller project to ESP32 board

I'm using ESP32 DEVKIT V1 TYPEC

That is one of the older versions of the ESP32 that does not support midi over USB, only midi over Bluetooth.

You will never be able to get this to work, look out for an ESP32-S3 board.