Synth(MIDI)-controlled light effects on stage -project started, help appreciated
i play bass-synth (minimoog voyager) in kraftwerk-like band , since we´re "just standing there" thought it´d idea give songs different light effects give them more of individual visual feel. thought i´d use arduino this, though i´ve never been close programming before that´s quite threshold me. soldering , circuits more familiar.
first i´ll starting simple 1 board of white leds flash press key , 1 board of leds rows lit in sequence wave when press key. i´ve finished boards, , i´ve succesfully tried programming series of leds lighting up. got find out how use midi shield bought , midi library (which have absolutely no clue how use). appreciated!!!
here´s code "wave-leds" i´ll use start. when i´ve figured out hope make run once , start on if key pressed. i´m pleased if can sequence started pressing key on moog.
first i´ll starting simple 1 board of white leds flash press key , 1 board of leds rows lit in sequence wave when press key. i´ve finished boards, , i´ve succesfully tried programming series of leds lighting up. got find out how use midi shield bought , midi library (which have absolutely no clue how use). appreciated!!!
here´s code "wave-leds" i´ll use start. when i´ve figured out hope make run once , start on if key pressed. i´m pleased if can sequence started pressing key on moog.
code: [select]
int switchstate=0;
void setup(){
pinmode(3,output);
pinmode(4,output);
pinmode(5,output);
pinmode(6,output);
pinmode(7,output);
pinmode(2,input);
}
void loop(){
switchstate = digitalread(2);
if(switchstate==high) { // button pressed
digitalwrite(3, high); //red led
digitalwrite(4, low); //red led
digitalwrite(5, low); //red led
digitalwrite(6, low); //red led
digitalwrite(7, low); //red led
delay(50); // wait quarter second
digitalwrite(3, high); //red led
digitalwrite(4, high); //red led
digitalwrite(5, low); //red led
digitalwrite(6, low); //red led
digitalwrite(7, low); //red led
delay(50); // wait quarter second
digitalwrite(3, high); //red led
digitalwrite(4, high); //red led
digitalwrite(5, high); //red led
digitalwrite(6, low); //red led
digitalwrite(7, low); //red led
delay(50); // wait quarter second
digitalwrite(3, low); //red led
digitalwrite(4, high); //red led
digitalwrite(5, high); //red led
digitalwrite(6, high); //red led
digitalwrite(7, low); //red led
delay(50); // wait quarter second
digitalwrite(3, low); //red led
digitalwrite(4, low); //red led
digitalwrite(5, high); //red led
digitalwrite(6, high); //red led
digitalwrite(7, high); //red led
delay(50); // wait quarter second
digitalwrite(3, low); //red led
digitalwrite(4, low); //red led
digitalwrite(5, low); //red led
digitalwrite(6, high); //red led
digitalwrite(7, high); //red led
delay(50); // wait quarter second
digitalwrite(3, low); //red led
digitalwrite(4, low); //red led
digitalwrite(5, low); //red led
digitalwrite(6, low); //red led
digitalwrite(7, high); //red led
delay(50); // wait quarter second
digitalwrite(3, low); //red led
digitalwrite(4, low); //red led
digitalwrite(5, low); //red led
digitalwrite(6, low); //red led
digitalwrite(7, low); //red led
delay(50); // wait quarter second
}
else { // button not pressed
digitalwrite(3, low); //red led
digitalwrite(4, low); //red led
digitalwrite(5, low); //red led
digitalwrite(6, low); //red led
digitalwrite(7, low); //red led
}
} // go beginning of loop
the board red leds supposed lit row @ time
the board white leds lit @ same time. 1 turned out real headlight! had put 1k resistor in front of them.
the board white leds lit @ same time. 1 turned out real headlight! had put 1k resistor in front of them.
Arduino Forum > Using Arduino > Project Guidance > Synth(MIDI)-controlled light effects on stage -project started, help appreciated
arduino
Comments
Post a Comment