Ive built a MIDI controller, and can play my Yamaha digital piano with it - by using an intervening MIDI router from iConnectivity. Both my Teensy device and the piano have USB B MIDI jacks.

Id like to build a lower-cost intermediary, or build USB host capability into my controller.

Whats the minimum Teensy that could support both USB A and USB B jacks and both device and host implementation at the same time?

Im thinking this could be a simple, powered bi-directional MIDI hub
...is this reasonable to build with a Teensy?