mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-20 04:05:10 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
6328c25573
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ bool process_music(uint16_t keycode, keyrecord_t *record) {
|
||||||
note = music_starting_note + music_offset + 36 + music_map[record->event.key.row][record->event.key.col];
|
note = music_starting_note + music_offset + 36 + music_map[record->event.key.row][record->event.key.col];
|
||||||
} else {
|
} else {
|
||||||
uint8_t position = music_map[record->event.key.row][record->event.key.col];
|
uint8_t position = music_map[record->event.key.row][record->event.key.col];
|
||||||
note = music_starting_note + music_offset + 36 + SCALE[position % 12] + (position / 12) * 12;
|
note = music_starting_note + music_offset + 36 + SCALE[position % 7] + (position / 7) * 12;
|
||||||
}
|
}
|
||||||
# else
|
# else
|
||||||
if (music_mode == MUSIC_MODE_CHROMATIC)
|
if (music_mode == MUSIC_MODE_CHROMATIC)
|
||||||
|
|
Loading…
Reference in a new issue