Skip to content

Commit d306858

Browse files
committed
README and song position pointer message update
1 parent 960079d commit d306858

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
This sketch implements a [MIDI beat clock](https://en.wikipedia.org/wiki/MIDI_beat_clock) driver which can be controlled by tapping a button or pedal (such as a digital keyboard sustain pedal) connected to the Arduino. Holding the button/pedal down for 1 second stops the beat messages until a new tempo is tapped in.
44

5-
The default pin setting I used for building a compact unit out of an Arduino Nano is as follows:
5+
The default pinout I used for building a compact unit out of an [Arduino Nano](http://www.pighixxx.com/test/wp-content/uploads/2014/11/nano.png) is as follows:
66

77
* External power supply (5-20V) to pins `VIN` and `GND`
88
* Button or pedal to pins `GND` and `14` aka `A0` (used in `INPUT_PULLUP` mode)
9-
* MIDI DIN connector pin 2 to Arduino `GND`
9+
* [MIDI DIN connector](https://en.wikipedia.org/wiki/MIDI#Connectors) pin 2 to Arduino `GND`
1010
* MIDI DIN connector pin 4 to Arduino pin `5V` *through a 220 Ohm resistor*
1111
* MIDI DIN connector pin 5 to Arduino pin `10` *through a 220 Ohm resistor*
12-
* Status LED to Arduino pin `6` (through a suitable resistor)
12+
* Status LED to Arduino pin `6` (through a suitable resistor) and `GND`
13+
14+
Since the MIDI messages are not sent via the hardware serial interface, it is also possible to run the Arduino off USB power and use the normal Serial monitor for debugging.
1315

1416
<img src="https://raw.githubusercontent.com/kevinstadler/arduino-tap-midi-clock/master/arduino-tap-midi-clock.jpg" alt="Arduino Tap Midi Clock hardware" title="Arduino Tap Midi Clock hardware" align="center" width="100%" />
1517

miditap.ino

+2-6
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,8 @@ void setClockPulse() {
112112
clockPulseActive = true;
113113
Timer1.attachInterrupt(sendClockPulse, clockPeriod);
114114
// syncing the onset of the arpeggiator with the actual time of the tap (rather
115-
// than just the tempo of the tapping) would be nice, but a midi start alone
116-
// sadly doesn't do the trick
117-
// TODO: try out the Song Position Pointer message to reset arpeggiator:
118-
//Midi.write(0xF2);
119-
//Midi.write(0x00);
120-
//Midi.write(0x00);
115+
// than just the *tempo* of the tapping) would be nice, but neither a MIDI start
116+
// nor a Song Position Pointer message appear to reset the arpeggiator on my Korg
121117
}
122118
}
123119

0 commit comments

Comments
 (0)