USB-MIDI 1.0 class driver for Arduino USB Host Shield 2.0 Library
USBH_MIDI is USB-MIDI class driver for Arduino USB Host Shield 2.0 Library.
USBH_MIDI is included in USB Host Shield 2.0 Library. You don't need install separatery.
If you want use with Arduino MIDI Library, try the Transport
File->Examples->USBH_MIDI->USB_MIDI_converter
File->Examples->USBH_MIDI->USB_MIDI_converter_wSysEx
File->Examples->USBH_MIDI->USB_MIDI_converter_multi
File->Examples->USBH_MIDI->bidirectional_converter
File->Examples->USBH_MIDI->USB_MIDI_desc If your device does not work, please report this information.
uint8_t RecvData(uint8_t *outBuf)
Receive MIDI message (3 bytes)
return value is MIDI message length(0-3)
uint8_t RecvData(uint16_t *bytes_rcvd, uint8_t *dataptr)
Receive raw USB-MIDI Event Packets (each 4 bytes, upto 64 bytes)
dataptr
must allocate 64bytes buffer.
return value is 0:Success, non-zero:Error(MAX3421E HRSLT) and bytes_rcvd is received USB packet length.
note: USB packet length is not necessarily the length of the MIDI message.
uint8_t RecvRawData(uint8_t *outBuf)
Receive MIDI Event Packet (4 bytes)
return value is MIDI message length(0-3)
uint8_t SendData(uint8_t *dataptr, uint8_t nCable=0)
Send MIDI message. You can set CableNumber(default=0).
return value is 0:Success, non-zero:Error(MAX3421E HRSLT)
uint8_t SendRawData(uint16_t bytes_send, uint8_t *dataptr)
Send raw data. You can send any data to MIDI. (no compliant USB-MIDI event packet)
return value is 0:Success, non-zero:Error(MAX3421E HRSLT)
uint8_t SendSysEx(uint8_t *dataptr, uint8_t datasize, uint8_t nCable=0)
Send SysEx MIDI message. You can set CableNumber(default=0).
return value is 0:Success, non-zero:Error(MAX3421E HRSLT)
note:
void attachOnInit(void (*funcOnInit)(void))
Register a user function to call when the controller is successfully initialized.
See 'eVY1_sample' example.
void attachOnRelease(void (*funcOnRelease)(void))
Register a user function to call when the device is removed.
uint16_t idVendor())
Get the vendor ID.
uint16_t idProduct())
Get the product ID.
uint8_t GetAddress()
Get the USB device address.
2022.4.22 (1.0.0)
2022.1.6 (0.6.1)
2021.5.9 (0.6.0)
2021.1.11 (0.5.1)
2020.11.23 (0.5.0)
2020.11.21 (0.4.1)
2018.03.24 (0.4.0)
2017.02.22 (0.3.2)
2016.04.26 (0.3.1)
2016.04.24 (0.3.0)
2016.04.09 (0.2.2)
2016.03.21 (0.2.1)
2015.09.06 (0.2.0)
2014.07.06 (0.1.0)
2014.03.23
2013.12.20
2013.11.05
2013.08.28
2013.08.18
2012.06.22
2012.04.21
Copyright © 2012-2021 Yuuichi Akagawa
Licensed under the GNU General Public License v2.0