Author Topic: MIDI communications  (Read 4296 times)

larrythethird

  • Newbie
  • *
  • Posts: 1
MIDI communications
« on: February 08, 2013, 12:24:52 am »
I am trying to make a very simple midi controller with just three stomp switches. 

The first issue I see is trying to compile the example midi sketch, I get an error message from the compiler:
In member function 'void TinyDebugSerial::begin(long int)',    inlined from 'void setup()' at Midi.ino:27:D:\digispark\arduino-1.03-win-digispark-2013-01-05\Digispark Ready - Arduino 1.03\hardware\tiny-digispark\cores\tiny/TinyDebugSerial.h:699: error: call to 'TinyDebugSerialBadBaud' declared with attribute error: Serial (TinyDebugSerial) supports three baud rates: 9600, 38400, or 115200.

Unfortunately, midi likes 31250 for a baud rate.  Rewriting the serial driver is way beyond my talent.

I would imagine that I could use the DigiUSB examples, but then I would need to use some type of USB to midi application on the PC to get it to a midi device.

Has anyone successfully gotten a DigiSpark to act as a midi controller?

semicolo

  • Full Member
  • ***
  • Posts: 137
Re: MIDI communications
« Reply #1 on: February 08, 2013, 06:17:57 am »
Not yet, but it shouldn't be too hard to add the needed baudrate.
Also if you only need midi in or midi out I think the USI could be used to have hardware half duplex serial transmissions, and it'd be a lot easier to setup to the needed baudrate.