is output on Pin 0 via software serial. Standard expresion pedal wiper is read by POT_PIN (A/D input) and serial midi Serial midi epression pedal port works with ATtiny and most Arduino boards. Probably remove the Software Serial part and change to hardware serial for Arduino boards… Here is my code complete with comments: I implemented mine on an ATtiny85, but the code should work on most Arduino boards with little change. I recently wrote a routine based on stuff I found on the net for a midi expression port. ReadSwitchOld4 = readSwitchNew4 ndControlChange(footSwitch4CC, 127, defaultChannel) ReadSwitchOld3 = readSwitchNew3 ndControlChange(footSwitch3CC, 127, defaultChannel) ndControlChange(footSwitch2CC, 127, defaultChannel) ReadSwitchOld = readSwitchNew ndControlChange(footSwitch1CC, 127, defaultChannel) read the Footpedal Switches value into a variable configure pins as an input and enable the internal pull-up resistor MIDI.begin (MIDI_CHANNEL_OFF) //start midi The MIDI.h file is available on the Arduino site. There were several examples on the web which were very easy to modify for my project. Programming the Arduino (which I had never done) was a piece of cake. I removed the cable and soldered connections to the Arduino digital inputs and ground. In the Behringer there are five leads to the attached cable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |