<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>midi on irq5 test</title><link>https://irq5-7854a1fdb9f4.pages.dev/tag/midi/</link><description>Recent content in midi on irq5 test</description><language>en-us</language><lastBuildDate>Sat, 12 Mar 2011 19:37:00 +0000</lastBuildDate><atom:link href="https://irq5-7854a1fdb9f4.pages.dev/tag/midi/feed/" rel="self" type="application/rss+xml"/><item><title>MIDI to USB (Serial) Converter</title><link>https://irq5-7854a1fdb9f4.pages.dev/2011/03/midi-to-usb-serial-converter/</link><pubDate>Sat, 12 Mar 2011 19:37:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2011/03/midi-to-usb-serial-converter/</guid><description>&lt;p>MIDI is actually just serial data at 31,250bps in &lt;a href=http://en.wikipedia.org/wiki/8-N-1 rel=noopener target=_blank class=external>8N1&lt;/a> format that is transmitted over a 5-pin DIN cable. This means you can receive MIDI data from your musical instrument using a serial port, or an &lt;a href=http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm rel=noopener target=_blank class=external>FTDI cable&lt;/a>.&lt;/p>&lt;p>Receiving MIDI data over the FTDI cable doesn&amp;rsquo;t magically turn your USB serial device into a MIDI device - you need to be running a software bridge or a driver that pretends to be a virtual MIDI device emitting these messages. For this purpose, I shall use the &lt;a href=http://www.spikenzielabs.com/SpikenzieLabs/Serial_MIDI.html rel=noopener target=_blank class=external>Serial MIDI Converter&lt;/a> from SpikenzieLabs.&lt;/p>&lt;p>I&amp;rsquo;m using Mac OS X 10.6.6 and the latest Java update, so I didn&amp;rsquo;t need any extra JAR files.&lt;/p>&lt;h1 id=wiring-it-up>Wiring It Up&lt;/h1>&lt;p>The circuit is relatively simple - you need the DIN socket, an opto-isolator, 2 resistors, and optionally a diode. In my case, parts came from a scrap bin, so I used a 330 ohm resistor instead of a 220 ohm for Rb and a 1K for Rd instead of 280 ohms. For the opto-isolator, element14 had some non-RoHS CNY17-2 on sale, so I just used that.&lt;/p>&lt;p>&lt;picture>&lt;img src=https://irq5-7854a1fdb9f4.pages.dev/posts/2011/img/midi_schematic.png alt="MIDI hookup schematic" width=468 height=285>&lt;/picture>&lt;/p>&lt;p>Note that the RXD output is only meant for interfacing with a TTL circuit like an FTDI chip/cable or MAX232 transceiver, not the RS232 serial port directly.&lt;/p>&lt;p>You can find the same circuit diagram (with different values &amp; parts) in the official &lt;a href=http://www.midi.org/techspecs/electrispec.php rel=noopener target=_blank class=external>MIDI Electrical Specification Diagram&lt;/a>.&lt;/p>&lt;p>&lt;a href="https://irq5-7854a1fdb9f4.pages.dev/2011/03/midi-to-usb-serial-converter/#more">Continue reading…&lt;/a>&lt;/p></description></item></channel></rss>