Analog midi instrument

I've uploaded this code to teensy 2.0 and it works

Liar!

No it doesn't, it does not even compile!

digitalWrite (pin [a] HIGH)};

Gives the error:-

Forum_midi: In function 'void setup()':
/Applications/Arduino Old/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy/core_pins.h:24:14: error: expected ')' before numeric constant
 #define HIGH 0x1
              ^
/Users/mikecook/Desktop/Forum_midi/Forum_midi.ino:9:23: note: in expansion of macro 'HIGH'
 digitalWrite (pin [a] HIGH)};
                       ^
Forum_midi:9: error: too few arguments to function 'void digitalWrite(uint8_t, uint8_t)'
 digitalWrite (pin [a] HIGH)};
                           ^

The error message continues to say

Forum_midi:17: error: 'usbMIDI' was not declared in this scope
To make a USB MIDI device, use the Tools > USB Type menu
     usbMIDI.sendNoteOn (7 + i, 127.1);
     ^
Forum_midi:22: error: 'usbMIDI' was not declared in this scope
To make a USB MIDI device, use the Tools > USB Type menu
 usbMIDI.sendNoteOff (7 + i, 127.1);
 ^
Forum_midi:25: error: expected identifier before '<' token
 if (and <9)
         ^
Forum_midi:29: error: expected ';' before '}' token
 else {i = 0};
            ^
too few arguments to function 'void digitalWrite(uint8_t, uint8_t)'

Now if you can't be trusted to tell the truth how can you expect anyone to help you?

Does this explain my intentions?

From where I sit your intentions is to jerk us about.