diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-01-20 00:06:52 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-01-20 00:06:52 -0500 |
commit | eb61700912f1713ba27d34c23d7f07be66ee6513 (patch) | |
tree | 7781c85a3e67a3af34a31a09d6736f07b6a492fe /quantum/keymap_midi.c | |
parent | 6e3c36360ed291b9ca2bd014571236308a933d0c (diff) | |
download | firmware-eb61700912f1713ba27d34c23d7f07be66ee6513.tar.gz firmware-eb61700912f1713ba27d34c23d7f07be66ee6513.tar.bz2 firmware-eb61700912f1713ba27d34c23d7f07be66ee6513.zip |
better integrations
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 3a1408e22..e37ea3103 100644 --- a/quantum/keymap_midi.c +++ b/quantum/keymap_midi.c @@ -100,10 +100,10 @@ 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); - play_note(((double)261.626)*pow(2.0, 0.0)*pow(2.0,(starting_note + SCALE[record->event.key.col + offset])/12.0+(MATRIX_ROWS - record->event.key.row)), 0xF); + 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); - stop_note(((double)261.626)*pow(2.0, 0.0)*pow(2.0,(starting_note + SCALE[record->event.key.col + offset])/12.0+(MATRIX_ROWS - record->event.key.row))); + 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 |