Close

Final Log

A project log for Simple Concurrent Tones for the Arduino

The Arduino tone library does not support concurrent multiple tones. Now I am sure someone has done this before but here is my take.

agpcooperagp.cooper 09/28/2017 at 05:090 Comments

Final Log

The processing code work just fine off the Arduino. Go figure?

I have written a tool that takes a MIDI file and converts it to an Arduino sketch:

I have not 100% tested everything so if something is not working lot me know and I will fix it. I have put it in my Files area along with a MIDI (Popcorn) and the Arduino sketch:

I have put a sample MIDI (popcorn), a recording of the Arduino playing it.

---

Spoke to soon. The very next file I tested crashed!

Took all afternoon until I realised that I MUST open binary files with "rd" and not "r", otherwise 0x0A is interpreted as a "CR" and the next char is dropped.

Okay, amended executable uploaded.

---

Regards AlanX

Discussions