USB HID....

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Sparkoids
Posts: 267
Joined: Mon Sep 14, 2009 10:34 am
Has thanked: 30 times
Been thanked: 19 times

USB HID....

Post by Sparkoids »

Hi guys,

On Flowcode I have got a USB device running as a keyboard and it works perfectly to generate specific "keypresses" from buttons on eBlocks....

Does anyone know if it is possible to edit the HID descriptor to make into USB Midi please?

I'm going to get the Matrix eBlock for MIDI and I have just ordered a MIDI to USB convertor from eBay but on the Aurdino sites they have a USB/MIDI setting for their boards that get rid of the requirement for the interface(s).

If not I'm going to go from ECIO > MIDI eBlock > MIDI Convertor > USB > Computer which is bonkers to have two extra bits of hardware!

Anyone know if this is possible please?


James :-}

Link Here for USB Device Class Definition For MIDI: http://www.usb.org/developers/devclass_docs/midi10.pdf

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USB HID....

Post by Benj »

Hi James,
Does anyone know if it is possible to edit the HID descriptor to make into USB Midi please?
You can't do it simply by editing the HID descriptor as the HID descriptor is basically a set of instructions for the HID class. The USB MIDI class does not use the HID class so you also need to edit the underlying USB descriptor which is hidden away inside the USB library files.

I have looked into this before and was going to make a USB MIDI component but I spent a couple of nights on it and basically got nowhere fast. So it certainly is possible but is a lot of work to achieve. Using the two extra bits of hardware may seem daft but will certainly save a lot of coding effort in the short term.

I'm hoping to do a load of work with USB and components in general when FC v6 comes out and we have the freedom to create components without needing a VB expert to design the component front end. If you need something in the meantime then some of our freelance engineers may be able to help or you could create a topic named help me to create a USB MIDI component and me and the community will try and help where we can.

Post Reply