Skip to content

Commit 460142f

Browse files
committed
Update TestPotmeter.ino
Correct midi max velocity value
1 parent 4859882 commit 460142f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/TestPotmeter/TestPotmeter.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ void loop() {
3131
}
3232

3333
void OnPotmeterValueChanged(int analog, int value) {
34-
//map ADC 0-1024 value to 0-100
35-
int velocity = map(value, 0, 1024, 0, 100);
34+
//map ADC 0-1024 value to 0-127
35+
int velocity = map(value, 0, 1024, 0, 127);
3636

3737
if (analog == A0) {
3838
//channel, note, velocity

0 commit comments

Comments
 (0)