MIDI Support

If you have a simple question and just want an answer.
francescof
New User
Posts: 2
Joined: Tue Feb 09, 2016 9:47 am

MIDI Support

Post by francescof »

HI All,
I am really interested in the midi functionality of the audio slice with Startkit.

On the xmos website there is article (almost 3 years old) about a never release midi implementation
https://www.xmos.com/published/midi-component

I've also found some sort of example here https://github.com/bfarago/xmos_midi1 but this library seems to be on an alpha never completed stage.
Has anyone developed/released a midi library with SysEx support?
Any help is very appreciated.

Thanks.


User avatar
infiniteimprobability
XCore Legend
Posts: 1126
Joined: Thu May 27, 2010 10:08 am

Post by infiniteimprobability »

Xmos didn't ever release MIDI as a separate library. It is well supported by the USB Audio reference design, but that is hand optimised to fit in a single core that does everything - UART rx/tx, protocol parsing and buffering. It also interfaces directly with a USB endpoint, which is what you'd expect. It's very broadly used and well verified and could provide a starting point.

You can get it here https://www.xmos.com/support/software/uac2
User avatar
myndideal
Active Member
Posts: 59
Joined: Thu May 05, 2011 10:00 pm
Location: Budapest

Post by myndideal »

Hi Francesco,
Iam the author of the midi1 project. I've the plan to working more on midi1 lib later. Actually Iam working on other project... Hopefully on the next week I have little time to do some update.

The actual implementation doesn't support variable length packets in midi stack. Because my device under developent doesn't requires sysex msgs. Furthermore, it supports only 4 bytes length normal midi packets. These 32bits are handled in the code very simple way of course... But If you need a long buffer to store and send/recv the sysex msg. Yeah... Hm...
I'll check if it is easy task to add or not. Probably it would be fine, if somehow the requirements will be specified... What is exactly needed by your project.
thx.