├── Arduino Code ├── MIDI Serial Test │ ├── Serial_Stepper.ino │ └── pitches.h ├── MIDI Stepper V1 │ ├── MIDI_Stepper_V1.ino │ └── pitches.h ├── Stepper Test │ └── Stepper_Test.ino └── Tune Stepper │ └── Tune_Stepper.ino ├── Custom PCB ├── Arduino Stepper Synth Uno BOM.ods ├── Arduino Stepper Synth Uno-GERBER.zip ├── Arduino Stepper Synth Uno.jpg ├── Arduino Stepper Synth Uno.pdf ├── Arduino Stepper Synth Uno.zip └── README.md ├── LICENSE ├── LUFA └── midi_stepper.hex ├── MIDI Files ├── ASGORE Stepper.mid ├── Axel_F2.mid ├── Chrono_Trigger_Battle_Stepper.mid ├── Corridors_of_Time_Stepper.mid ├── FF7_Clouds_Theme_Stepper.mid ├── Final_Fantasy_VII_Intro_-_Stepper.mid ├── FoolingYourselfStepper.mid ├── Man with a Machine Gun FF8 Stepper.mid ├── One Piece Stepper.mid ├── Star_Wars_Main_Theme Stepper.mid ├── Toto_-_Africa_Stepper.mid └── UnderTale_Hopes_and_Dreams Stepper.mid ├── README.md └── Schematics ├── MIDI Stepper V1.fzz ├── MIDI Stepper V1_bb.png └── MIDI Stepper V1_schem.png /Arduino Code/MIDI Serial Test/Serial_Stepper.ino: -------------------------------------------------------------------------------- 1 | /* 2 | * Serial Stepper 3 | * 4 | * By Jonathan Kayne 5 | * April 2018 6 | * 7 | * This program allows the user to input a MIDI pitch value through the serial monitor 8 | * and runs that motor at the speed corresponding to that in the pitches.h file. 9 | * Use an instrument tuner to figure out what speed value is correct and put it in 10 | * the pitches.h file 11 | */ 12 | #include "pitches.h" 13 | 14 | //ARDUINO PINS 15 | #define stepPin 2 16 | #define dirPin 5 17 | #define enPin 8 18 | 19 | unsigned long motorSpeed = 0; 20 | unsigned long prevStepMicros = 0; 21 | unsigned int midiNote = 0; 22 | bool stepState = false; 23 | 24 | void setup() { 25 | pinMode(stepPin, OUTPUT); 26 | pinMode(dirPin, OUTPUT); 27 | pinMode(enPin, OUTPUT); 28 | digitalWrite(dirPin, LOW); 29 | Serial.begin(9600); 30 | while(!Serial) {/*do nothing*/;} 31 | 32 | Serial.println("\nPlease Enter a Stepper MIDI number."); 33 | } 34 | 35 | void loop() { 36 | if (motorSpeed == 0) 37 | { 38 | digitalWrite(enPin, HIGH); 39 | } 40 | else 41 | { 42 | digitalWrite(enPin, LOW); 43 | } 44 | while(Serial.available() > 0) //taking in the speed value 45 | { 46 | midiNote = Serial.parseInt(); 47 | motorSpeed = pitchVals[midiNote]; 48 | Serial.print("MIDI Note entered: "); 49 | Serial.println(midiNote); 50 | Serial.print("motor Speed is: "); 51 | Serial.println(motorSpeed); 52 | Serial.println("\nPlease Enter a Stepper MIDI number."); 53 | } 54 | if ((micros() - prevStepMicros >= motorSpeed) && motorSpeed != 0)//stepper motor speed control 55 | { 56 | prevStepMicros += motorSpeed; 57 | digitalWrite(stepPin, HIGH); 58 | digitalWrite(stepPin, LOW); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Arduino Code/MIDI Serial Test/pitches.h: -------------------------------------------------------------------------------- 1 | /* 2 | pitches.h 3 | Made By Jonathan Kayne 4 | April 2018 5 | This is an array of MIDI pitches and their respective speed values. 6 | The index is the MIDI pitch value 7 | The value stored is the time value between pulses on the stepper motor that produce the desired tone. 8 | You can adjust these to tune your stepper motor. 9 | Note that the duration is in microseconds, so 1 second = 1,000,000 microseconds. 10 | Calculation: 11 | pitchVal = 1000000/frequency 12 | 13 | */ 14 | 15 | const long pitchVals[] = { 16 | 0, //0, C-1 17 | 0, //1, C#-1 18 | 0, //2, D-1 19 | 0, //3, D#-1 20 | 0, //4, E-1 21 | 0, //5, F-1 22 | 0, //6, F#-1 23 | 0, //7, G-1 24 | 0, //8, G#-1 25 | 0, //9, A-1 26 | 0, //10, A#-1 27 | 0, //11, B-1 28 | 0, //12, C0 29 | 0, //13, C#0 30 | 0, //14, D0 31 | 0, //15, D#0 32 | 0, //16, E0 33 | 0, //17, F0 34 | 0, //18, F#0 35 | 0, //19, G0 36 | 0, //20, G#0 37 | 0, //21, A0 38 | 0, //22, A#0 39 | 32258, // 23 B0 31 40 | 30303, // 24 C1 33 41 | 28571, // 25 CS1 35 42 | 27027, // 26 D1 37 43 | 25641, // 27 DS1 39 44 | 24390, // 28 E1 41 45 | 22727, // 29 F1 44 46 | 21739, // 30 FS1 46 47 | 20408, // 31 G1 49 48 | 19230, // 32 GS1 52 49 | 18182, // 33 A1 55 50 | 17241, // 34 AS1 58 51 | 16129, // 35 B1 62 52 | 15385, // 36 C2 65 53 | 14493, // 37 CS2 69 54 | 13699, // 38 D2 73 55 | 12821, // 39 DS2 78 56 | 12195, // 40 E2 82 57 | 11494, // 41 F2 87 58 | 10753, // 42 FS2 93 59 | 10204, // 43 G2 98 60 | 9615, // 44 GS2 104 61 | 9091, // 45 A2 110 62 | 8547, // 46 AS2 117 63 | 8130, // 47 B2 123 64 | 7634, // 48 C3 131 65 | 7194, // 49 CS3 139 66 | 6803, // 50 D3 147 67 | 6410, // 51 DS3 156 68 | 6061, // 52 E3 165 69 | 5714, // 53 F3 175 70 | 5405, // 54 FS3 185 71 | 5102, // 55 G3 196 72 | 4808, // 56 GS3 208 73 | 4545, // 57 A3 220 74 | 4292, // 58 AS3 233 75 | 4049, // 59 B3 247 76 | 3817, // 60 C4 262 77 | 3610, // 61 CS4 277 78 | 3401, // 62 D4 294 79 | 3215, // 63 DS4 311 80 | 3030, // 64 E4 330 81 | 2865, // 65 F4 349 82 | 2703, // 66 FS4 370 83 | 2551, // 67 G4 392 84 | 2410, // 68 GS4 415 85 | 2273, // 69 A4 440 86 | 2146, // 70 AS4 466 87 | 2024, // 71 B4 494 88 | 1912, // 72 C5 523 89 | 1805, // 73 CS5 554 90 | 1704, // 74 D5 587 91 | 1608, // 75 DS5 622 92 | 1517, // 76 E5 659 93 | 1433, // 77 F5 698 94 | 1351, // 78 FS5 740 95 | 1276, // 79 G5 784 96 | 1203, // 80 GS5 831 97 | 1136, // 81 A5 880 98 | 1073, // 82 AS5 932 99 | 1012, // 83 B5 988 100 | 955, // 84 C6 1047 101 | 902, // 85 CS6 1109 102 | 851, // 86 D6 1175 103 | 803, // 87 DS6 1245 104 | 758, // 88 E6 1319 105 | 716, // 89 F6 1397 106 | 676, // 90 FS6 1480 107 | 638, // 91 G6 1568 108 | 602, // 92 GS6 1661 109 | 568, // 93 A6 1760 110 | 536, // 94 AS6 1865 111 | 506, // 95 B6 1976 112 | 478, // 96 C7 2093 113 | 451, // 97 CS7 2217 114 | 426, // 98 D7 2349 115 | 402, // 99 DS7 2489 116 | 379, // 100 E7 2637 117 | 358, // 101 F7 2794 118 | 338, // 102 FS7 2960 119 | 315, // 103 G7 3136 120 | 301, // 104 GS7 3322 121 | 284, // 105 A7 3520 122 | 268, // 106 AS7 3729 123 | 253, // 107 B7 3951 124 | 239, // 108 C8 4186 125 | 225, // 109 CS8 4435 126 | 213, // 110 D8 4699 127 | 201, // 111 DS8 4978 128 | 0, //112, E8 129 | 0, //113, F8 130 | 0, //114, F#8 131 | 0, //115, G8 132 | 0, //116, G#8 133 | 0, //117, A8 134 | 0, //118, A#8 135 | 0, //119, B8 136 | 0, //120, C9 137 | 0, //121, C#9 138 | 0, //122, D9 139 | 0, //123, D#9 140 | 0, //124, E9 141 | 0, //125, F9 142 | 0, //126, F#9 143 | 0, //127, G9 144 | }; 145 | 146 | 147 | 148 | -------------------------------------------------------------------------------- /Arduino Code/MIDI Stepper V1/MIDI_Stepper_V1.ino: -------------------------------------------------------------------------------- 1 | #include 2 | #include "pitches.h" 3 | 4 | /* 5 | * MIDI STEPPER V1 6 | * 7 | * By Jonathan Kayne / jzkmath 8 | * April 2018 9 | * https://github.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument 10 | * 11 | * Takes MIDI data and converts it to stepper music! 12 | * Since the steppers only need to spin in one direction, 13 | * you only need to control the STEP pin on the A4988 driver 14 | * and pull DIR to either 5V or GND. 15 | * You can add more stepper motors to the sketch by specifying more pins 16 | * and expanding the array. 17 | * I also tried to put plenty of comments so that you can understand the code 18 | * and possibly be able to use it or part of it in other projects! 19 | */ 20 | 21 | //ARDUINO PINS 22 | //configured for CNC Shield V3 23 | #define stepPin_M1 2 24 | #define stepPin_M2 3 25 | #define stepPin_M3 4 26 | #define stepPin_M4 12 27 | 28 | //note that Direction Pins aren't necessary 29 | //comment out if you don't plan on using them 30 | #define dirPin_M1 5 31 | #define dirPin_M2 6 32 | #define dirPin_M3 7 33 | #define dirPin_M4 13 34 | 35 | #define enPin 8 //Steppers are enabled when EN pin is pulled LOW 36 | 37 | #define TIMEOUT 10000 //Number of milliseconds for watchdog timer 38 | 39 | //The index corresponds to the MIDI channel/Motor number being used. Index 0 is not used. 40 | unsigned long motorSpeeds[] = {0, 0, 0, 0, 0}; //holds the speeds of the motors. 41 | unsigned long prevStepMicros[] = {0, 0, 0, 0, 0}; //last time 42 | const bool motorDirection = LOW; //you can use this to change the motor direction, comment out if you aren't using it. 43 | bool disableSteppers = HIGH; //status of the enable pin. disabled when HIGH. Gets enabled when the first note on message is received. 44 | unsigned long WDT; //Will store the time that the last event occured. 45 | 46 | MIDI_CREATE_DEFAULT_INSTANCE(); //use default MIDI settings 47 | 48 | void setup() 49 | { 50 | pinMode(stepPin_M1, OUTPUT); 51 | pinMode(stepPin_M2, OUTPUT); 52 | pinMode(stepPin_M3, OUTPUT); 53 | pinMode(stepPin_M4, OUTPUT); 54 | 55 | //Remove this comment if not using direction control /* 56 | pinMode(dirPin_M1, OUTPUT); 57 | pinMode(dirPin_M2, OUTPUT); 58 | pinMode(dirPin_M3, OUTPUT); 59 | pinMode(dirPin_M4, OUTPUT); 60 | digitalWrite(dirPin_M1, motorDirection); 61 | digitalWrite(dirPin_M2, motorDirection); 62 | digitalWrite(dirPin_M3, motorDirection); 63 | digitalWrite(dirPin_M4, motorDirection); //and this one too. */ 64 | pinMode(enPin, OUTPUT); 65 | 66 | MIDI.begin(MIDI_CHANNEL_OMNI); //listen to all MIDI channels 67 | MIDI.setHandleNoteOn(handleNoteOn); //execute function when note on message is recieved 68 | MIDI.setHandleNoteOff(handleNoteOff); //execute function when note off message is recieved 69 | //Serial.begin(115200); //allows for serial MIDI communication, comment out if using HIDUINO or LUFA 70 | } 71 | 72 | void loop() 73 | { 74 | MIDI.read(); //read MIDI messages 75 | digitalWrite(enPin, disableSteppers); //choose whether to enable or disable steppers. 76 | singleStep(1, stepPin_M1); //run each stepper at specified speed 77 | singleStep(2, stepPin_M2); 78 | singleStep(3, stepPin_M3); 79 | singleStep(4, stepPin_M4); 80 | 81 | if (millis() - WDT >= TIMEOUT) 82 | { 83 | disableSteppers = HIGH; //When the time has elapsed, disable the steppers 84 | } 85 | } 86 | 87 | void handleNoteOn(byte channel, byte pitch, byte velocity) //MIDI Note ON Command 88 | { 89 | disableSteppers = LOW; //enable steppers. 90 | motorSpeeds[channel] = pitchVals[pitch]; //set the motor speed to specified pitch 91 | /* 92 | * something that you could potentially do is have a grid of steppers 93 | * and use the velocity value to determine the number of steppers in each 94 | * collumn should be turned on. Each collumn would have its own MIDI channel. 95 | * The floppotron essentially does this... 96 | */ 97 | } 98 | 99 | void handleNoteOff(byte channel, byte pitch, byte velocity) //MIDI Note OFF Command 100 | { 101 | motorSpeeds[channel] = 0; //set motor speed to zero 102 | } 103 | 104 | void singleStep(byte motorNum, byte stepPin) 105 | { 106 | if ((micros() - prevStepMicros[motorNum] >= motorSpeeds[motorNum]) && (motorSpeeds[motorNum] != 0)) 107 | { //step when correct time has passed and the motor is at a nonzero speed 108 | prevStepMicros[motorNum] += motorSpeeds[motorNum]; 109 | WDT = millis(); //update watchdog timer 110 | digitalWrite(stepPin, HIGH); 111 | digitalWrite(stepPin, LOW); 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /Arduino Code/MIDI Stepper V1/pitches.h: -------------------------------------------------------------------------------- 1 | /* 2 | pitches.h 3 | Made By Jonathan Kayne 4 | April 2018 5 | 6 | This is an array of MIDI pitches and their respective speed values. 7 | The index is the MIDI pitch value 8 | The value stored is the time value between pulses on the stepper motor that produce the desired tone. 9 | 10 | You can adjust these to tune your stepper motor. 11 | Note that the duration is in microseconds, so 1 second = 1,000,000 microseconds. 12 | 13 | Calculation: 14 | pitchVal = 1000000/frequency 15 | 16 | */ 17 | 18 | const long pitchVals[] = { 19 | 0, //0, C-1 20 | 0, //1, C#-1 21 | 0, //2, D-1 22 | 0, //3, D#-1 23 | 0, //4, E-1 24 | 0, //5, F-1 25 | 0, //6, F#-1 26 | 0, //7, G-1 27 | 0, //8, G#-1 28 | 0, //9, A-1 29 | 0, //10, A#-1 30 | 0, //11, B-1 31 | 0, //12, C0 32 | 0, //13, C#0 33 | 0, //14, D0 34 | 0, //15, D#0 35 | 0, //16, E0 36 | 0, //17, F0 37 | 0, //18, F#0 38 | 0, //19, G0 39 | 0, //20, G#0 40 | 0, //21, A0 41 | 0, //22, A#0 42 | 32258, // 23 B0 31 43 | 30303, // 24 C1 33 44 | 28571, // 25 CS1 35 45 | 27027, // 26 D1 37 46 | 25641, // 27 DS1 39 47 | 24390, // 28 E1 41 48 | 22727, // 29 F1 44 49 | 21739, // 30 FS1 46 50 | 20408, // 31 G1 49 51 | 19230, // 32 GS1 52 52 | 18182, // 33 A1 55 53 | 17241, // 34 AS1 58 54 | 16129, // 35 B1 62 55 | 15385, // 36 C2 65 56 | 14493, // 37 CS2 69 57 | 13699, // 38 D2 73 58 | 12821, // 39 DS2 78 59 | 12195, // 40 E2 82 60 | 11494, // 41 F2 87 61 | 10753, // 42 FS2 93 62 | 10204, // 43 G2 98 63 | 9615, // 44 GS2 104 64 | 9091, // 45 A2 110 65 | 8547, // 46 AS2 117 66 | 8130, // 47 B2 123 67 | 7634, // 48 C3 131 68 | 7194, // 49 CS3 139 69 | 6803, // 50 D3 147 70 | 6410, // 51 DS3 156 71 | 6061, // 52 E3 165 72 | 5714, // 53 F3 175 73 | 5405, // 54 FS3 185 74 | 5102, // 55 G3 196 75 | 4808, // 56 GS3 208 76 | 4545, // 57 A3 220 77 | 4292, // 58 AS3 233 78 | 4049, // 59 B3 247 79 | 3817, // 60 C4 262 80 | 3610, // 61 CS4 277 81 | 3401, // 62 D4 294 82 | 3215, // 63 DS4 311 83 | 3030, // 64 E4 330 84 | 2865, // 65 F4 349 85 | 2703, // 66 FS4 370 86 | 2551, // 67 G4 392 87 | 2410, // 68 GS4 415 88 | 2273, // 69 A4 440 89 | 2146, // 70 AS4 466 90 | 2024, // 71 B4 494 91 | 1912, // 72 C5 523 92 | 1805, // 73 CS5 554 93 | 1704, // 74 D5 587 94 | 1608, // 75 DS5 622 95 | 1517, // 76 E5 659 96 | 1433, // 77 F5 698 97 | 1351, // 78 FS5 740 98 | 1276, // 79 G5 784 99 | 1203, // 80 GS5 831 100 | 1136, // 81 A5 880 101 | 1073, // 82 AS5 932 102 | 1012, // 83 B5 988 103 | 955, // 84 C6 1047 104 | 902, // 85 CS6 1109 105 | 851, // 86 D6 1175 106 | 803, // 87 DS6 1245 107 | 758, // 88 E6 1319 108 | 716, // 89 F6 1397 109 | 676, // 90 FS6 1480 110 | 638, // 91 G6 1568 111 | 602, // 92 GS6 1661 112 | 568, // 93 A6 1760 113 | 536, // 94 AS6 1865 114 | 506, // 95 B6 1976 115 | 478, // 96 C7 2093 116 | 451, // 97 CS7 2217 117 | 426, // 98 D7 2349 118 | 402, // 99 DS7 2489 119 | 379, // 100 E7 2637 120 | 358, // 101 F7 2794 121 | 338, // 102 FS7 2960 122 | 315, // 103 G7 3136 123 | 301, // 104 GS7 3322 124 | 284, // 105 A7 3520 125 | 268, // 106 AS7 3729 126 | 253, // 107 B7 3951 127 | 239, // 108 C8 4186 128 | 225, // 109 CS8 4435 129 | 213, // 110 D8 4699 130 | 201, // 111 DS8 4978 131 | 0, //112, E8 132 | 0, //113, F8 133 | 0, //114, F#8 134 | 0, //115, G8 135 | 0, //116, G#8 136 | 0, //117, A8 137 | 0, //118, A#8 138 | 0, //119, B8 139 | 0, //120, C9 140 | 0, //121, C#9 141 | 0, //122, D9 142 | 0, //123, D#9 143 | 0, //124, E9 144 | 0, //125, F9 145 | 0, //126, F#9 146 | 0, //127, G9 147 | }; 148 | 149 | 150 | 151 | -------------------------------------------------------------------------------- /Arduino Code/Stepper Test/Stepper_Test.ino: -------------------------------------------------------------------------------- 1 | /* 2 | Stepper Test 3 | By: Jonathan Kayne 4 | April 2018 5 | 6 | Use this code to make sure that your stepper motors are wired up 7 | properly to the A4988 drivers. 8 | Pin are set up for the Arduino CNC Shield V3 (X-axis) 9 | so change them to match the correct wiring you use. 10 | */ 11 | #define stepPin 2 12 | #define dirPin 5 13 | #define enPin 8 14 | const int Time_1 = 5000; //duration between pulses 15 | const int Time_2 = 5000; 16 | const int step_1 = 200; //steps per revolution 17 | const int step_2 = 200; 18 | 19 | void setup() { 20 | pinMode(stepPin, OUTPUT); 21 | pinMode(dirPin, OUTPUT); 22 | pinMode(enPin, OUTPUT); 23 | digitalWrite(enPin, LOW); 24 | 25 | } 26 | 27 | void loop() { 28 | digitalWrite(dirPin, HIGH); 29 | 30 | for (int i = 0; i < step_1; i++) 31 | { 32 | digitalWrite(stepPin, HIGH); 33 | //delayMicroseconds(Time_1); 34 | digitalWrite(stepPin, LOW); 35 | delayMicroseconds(Time_1); 36 | } 37 | 38 | delayMicroseconds(2000); 39 | 40 | digitalWrite(dirPin, LOW); 41 | for (int i = 0; i < step_2; i++) 42 | { 43 | digitalWrite(stepPin, HIGH); 44 | //delayMicroseconds(Time_2); 45 | digitalWrite(stepPin, LOW); 46 | delayMicroseconds(Time_2); 47 | } 48 | 49 | digitalWrite(enPin, HIGH); 50 | while(1); //stop loop 51 | 52 | } 53 | -------------------------------------------------------------------------------- /Arduino Code/Tune Stepper/Tune_Stepper.ino: -------------------------------------------------------------------------------- 1 | /* 2 | * TuneStepper 3 | * 4 | * By Jonathan Kayne 5 | * April 2018 6 | * 7 | * This program allows the user to input a speed value through the serial monitor 8 | * and runs that motor at that speed. 9 | * You should compare the sound with the value on the pitches.h file 10 | * and check for the resonant frequency of your stepper. 11 | * The resonant frequency will cause the motor to produce a garbled tone. 12 | * It will appear as if the motor has stalled. If this happens, raise/lower the pitch value 13 | * by an octave. 14 | */ 15 | 16 | //ARDUINO PINS 17 | #define stepPin 3 18 | #define dirPin 6 19 | #define enPin 8 20 | 21 | unsigned long motorSpeed = 0; 22 | unsigned long prevStepMicros = 0; 23 | bool stepState = false; 24 | 25 | void setup() { 26 | pinMode(stepPin, OUTPUT); 27 | pinMode(dirPin, OUTPUT); 28 | pinMode(enPin, OUTPUT); 29 | digitalWrite(dirPin, LOW); 30 | Serial.begin(9600); 31 | while(!Serial) {/*do nothing*/;} 32 | 33 | Serial.println("\n\nPlease Enter a Stepper Motor Speed Value."); 34 | } 35 | 36 | void loop() { 37 | if (motorSpeed == 0) 38 | { 39 | digitalWrite(enPin, HIGH); 40 | } 41 | else 42 | { 43 | digitalWrite(enPin, LOW); 44 | } 45 | while(Serial.available() > 0) //taking in the speed value 46 | { 47 | motorSpeed = Serial.parseInt(); 48 | Serial.print("Stepper Motor Speed set to: "); 49 | Serial.println(motorSpeed); 50 | Serial.println("\nPlease Enter a Stepper Motor Speed Value."); 51 | } 52 | if ((micros() - prevStepMicros >= motorSpeed) && motorSpeed != 0)//stepper motor speed control 53 | { 54 | prevStepMicros += motorSpeed; 55 | digitalWrite(stepPin, HIGH); 56 | digitalWrite(stepPin, LOW); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Custom PCB/Arduino Stepper Synth Uno BOM.ods: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/Custom PCB/Arduino Stepper Synth Uno BOM.ods -------------------------------------------------------------------------------- /Custom PCB/Arduino Stepper Synth Uno-GERBER.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/Custom PCB/Arduino Stepper Synth Uno-GERBER.zip -------------------------------------------------------------------------------- /Custom PCB/Arduino Stepper Synth Uno.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/Custom PCB/Arduino Stepper Synth Uno.jpg -------------------------------------------------------------------------------- /Custom PCB/Arduino Stepper Synth Uno.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/Custom PCB/Arduino Stepper Synth Uno.pdf -------------------------------------------------------------------------------- /Custom PCB/Arduino Stepper Synth Uno.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/Custom PCB/Arduino Stepper Synth Uno.zip -------------------------------------------------------------------------------- /Custom PCB/README.md: -------------------------------------------------------------------------------- 1 | ### Custom PCB 2 | 3 | This is an Arduino Shield designed to be specifically used with the MIDI stepper synth. In this design, the MIDI interface is built-in, so it is all in one! 4 | 5 | Note that when you are uploading code, be sure to remove the shield from the arduino! 6 | 7 | Source files were made in KiCad 5.1.9 and this includes the Gerber files and BOM so that you can build it yourself. All components can be sourced from Digikey and Amazon. 8 | 9 | ![PCB Render](https://github.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/blob/master/Custom%20PCB/Arduino%20Stepper%20Synth%20Uno.jpg) 10 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /LUFA/midi_stepper.hex: -------------------------------------------------------------------------------- 1 | :10000000EEC0000008C1000006C1000004C10000ED 2 | :1000100002C1000000C10000FEC00000FCC00000E2 3 | :10002000FAC00000F8C00000F6C0000051C6000091 4 | :10003000F6C60000F0C00000EEC00000ECC00000FA 5 | :10004000EAC00000E8C00000E6C00000E4C0000014 6 | :10005000E2C00000E0C00000DEC0000089C3000074 7 | :10006000DAC00000D8C00000D6C00000D4C0000034 8 | :10007000D2C000006D078F0748088F074808D407D3 9 | :10008000F1074808100822081201100100000008BA 10 | :100090004123FA340000010200011A034D00490017 11 | :1000A0004400490020005300740065007000700097 12 | :1000B00065007200000012011001020000084123D7 13 | :1000C00001000100010200011803410072006400F8 14 | :1000D000750069006E006F00200055006E006F0013 15 | :1000E00000001E034A006F006E006100740068008B 16 | :1000F00061006E0020004B00610079006E00650019 17 | :1001000000003203410072006400750069006E0057 18 | :100110006F00200028007700770077002E00610034 19 | :1001200072006400750069006E006F002E006300AD 20 | :1001300063002900000004030904090265000201AC 21 | :1001400000C0320904000000010100000924010080 22 | :100150000109000101090401000201030000072454 23 | :1001600001000141000624020101000624020202EE 24 | :100170000009240301030102010009240302040110 25 | :1001800001010009050102400000000005250101F0 26 | :100190000109058202400000000005250101030954 27 | :1001A000023E00020100C032090400000102020107 28 | :1001B000000524000110042402060524060001079E 29 | :1001C0000582030800FF09040100020A000000077D 30 | :1001D00005040240000107058302400001001124CC 31 | :1001E0001FBECFEFD2E0DEBFCDBF11E0A0E0B1E097 32 | :1001F000ECEAF4E102C005900D92A233B107D9F701 33 | :1002000022E0A2E3B1E001C01D92A23BB207E1F7F8 34 | :1002100034D20C94540AF4CEFC01E058FF4FA08174 35 | :10022000B1816C93A081B1819D012F5F3F4F3183DC 36 | :1002300020832E173F0721F412969C938E931197DB 37 | :100240002FB7F894FC01EC57FF4F80818F5F8083BC 38 | :100250002FBF0895DC01AE57BF4FED91FC91119770 39 | :1002600021911196FC93EE93AC0140585F4FE41737 40 | :10027000F50711F48D939C933FB7F894FC01EC576C 41 | :10028000FF4F9081915090833FBF822F0895CF936D 42 | :10029000DF9320917701FC01860F4081342F3F705E 43 | :1002A000323030F4982F9E1B953008F13496F5CFFC 44 | :1002B000EF01219691E04B7054EF530F6991A22FFB 45 | :1002C000B0E0AA5CBE4F6C932F5F2F73913029F47E 46 | :1002D000353041F33F3039F4E5CF923021F44230EC 47 | :1002E00009F35230F8F29F5F943041F7DBCF20934F 48 | :1002F0007701DF91CF910895982F80913501882360 49 | :1003000019F1E091340181E08E0F80933401973F21 50 | :1003100069F4AE2FB0E0A858BE4F9C93EC5FE09319 51 | :10032000780110923501109233015FC0F0E0E85877 52 | :10033000FE4F9083843011F080E00895809378011F 53 | :1003400081E0809334010895983F50F08FE08093CE 54 | :1003500078019093790110927A0110927B0145C047 55 | :1003600097FF0DC0903F49F421E020933501909311 56 | :10037000790192E0909334010895109233018091B5 57 | :100380003301811110C0392F32953F70232F277010 58 | :10039000220F2E5F209333013093880190938901BF 59 | :1003A00010928B010895E82FF0E0EF5DFE4F408141 60 | :1003B000282F217030E0F901E857FE4F9283842FF7 61 | :1003C0008F708093330147FFB7CF80918801909160 62 | :1003D0008901A0918A01B0918B018093780190935B 63 | :1003E0007901A0937A01B0937B0181E00895CF93C6 64 | :1003F000DF9300D000D0CDB7DEB7789413E088E269 65 | :10040000F82E02E08091C80087FF0BC08091CE00DB 66 | :1004100073DF90919801892B809398015D981093D8 67 | :10042000990180919801882351F068E771E081E09B 68 | :1004300091E0BED781E091E0DED710929801BE0135 69 | :100440006F5F7F4F81E091E0E9D7882341F064E05E 70 | :10045000CE0101961CDF5C9810939A01F0CF809139 71 | :10046000C80085FF15C0E0917601809177018E1755 72 | :1004700079F081E08E0F80937601F0E0EA5CFE4F28 73 | :1004800080818093CE00809176018F738093760176 74 | :10049000A89B19C0A89A80919901882341F0809166 75 | :1004A0009901815080939901811101C05D9A8091D9 76 | :1004B0009A01882341F080919A01815080939A019A 77 | :1004C000811101C05C9AEDD580913201813009F033 78 | :1004D00099CF80910001815019F08093000192CF53 79 | :1004E000F092000185B1802785B98CCF2FB7F894A1 80 | :1004F00081E292E09093A2028093A1029093A402E1 81 | :100500008093A3022FBF2FB7F8948CE991E09093CA 82 | :100510001D0280931C0290931F0280931E022FBF26 83 | :100520007894D3E09FB7F8948091A5029FBF80385C 84 | :1005300049F08AE091E0DAD697FD04C0682F81E2A5 85 | :1005400092E06ADE8FB7F894C09120028FBFA8991D 86 | :1005500002C0C13658F1A89A80912002882319F070 87 | :100560005D98D0939901CC2349F08CE991E072DE3B 88 | :10057000682F8AE091E05BD6C150F5CF8091990158 89 | :10058000882341F0809199018150809399018111D4 90 | :1005900001C05D9A80919A01882341F080919A016F 91 | :1005A000815080939A01811101C05C9A9FB7F894A1 92 | :1005B0008091A5029FBF882361F081E292E04ADE2C 93 | :1005C0009091C80095FFFCCF8093CE005C98D093AB 94 | :1005D0009A018AE091E07CD664D5A4CF84B7877F66 95 | :1005E00084BF0FB6F894A8958091600088618093CD 96 | :1005F0006000109260000FBE82E084B98CE085B983 97 | :100600008AB180638AB98BB180638BB984E690E04C 98 | :100610005C985C9A0197E1F71A9913C01092200137 99 | :1006200087E690E09093CD008093CC0086E08093A5 100 | :10063000CA001092C80088E18093C900539A5A9A60 101 | :1006400012C081E0809320011B9905C08093320184 102 | :100650001092CC0003C08FE18093CC0088E180939E 103 | :10066000C9008EE085B984E085BD27D38091200143 104 | :10067000811102C05F9A579A0895B0DF80912001DE 105 | :10068000813009F4B4DE32DF0895089580912001AD 106 | :10069000813019F481E091E054C68AE091E07DC593 107 | :1006A00080912001811103C08AE091E00CC508957A 108 | :1006B0000F931F93CF938C01FC018489813021F02B 109 | :1006C000823021F4C0E203C0C0E301C0C0E0F80101 110 | :1006D0008389823009F4C860F8018589873031F058 111 | :1006E000883031F0863029F4C26003C0C46001C094 112 | :1006F000C6601092C9001092C8001092CA00F8019A 113 | :1007000027853089418952892115F1EE3F0741053E 114 | :10071000510581F0DA01C901B695A795979587959E 115 | :10072000BC01CD0160587B47814E9F4F95D621502B 116 | :10073000310902C020E130E03093CD002093CC009D 117 | :10074000C093CA00F80187859089A189B289811573 118 | :10075000914EA105B10511F082E001C080E08093C7 119 | :10076000C80088E98093C900CF911F910F91089527 120 | :100770001F920F920FB60F9211242F933F934F9316 121 | :100780005F936F937F938F939F93AF93BF93EF93F9 122 | :10079000FF9380912001811108C06091CE008EB33B 123 | :1007A000843019F48CE991E037DDFF91EF91BF912E 124 | :1007B000AF919F918F917F916F915F914F913F91F9 125 | :1007C0002F910F900FBE0F901F901895FC018585FB 126 | :1007D00080FF02C05F9808955F9A0895292F3327FC 127 | :1007E0002230310589F023303105C1F02130310547 128 | :1007F00009F058C080912001813009F449C082E19C 129 | :1008000090E026EB30E052C080912001813009F465 130 | :1008100044C08EE390E02FE931E048C09927813051 131 | :10082000910571F082309105F9F0892B09F03AC0F9 132 | :10083000E6E3F1E0E4918E2F90E026E331E036C06C 133 | :1008400080912001813041F4E2EEF0E0E4918E2FBE 134 | :1008500090E022EE30E02AC0E2E0F1E0E4918E2F59 135 | :1008600090E022E031E022C080912001813041F40B 136 | :10087000EAE9F0E0E4918E2F90E02AE930E016C03A 137 | :10088000E8ECF0E0E4918E2F90E028EC30E00EC030 138 | :1008900082E190E028E830E009C085E690E02AE3B4 139 | :1008A00031E004C080E090E020E030E0FA013183E4 140 | :1008B00020830895AC0128E030E080E0241735075C 141 | :1008C00020F48F5F220F331FF9CF8295807F089528 142 | :1008D0008093E900EBEEF0E0808181608083EDEEB3 143 | :1008E000F0E010826093EC0040838091EE00881F5E 144 | :1008F0008827881F08951092F40080E08093E90013 145 | :100900001092F0001092E8001092ED009091EB0030 146 | :100910009E7F9093EB008F5F853081F708958091E3 147 | :10092000AA0287FF0FC08091E80082FD04C08EB349 148 | :100930008111F9CF10C08091E8008B770AC08EB387 149 | :10094000882349F08091E80080FFF9CF8091E8008A 150 | :100950008E778093E800089585E69091EC0090FFF3 151 | :1009600005C09091E80090FF05C01BC09091E80081 152 | :1009700092FD17C09EB39923B1F09EB39530A9F0B4 153 | :100980009091EB0095FD13C09091E10092FFE5CFAF 154 | :100990009091E1009B7F9093E1008150F1F684E01B 155 | :1009A000089580E0089582E0089583E0089581E04D 156 | :1009B0000895EF92FF920F931F93CF93DF938C01D3 157 | :1009C000EB017A01C9DF81111DC02097D1F0809120 158 | :1009D000E80085FD0EC08091E8008E778093E800E6 159 | :1009E000E114F10479F3F7010995813059F785E0B5 160 | :1009F00009C0F80180818093F10021970F5F1F4F9C 161 | :100A0000E4CF80E0DF91CF911F910F91FF90EF90A5 162 | :100A10000895EF92FF920F931F93CF93DF938C0172 163 | :100A2000EB017A0199DF81111DC02097D1F08091EF 164 | :100A3000E80085FD0EC08091E8008B778093E80088 165 | :100A4000E114F10479F3F7010995813059F785E054 166 | :100A500009C08091F100F801808321970F5F1F4F3B 167 | :100A6000E4CF80E0DF91CF911F910F91FF90EF9045 168 | :100A700008952091B0023091B1022617370748F04F 169 | :100A80006115710539F42091E8002E772093E80074 170 | :100A900001C0B90130E06115710561F12091E800F4 171 | :100AA00023FD37C02091E80022FD2DC02EB3222364 172 | :100AB00091F12EB3253089F12091E80020FFEBCF92 173 | :100AC0002091F200FC01CF016115710549F0283039 174 | :100AD00038F481918093F100615071092F5FF3CF59 175 | :100AE00031E0283009F030E02091E8002E772093A3 176 | :100AF000E800D1CF3111D2CF06C08EB3882359F090 177 | :100B00008EB3853051F08091E80082FFF6CF80E00F 178 | :100B1000089581E0089582E0089583E0089520918A 179 | :100B2000B0023091B1022617370748F06115710500 180 | :100B300039F42091E8002E772093E80001C0B90134 181 | :100B400030E06115710569F12091E80023FD38C09E 182 | :100B50002091E80022FD2EC02EB3222399F12EB35E 183 | :100B6000253091F12091E80020FFEBCF2091F20099 184 | :100B7000FC01CF016115710551F0283040F48491DA 185 | :100B80008093F100615071092F5F3196F2CF31E00F 186 | :100B9000283009F030E02091E8002E772093E8001B 187 | :100BA000D0CF3111D1CF06C08EB3882359F08EB388 188 | :100BB000853051F08091E80082FFF6CF80E0089503 189 | :100BC00081E0089582E0089583E00895611571053C 190 | :100BD00029F42091E8002B772093E8006115710536 191 | :100BE00011F12091E80023FD24C02EB3222319F136 192 | :100BF0002EB3253011F12091E80022FFEFCF209194 193 | :100C0000F200222331F301962091F100FC0131978B 194 | :100C100020836150710999F7DCCF8EB3882359F096 195 | :100C20008EB3853051F08091E80080FFF6CF80E0F0 196 | :100C3000089581E0089582E0089583E0089542D008 197 | :100C400044D01EBA1092A8021092A7021092A602D7 198 | :100C500084E089BD89B5826089BD09B400FEFDCFFD 199 | :100C60008091D800982F9F779093D80080688093C8 200 | :100C7000D800809163008E7F809363008091D800BC 201 | :100C80008F7D8093D8008091E0008E7F8093E0007C 202 | :100C90008091E1008E7F8093E1008091E20081608D 203 | :100CA0008093E2008091E100877F8093E100809152 204 | :100CB000E20088608093E2000895C1DF81E08093C4 205 | :100CC000A90208951092E20008951092E10008959B 206 | :100CD0001F920F920FB60F9211242F933F934F93B1 207 | :100CE0005F936F937F938F939F93AF93BF93EF9394 208 | :100CF000FF938091E10080FF1BC08091E20080FFA4 209 | :100D000017C08091E1008E7F8093E1008091E20026 210 | :100D10008E7F8093E2008091E20080618093E20008 211 | :100D20008091D80080628093D80019BC1EBAADDCD7 212 | :100D30008091E10084FF29C08091E20084FF25C0FA 213 | :100D400084E089BD89B5826089BD09B400FEFDCF0C 214 | :100D50008091D8008F7D8093D8008091E1008F7EB4 215 | :100D60008093E1008091E2008F7E8093E200809189 216 | :100D7000E20081608093E2008091A802811102C0AC 217 | :100D800081E001C084E08EBB7FDC8091E10083FFC5 218 | :100D900027C08091E20083FF23C08091E100877F1C 219 | :100DA0008093E10082E08EBB1092A8028091E10066 220 | :100DB0008E7F8093E1008091E2008E7F8093E2003D 221 | :100DC0008091E20080618093E20095DD42E060E086 222 | :100DD00080E07EDD8091F00088608093F00060D13B 223 | :100DE0008091E10082FF0AC08091E20082FF06C08C 224 | :100DF0008091E1008B7F8093E10052D1FF91EF91D0 225 | :100E0000BF91AF919F918F917F916F915F914F9122 226 | :100E10003F912F910F900FBE0F901F9018951F922A 227 | :100E20000F920FB60F921124FF920F931F932F93DF 228 | :100E30003F934F935F936F937F938F939F93AF9362 229 | :100E4000BF93CF93DF93EF93FF93C9EED0E08881F8 230 | :100E50008770F82E188200EF10E0F8018081877FFC 231 | :100E6000808378941DD0F8941882F801808188607E 232 | :100E70008083F882FF91EF91DF91CF91BF91AF9185 233 | :100E80009F918F917F916F915F914F913F912F91A2 234 | :100E90001F910F91FF900F900FBE0F901F9018950C 235 | :100EA0001F93CF93DF9300D0CDB7DEB7EAEAF2E02D 236 | :100EB00088E08E0F9091F10091938E13FBCF80917B 237 | :100EC000AA029091AB02492F50E04A30510508F038 238 | :100ED000DFC0FA01E65CFF4FE1C2803881F0823862 239 | :100EE00009F0D6C08091AE0287708093E9008091AE 240 | :100EF000EB0085FB882780F91092E90006C08091FD 241 | :100F0000A6029091A702911182609091E800977FCC 242 | :100F10009093E8008093F1001092F1008CC0282F8C 243 | :100F20002D7F09F0B5C0882319F0823061F0A1C08F 244 | :100F30008091AC02813009F09CC0933009F080E0D0 245 | :100F40008093A7022BC08091AC02811127C08091B1 246 | :100F5000AE02877009F48DC08093E9002091EB0008 247 | :100F600020FF87C0933021F48091EB00806214C091 248 | :100F70009091EB0090619093EB0021E030E0A901AB 249 | :100F800002C0440F551F8A95E2F74093EA00109281 250 | :100F9000EA008091EB0088608093EB001092E900FA 251 | :100FA0008091E800877F4AC0811172C01091AC0225 252 | :100FB0008091E800877F8093E800B1DC8091E800B1 253 | :100FC00080FD04C08EB38111F9CF53C0812F8F777C 254 | :100FD00011F492E001C093E09EBB80688093E3002F 255 | :100FE00048C08058823008F053C0AE014F5F5F4F59 256 | :100FF0006091AE028091AC029091AD02EFDBBC013A 257 | :10100000892BB9F19091E800977F9093E80089814E 258 | :101010009A8185DD8091E8008B778093E80029C074 259 | :101020008038B1F58091E800877F8093E800809157 260 | :10103000A8028093F1008091E8008E778093E80009 261 | :101040006EDC17C0811124C09091AC02923088F4FC 262 | :101050008091E800877F8093E8009093A8025FDC8E 263 | :101060008091A802811102C083E001C084E08EBBA0 264 | :101070000DDB8091E80083FF0DC08091EB00806262 265 | :101080008093EB008091E800877F8093E80002C0A6 266 | :1010900007DBEFCF0F900F90DF91CF911F91089555 267 | :1010A0000895CF938EB3882359F0C091E900C7709B 268 | :1010B0001092E9008091E80083FDF2DEC093E90020 269 | :1010C000CF9108950895CF93DF932091E80023FFF7 270 | :1010D00061C0FC01208130E04091AE025091AF022E 271 | :1010E0004217530709F056C0EC018091AB028132E0 272 | :1010F00049F018F48032C9F04DC0823261F1833278 273 | :10110000C9F148C08091AA02813A09F043C0809198 274 | :10111000E800877F8093E80067E070E0CF010F96DA 275 | :10112000A8DC8091E8008B7713C08091AA028132FD 276 | :1011300089F58091E800877F8093E80067E070E0A0 277 | :10114000CF010F9643DDCE01B3DA8091E8008E77B0 278 | :101150008093E8001FC08091AA028132D9F4809167 279 | :10116000E800877F8093E8008091AC028587CF01FB 280 | :101170002DDB0DC08091AA02813261F48091E800DC 281 | :10118000877F8093E8006091AC02CF019BDFDF9105 282 | :10119000CF91C5CBDF91CF9108950F931F93CF933C 283 | :1011A000DF93EC01FC013D9689E0DF011D928A95F9 284 | :1011B000E9F78A819B812C81211102C010E001C0D6 285 | :1011C00014E0098177DB812B482F426061E8802F92 286 | :1011D0007FDB882331F18E819F812885211102C018 287 | :1011E00010E001C014E00D8165DB812B482F4260C7 288 | :1011F00060E8802F6DDB8823A1F08A859B852C8594 289 | :10120000211102C010E001C014E0C98553DB812B1D 290 | :10121000482F426061EC8C2FDF91CF911F910F918D 291 | :1012200057CB80E0DF91CF911F910F9108950F93DD 292 | :101230001F93CF932EB32430F1F4FC01078510895E 293 | :1012400021893289012B022B032BA9F0C62F818122 294 | :101250008093E9008091E80085FF04C0C093F1000D 295 | :1012600080E00AC08091E8008E778093E80074DB0C 296 | :101270008823A1F301C082E0CF911F910F910895BF 297 | :101280002EB3243019F5FC01478550896189728994 298 | :10129000452B462B472BD1F081818093E90080912B 299 | :1012A000F200882389F09091E8008091E8008E7721 300 | :1012B0008093E80095FD08C04FDB811108C0809144 301 | :1012C000E8008E778093E80080E0089582E008953A 302 | :1012D0002EB3243051F4FC0147855089618972890D 303 | :1012E000452B462B472B09F0CBCF08952EB3243046 304 | :1012F00019F08FEF9FEF0895FC01478550896189B0 305 | :101300007289452B462B472BA1F385818093E900F9 306 | :101310008091E80082FFEDCF8091F200882321F0D8 307 | :101320002091F10030E002C02FEF3FEF8091F200FA 308 | :10133000811105C08091E8008B778093E800C90196 309 | :1013400008950F931F93CF93DF93EC01098101114F 310 | :1013500005C01D81111114C081E025C08A819B81C7 311 | :101360002C81211102C010E001C014E0A3DA812B0E 312 | :10137000482F426061E8802FABDA8111EACF13C0B9 313 | :101380008E819F812885211102C0C0E001C0C4E088 314 | :1013900091DA8C2B482F426060E8812FDF91CF914A 315 | :1013A0001F910F9195CADF91CF911F910F910895D1 316 | :1013B0002EB32430F1F4FC0181818093E900809107 317 | :1013C000E80085FD02C080E00895CB0140E050E0D8 318 | :1013D00064E070E0EEDA81110DC09091E800892F91 319 | :1013E000807295FDF0CF9091E8009E779093E80091 320 | :1013F000089582E008952EB3243071F4FC018181B8 321 | :101400008093E9008091F200882339F08091E80010 322 | :101410008E778093E800A0CA82E008952EB324302E 323 | :1014200011F080E00895FC0185818093E9008091AE 324 | :10143000E80085FFF6CFCB0140E050E064E070E0CB 325 | :10144000E8DA8091E80085FD05C08091E8008B779F 326 | :101450008093E80081E00895A1E21A2EAA1BBB1B2D 327 | :10146000FD010DC0AA1FBB1FEE1FFF1FA217B30770 328 | :10147000E407F50720F0A21BB30BE40BF50B661F86 329 | :10148000771F881F991F1A9469F76095709580954A 330 | :1014900090959B01AC01BD01CF010895EE0FFF1F98 331 | :0C14A0000590F491E02D0994F894FFCF22 332 | :1014AC00280102400000014000000003400000043D 333 | :1014BC0040000002080000000000000000000000D6 334 | :1014CC0001000003820584078609888A008C000FBE 335 | :0214DC008E0080 336 | :00000001FF 337 | -------------------------------------------------------------------------------- /MIDI Files/ASGORE Stepper.mid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/MIDI Files/ASGORE Stepper.mid -------------------------------------------------------------------------------- /MIDI Files/Axel_F2.mid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/MIDI Files/Axel_F2.mid -------------------------------------------------------------------------------- /MIDI Files/Chrono_Trigger_Battle_Stepper.mid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/MIDI Files/Chrono_Trigger_Battle_Stepper.mid -------------------------------------------------------------------------------- /MIDI Files/Corridors_of_Time_Stepper.mid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/MIDI Files/Corridors_of_Time_Stepper.mid -------------------------------------------------------------------------------- /MIDI Files/FF7_Clouds_Theme_Stepper.mid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/MIDI Files/FF7_Clouds_Theme_Stepper.mid -------------------------------------------------------------------------------- /MIDI Files/Final_Fantasy_VII_Intro_-_Stepper.mid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/MIDI Files/Final_Fantasy_VII_Intro_-_Stepper.mid -------------------------------------------------------------------------------- /MIDI Files/FoolingYourselfStepper.mid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/MIDI Files/FoolingYourselfStepper.mid -------------------------------------------------------------------------------- /MIDI Files/Man with a Machine Gun FF8 Stepper.mid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/MIDI Files/Man with a Machine Gun FF8 Stepper.mid -------------------------------------------------------------------------------- /MIDI Files/One Piece Stepper.mid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/MIDI Files/One Piece Stepper.mid -------------------------------------------------------------------------------- /MIDI Files/Star_Wars_Main_Theme Stepper.mid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/MIDI Files/Star_Wars_Main_Theme Stepper.mid -------------------------------------------------------------------------------- /MIDI Files/Toto_-_Africa_Stepper.mid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/MIDI Files/Toto_-_Africa_Stepper.mid -------------------------------------------------------------------------------- /MIDI Files/UnderTale_Hopes_and_Dreams Stepper.mid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/MIDI Files/UnderTale_Hopes_and_Dreams Stepper.mid -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Arduino-MIDI-Stepper-Motor-Instrument 2 | This is an Arduino Project that uses A4988 stepper drivers with bipolar stepper motors along with the MIDI library to create sound. 3 | 4 | Link to my Project on the Arduino Website [HERE](https://create.arduino.cc/projecthub/JonJonKayne/arduino-midi-stepper-synth-d291ae) 5 | 6 | **UPDATE:** I am working on a new version of the MIDI Stepper Synth that uses an FPGA, Custom PCBs and 32 Stepper Motors. Link [HERE](https://github.com/jzkmath/MIDI-Stepper-Synth-V2) 7 | 8 | 9 | # Hardware: 10 | - Any Arduino board (Uno, Mega, Micro, Mini, etc) 11 | - NEMA 17 Stepper Motor or similar 12 | - A4988 Stepper Driver 13 | 14 | I used an Arduino CNC Shield to control the stepper motors, so the code is preset for that pinout. 15 | 16 | # How to use: 17 | Make sure you have the [MIDI Arduino library](https://github.com/FortySevenEffects/arduino_midi_library) installed in your IDE. 18 | 19 | The Arduino code is designed so that it can expand to handle as many stepper motors as you need. 20 | I have put instructions on how to configure the code in the ino file. 21 | 22 | You might want to use the TuneStepper code to check for your motor's resonant frequency (which will sound bad). For me, the notes that were around the resonant frequency were E3, F3, and F#3. 23 | 24 | I have also put plenty of comments in the source code so that you can easily understand 25 | the code and what it does. 26 | 27 | # MIDI Communication 28 | There are a few ways to communicate with the Arduino to send MIDI Data. You can: 29 | - Use a DIN socket along with an optoisolator connected to the RX pin. [See this Tutorial by Notes and Volts](http://www.notesandvolts.com/2015/02/midi-and-arduino-build-midi-input.html) 30 | - Use [loopMIDI](https://www.tobias-erichsen.de/software/loopmidi.html) and [hairlessMIDI](http://projectgus.github.io/hairless-midiserial/) to make a Serial to MIDI communication. 31 | - Flash [HIDUINO](https://github.com/ddiakopoulos/hiduino) or [mocuLUFA](https://github.com/kuwatay/mocolufa) onto the 8U2/16U2 chip to make the Arduino an HID. I will describe how to do that below. 32 | 33 | # USB MIDI Setup 34 | If you want to configure your Arduino to be a USB MIDI Device, we need to change the firmware on the AVR chip. This chip's job is to convert the USB communication to serial data that the processor (the ATMEGA328 chip on an UNO). To make the computer see it as a MIDI device, we simply put a different firmware on the chip. 35 | I am using a custom compiled firmware called [mocuLUFA](https://github.com/kuwatay/mocolufa) that allows a dual boot option depending on the presense of a jumper on the ISCP header. One of the drawbacks of changing a firmware on the AVR chip is that you loose the ability to reprogram the 328 chip through the Arduino IDE. This method fixes that problem. 36 | So how do we do it? 37 | 1. You will need to install the [Atmel FLIP software](http://www.microchip.com/developmenttools/productdetails.aspx?partno=flip) 38 | 39 | 2. Get the "midi_stepper.hex" file from the LUFA directory above. (or make your own custom hex file [HERE](https://moco-lufa-web-client.herokuapp.com/#/)) 40 | 41 | 3. Open up both Atmel FLIP and the Device Manager 42 | 43 | 4. Plug in the Arduino. It should appear on a COM port. 44 | 45 | 5. Check your Arduino to see if you have an 8U2 or 16U2 chip. It is located here: 46 | 47 | ![ad_layout](https://user-images.githubusercontent.com/12432422/39097865-181be1a8-4630-11e8-8bd7-17683d0a8810.png) 48 | 6. Put your Arduino in DFU Mode by briefly shorting the reset and ground pins, as shown in the picture: 49 | 50 | ![ad_dfu](https://user-images.githubusercontent.com/12432422/39097868-1e247a38-4630-11e8-92e9-b25b8c000adb.png) 51 | The Arduino should then disappear from the device manager and appear as an unknown device. 52 | 53 | 7. Right click on the unknown device in the device manager and choose "update driver". Specify the path to the driver, which is by default "C:/Program Files (x86)/Atmel/Flip x.x.x/usb" and be sure that "include subdirectory" is checked. After doing so, the device should rename to 8U2 or 16U2 in the device manager. 54 | 55 | 8. in Atmel FLIP, go to "Device > Select" and choose the matching chip ("Atmega16U2" or "Atmega8U2") 56 | 57 | 9. Go to "Settings > Communication > USB" then click "Open" 58 | 59 | 10. Go to "File > Load HEX File" and choose the correct Hex file. 60 | 61 | 11. Click "Run" and it should load the new code. 62 | 63 | 12. Unplug and re plug in the Arduino and it should appear as "Midi Stepper" in the device manager. 64 | 65 | If you want to enter USB Serial Mode, connect a jumper (while off) to the Arduino as follows: 66 | 67 | ![ad_usbser](https://user-images.githubusercontent.com/12432422/39097873-25426a6e-4630-11e8-8223-26e84260245f.png) 68 | And now it will act like an ordinary Arduino. 69 | -------------------------------------------------------------------------------- /Schematics/MIDI Stepper V1.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/Schematics/MIDI Stepper V1.fzz -------------------------------------------------------------------------------- /Schematics/MIDI Stepper V1_bb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/Schematics/MIDI Stepper V1_bb.png -------------------------------------------------------------------------------- /Schematics/MIDI Stepper V1_schem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jzkmath/Arduino-MIDI-Stepper-Motor-Instrument/51e728fb11d964f9eaea3f7e8d8ada834620a2a5/Schematics/MIDI Stepper V1_schem.png --------------------------------------------------------------------------------