1
0
Fork 0

midi on planck

This commit is contained in:
Jack Humbert 2015-08-25 17:06:38 -04:00
parent e6dd47db45
commit 9b46f4021e
6 changed files with 47 additions and 13 deletions

View file

@ -31,7 +31,7 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
}
}
if (record->event.key.col == 11 && record->event.key.row == 4) {
if (record->event.key.col == 11 && record->event.key.row == 4 && record->event.pressed) {
starting_note++;
midi_send_cc(&midi_device, 0, 0x7B, 0);
midi_send_cc(&midi_device, 1, 0x7B, 0);
@ -39,7 +39,7 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
midi_send_cc(&midi_device, 3, 0x7B, 0);
midi_send_cc(&midi_device, 4, 0x7B, 0);
}
if (record->event.key.col == 8 && record->event.key.row == 4) {
if (record->event.key.col == 8 && record->event.key.row == 4 && record->event.pressed) {
starting_note--;
midi_send_cc(&midi_device, 0, 0x7B, 0);
midi_send_cc(&midi_device, 1, 0x7B, 0);