Through the pedal's USB portIf i connect it to raspberry i can send th C0 YY command with amidi
Can i tell the Leonardo to act as a usb host?
The USBHost library allows an Arduino Due board to appear as a USB host, enabling it to communicate with peripherals like USB mice and keyboards. USBHost does not support devices that are connected through USB hubs. This includes some keyboards that have an internal hub.NB : The USBHost library and associated functions are experimental. While it is not likely the API will change in future releases, it is still under development.
The disadvantage of the Raspberry Pi is that it takes much longer to boot, while an Arduino starts instantly.