diff options
Diffstat (limited to 'keyboard/planck/keymap_midi.c')
| -rw-r--r-- | keyboard/planck/keymap_midi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/keyboard/planck/keymap_midi.c b/keyboard/planck/keymap_midi.c index a8913dc1d..ddd8a4b68 100644 --- a/keyboard/planck/keymap_midi.c +++ b/keyboard/planck/keymap_midi.c | |||
| @@ -50,7 +50,9 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
| 50 | 50 | ||
| 51 | if (record->event.pressed) { | 51 | if (record->event.pressed) { |
| 52 | midi_send_noteon(&midi_device, record->event.key.row, starting_note + SCALE[record->event.key.col], 127); | 52 | midi_send_noteon(&midi_device, record->event.key.row, starting_note + SCALE[record->event.key.col], 127); |
| 53 | play_note(((double)261.6)*pow(2.0, 2.0)*pow(2.0,SCALE[record->event.key.col]/12.0+(record->event.key.row)), 0xF); | ||
| 53 | } else { | 54 | } else { |
| 54 | midi_send_noteoff(&midi_device, record->event.key.row, starting_note + SCALE[record->event.key.col], 127); | 55 | midi_send_noteoff(&midi_device, record->event.key.row, starting_note + SCALE[record->event.key.col], 127); |
| 56 | stop_note(((double)261.6)*pow(2.0, 2.0)*pow(2.0,SCALE[record->event.key.col]/12.0+(record->event.key.row))); | ||
| 55 | } | 57 | } |
| 56 | } \ No newline at end of file | 58 | } \ No newline at end of file |
