taut: shift octave/note key swap

This commit is contained in:
minjaesong
2026-06-22 21:46:03 +09:00
parent f55cbc348e
commit aec1a4db85
2 changed files with 5 additions and 5 deletions

View File

@@ -2697,12 +2697,12 @@ function editPatternCell(ptnDat, row, col, ev, popupPos) {
const raw = openInlineHexEdit(popupPos.y, popupPos.x, 4, cellNote(ptnDat, row))
if (raw !== null) { const w = raw & 0xFFFF; writeNote(ptnDat, row, w); changed = true; advance = true; if (noteIsPitched(w)) audition = w }
}
// [ / ] unit nudge (no shift); { / } octave nudge (Shift+[ / Shift+])
else if (!shiftDown && (sc === keys.LEFT_BRACKET || sc === keys.RIGHT_BRACKET)) {
// [ / ] octave nudge; { / } unit nudge (Shift+[ / Shift+])
else if (shiftDown && (sc === keys.LEFT_BRACKET || sc === keys.RIGHT_BRACKET)) {
const cur = cellNote(ptnDat, row)
if (noteIsPitched(cur)) { const n = nudgeNoteUnit(cur, sc === keys.LEFT_BRACKET ? -1 : 1); writeNote(ptnDat, row, n); changed = true; audition = n }
}
else if (shiftDown && (sc === keys.LEFT_BRACKET || sc === keys.RIGHT_BRACKET)) {
else if (!shiftDown && (sc === keys.LEFT_BRACKET || sc === keys.RIGHT_BRACKET)) {
const dir = (sc === keys.LEFT_BRACKET) ? -1 : 1
const cur = cellNote(ptnDat, row)
if (noteIsPitched(cur)) { const n = nudgeNoteOctave(cur, dir); writeNote(ptnDat, row, n); editOctave = decomposeNote(n, pitchTablePresets[PITCH_PRESET_IDX].interval)[0]; changed = true; audition = n }