Reading MIDI, converting to polyphonic square wave with Tone library

Peter_n:
It is only a part of a sketch.
When you write a post, you can see above the text input field a '#' button, those are tags that you can place around a sketch.

Yes, the entire sketch will not fit because of the 9600 character limit. It is a long sketch. I tried posting the whole thing at first but it wouldn't let me, so I picked out what I thought was the critical sections.

Here is the full sketch pasted into pastebin: #include <avr/pgmspace.h>#include "Tone.h"// Output for PWMint PWMPin = - Pastebin.com

Let me know if you need Tone.h and Tone.cpp. They are not mine though, they are out there on the internet somewhere XD

EDIT: Sorry about that, looks like the code tags prevent the code from adding to the character limit. My original post has been fixed to display the entire sketch.