mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-23 12:44:04 +09:00
taut: shift octave/note key swap
This commit is contained in:
@@ -2697,12 +2697,12 @@ function editPatternCell(ptnDat, row, col, ev, popupPos) {
|
|||||||
const raw = openInlineHexEdit(popupPos.y, popupPos.x, 4, cellNote(ptnDat, row))
|
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 }
|
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+])
|
// [ / ] octave nudge; { / } unit nudge (Shift+[ / Shift+])
|
||||||
else if (!shiftDown && (sc === keys.LEFT_BRACKET || sc === keys.RIGHT_BRACKET)) {
|
else if (shiftDown && (sc === keys.LEFT_BRACKET || sc === keys.RIGHT_BRACKET)) {
|
||||||
const cur = cellNote(ptnDat, row)
|
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 }
|
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 dir = (sc === keys.LEFT_BRACKET) ? -1 : 1
|
||||||
const cur = cellNote(ptnDat, row)
|
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 }
|
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 }
|
||||||
|
|||||||
@@ -111,8 +111,8 @@ Timeline has two distinct modes: view and edit mode. Two modes are toggled using
|
|||||||
<b> EDIT MODE</b>
|
<b> EDIT MODE</b>
|
||||||
<b>\u00B7${'\u00B8'.repeat(9)}\u00B9</b>
|
<b>\u00B7${'\u00B8'.repeat(9)}\u00B9</b>
|
||||||
&bul;Note jamming : <O>(note column) inserts the note</O>
|
&bul;Note jamming : <O>(note column) inserts the note</O>
|
||||||
&bul;<b>{</b>&mdot;<b>}</b> : <O>(note column) lowers/raises a note by one octave (or period)</O>
|
&bul;<b>[</b>&mdot;<b>]</b> : <O>(note column) lowers/raises a note by one octave (or period)</O>
|
||||||
&bul;<b>[</b>&mdot;<b>]</b> : <O>(note column) lowers/raises a note by one unit</O>
|
&bul;<b>{</b>&mdot;<b>}</b> : <O>(note column) lowers/raises a note by one unit</O>
|
||||||
&bul;<b>z</b> : <O>(note column) inserts a key-off &keyoffsym;</O>
|
&bul;<b>z</b> : <O>(note column) inserts a key-off &keyoffsym;</O>
|
||||||
&bul;<b>x</b> : <O>(note column) inserts a note-cut ¬ecutsym;</O>
|
&bul;<b>x</b> : <O>(note column) inserts a note-cut ¬ecutsym;</O>
|
||||||
&bul;<b>c</b> : <O>(note column) inserts a note fade ¬efadesym;</O>
|
&bul;<b>c</b> : <O>(note column) inserts a note fade ¬efadesym;</O>
|
||||||
|
|||||||
Reference in New Issue
Block a user