Discussion:
[gadget] Testing midi function
Andrzej Pietrasiewicz
2014-10-13 10:11:07 UTC
Permalink
Hi all,

I would like to try the midi function of usb gadget.

Can anybody please tell me:

1) What userspace programs do I need at the gadget side?
How to run them?

2) What do I need at the host side? How to tell whether my midi gadget
is working correctly?

AP
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-***@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Clemens Ladisch
2014-10-13 10:44:23 UTC
Permalink
Post by Andrzej Pietrasiewicz
I would like to try the midi function of usb gadget.
1) What userspace programs do I need at the gadget side?
I've never used it, but as far as I can see, the MIDI function ends up
as a normal sound card with MIDI port(s). Your device firmware would
access them through the normal ALSA rawmidi or sequencer APIs.

As for testing: To monitor received data, use amidi or aseqdump. To
send data, use amidi or aplaymidi. To make a loopback device, use
aconnect to connect the input to the output.

This requires the alsa-lib and alsa-utils packages.
Post by Andrzej Pietrasiewicz
2) What do I need at the host side?
USB MIDI is plug&play in every OS. For Linux, see above.


Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-***@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Andrzej Pietrasiewicz
2014-10-13 11:31:07 UTC
Permalink
Hi Clemens,
<snip>
Post by Clemens Ladisch
I've never used it, but as far as I can see, the MIDI function ends up
as a normal sound card with MIDI port(s). Your device firmware would
access them through the normal ALSA rawmidi or sequencer APIs.
As for testing: To monitor received data, use amidi or aseqdump. To
send data, use amidi or aplaymidi. To make a loopback device, use
aconnect to connect the input to the output.
This requires the alsa-lib and alsa-utils packages.
Thank you for your response.

AP
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-***@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Continue reading on narkive:
Loading...