Question
USB class implementation - MIDI interface
Posted on November 13, 2013 at 13:01
Hello everybody !
I'm new here. I'm a musician, I code for 1 year on STM32 for the fun. My project is to create a MIDI controller based on STM32F4discovery (MIDI is a protocol created to allow musical instruments communication). I already program the code for the MIDI UART interface but the speed is quite limited and now I want to implement USB-MIDI, a popular protocol.So I want to send my MIDI packet (usually composed of 3 bytes) through the USB, and I also want my board to be recognized as a MIDI device. I have only one MIDI IN port IN and one MIDI port OUT.I try to understand on the internet how to achieve this but my problem is I don't know anything about USB librairies.Once I add the USB lib ''STM32_USB_Device_Library'' to my project, I don't find where I have to make changes in the source code (declaring 'input/output jacks', ''bulk endpoints'', ''protocol over endpoints'', ...) to implement the USB-MIDI.Do you know which files of the USB library I have to modify to create a recognized USB-MIDI peripherals ? Thanks for your help !!Some interresting stuff:/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Issues%20with%20STM32F4%20USB%20bulk%20transfer%20%28MIDI%29&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=942
#midi-usb