diff options
author | Stephan Bösebeck <stephan.boesebeck@holidayinsider.com> | 2016-04-02 15:15:21 +0200 |
---|---|---|
committer | Stephan Bösebeck <stephan.boesebeck@holidayinsider.com> | 2016-04-02 15:15:21 +0200 |
commit | f0424a0c0fa4153234ad6979929e5a2426c86f21 (patch) | |
tree | 53deb01f09e9feb9a2fa11259c75411adceb2f3c /quantum/keymap_midi.c | |
parent | 71cdfe11682cf63c262380747d8a1b3d48a6bad0 (diff) | |
parent | aee8715815544b076c123d4ed55c76e23a7e54d0 (diff) |
Merge branch 'master' of https://github.com/sboesebeck/qmk_firmware
Diffstat (limited to 'quantum/keymap_midi.c')
-rw-r--r-- | quantum/keymap_midi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/keymap_midi.c b/quantum/keymap_midi.c index e37ea31039..ac45d25892 100644 --- a/quantum/keymap_midi.c +++ b/quantum/keymap_midi.c @@ -99,11 +99,11 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) if (record->event.pressed) { // midi_send_noteon(&midi_device, record->event.key.row, starting_note + SCALE[record->event.key.col], 127); - midi_send_noteon(&midi_device, 0, (starting_note + SCALE[record->event.key.col + offset])+12*(MATRIX_ROWS - record->event.key.row), 127); + // midi_send_noteon(&midi_device, 0, (starting_note + SCALE[record->event.key.col + offset])+12*(MATRIX_ROWS - record->event.key.row), 127); play_note(((double)261.626)*pow(2.0, -1.0)*pow(2.0,(starting_note + SCALE[record->event.key.col + offset])/12.0+(MATRIX_ROWS - record->event.key.row)), 0xF); } else { // midi_send_noteoff(&midi_device, record->event.key.row, starting_note + SCALE[record->event.key.col], 127); - midi_send_noteoff(&midi_device, 0, (starting_note + SCALE[record->event.key.col + offset])+12*(MATRIX_ROWS - record->event.key.row), 127); + // midi_send_noteoff(&midi_device, 0, (starting_note + SCALE[record->event.key.col + offset])+12*(MATRIX_ROWS - record->event.key.row), 127); stop_note(((double)261.626)*pow(2.0, -1.0)*pow(2.0,(starting_note + SCALE[record->event.key.col + offset])/12.0+(MATRIX_ROWS - record->event.key.row))); } }
\ No newline at end of file |