This is a working example of Midi over USB on an Esp32-s3 with platformio and Adafruit TinyUSB lib. This solution was only tested up to platform = espressif32 @ 6.9.0. Not tested with pioarduino
This refers to the thread:https://community.platformio.org/t/esp32-s3-tinyusb-config-not-working/34209/4