/*EvilMaker Orchid (Opensource) 2015 v1.00-d
by Virtualwiz
*/
void midiSend (int cmd, int pitch, int velocity) {
Serial.write(cmd);
Serial.write(pitch);
Serial.write(velocity);
}
const byte buzzer=50;
//Serial to MIDI or Native MIDI?
boolean debug_mode=true;
const unsigned char kick=36;
const unsigned char snare=38;
const unsigned char tom_high=50;
const unsigned char tom_low=45;
const unsigned char tom_bass=41;
const unsigned char crash_left=49;
const unsigned char crash_right=57;
const unsigned char hat_open=51; //46
const unsigned char hat_close=42;
char adc_channel[7] ={
'A0','A1','A2','A3','A4','A5','A6'
};
void setup() {
pinMode(buzzer,OUTPUT);
pinMode(7,OUTPUT);
pinMode(6,INPUT);
pinMode(3,INPUT);
digitalWrite(3,HIGH);
digitalWrite(6,HIGH);
//3 is for Kick and 6 is for hi-hat
//Startup tone
tone(buzzer,1397,130);
delay(130);
tone(buzzer,1568,130);
delay(13