diff --git a/assets/disk0/tvdos/bin/taut.js b/assets/disk0/tvdos/bin/taut.js index 7201dc0..619fa73 100644 --- a/assets/disk0/tvdos/bin/taut.js +++ b/assets/disk0/tvdos/bin/taut.js @@ -192,8 +192,8 @@ const panEffSym = [sym.panset, sym.panle, sym.panri, sym.panfinele, sym.panfiner const colNote = 254 const colInst = 114 const colVol = 155 -const colPan = 221 -const colEffOp = 213 +const colPan = 219 +const colEffOp = 220 const colEffArg = 231 const colBackPtn = 255 @@ -803,6 +803,24 @@ function resetAudioDevice() { audio.stop(PLAYHEAD) } +function redrawFull() { + con.clear() + drawStatusBar() + drawControlHint() + redrawPanel() + con.move(1, 1) +} + +function redrawPanel() { + switch (currentPanel) { + case VIEW_TIMELINE: + drawPatternView() + drawVoiceHeaders() + drawSeparators(separatorStyle) + drawVoiceDetail() + } +} + ///////////////////////////////////////////////////////////////////////////////////////////////////////////// // PLAYBACK STATE ///////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -876,7 +894,7 @@ function updatePlayback() { if (playbackMode === PLAYMODE_CUE && nowCue !== playStartCue) { stopPlayback() - drawAll() + redrawPanel() return } if (playbackMode === PLAYMODE_ROW && (nowRow !== playStartRow || nowCue !== playStartCue)) { @@ -896,7 +914,7 @@ function updatePlayback() { cueIdx = nowCue cursorRow = nowRow clampCursor() - drawAll() + redrawPanel() } else { const oldCursor = cursorRow const oldScroll = scrollRow @@ -979,7 +997,7 @@ while (!exitFlag) { } if (playbackMode !== PLAYMODE_NONE) { - if (keyJustHit && shiftDown && event.includes(keys.Y) || keysym === " ") { stopPlayback(); drawAll() } + if (keyJustHit && shiftDown && event.includes(keys.Y) || keysym === " ") { stopPlayback(); redrawPanel() } else if (keysym === "" || keysym === "") { const oldVoiceOff = voiceOff cursorVox += (keysym === "") ? -moveDelta : moveDelta @@ -999,8 +1017,8 @@ while (!exitFlag) { return } - if (keyJustHit && shiftDown && event.includes(keys.Y)) { startPlaySong(); drawAll(); return } - if (keyJustHit && shiftDown && event.includes(keys.U)) { startPlayCue(); drawAll(); return } + if (keyJustHit && shiftDown && event.includes(keys.Y)) { startPlaySong(); redrawPanel(); return } + if (keyJustHit && shiftDown && event.includes(keys.U)) { startPlayCue(); redrawPanel(); return } if ( shiftDown && event.includes(keys.I)) { startPlayRow(); drawPatternRowAt(cursorRow - scrollRow); return } // allow multiple plays by holding the keys down if (keyJustHit && shiftDown && event.includes(keys.O) || keysym === " ") { stopPlayback(); return } @@ -1081,6 +1099,7 @@ while (!exitFlag) { } audio.stop(PLAYHEAD) +resetAudioDevice() sys.free(SCRATCH_PTR) con.clear() con.move(1, 1) diff --git a/assets/disk0/tvdos/bin/tautfont.kra b/assets/disk0/tvdos/bin/tautfont.kra index 3336916..aabcde9 100644 --- a/assets/disk0/tvdos/bin/tautfont.kra +++ b/assets/disk0/tvdos/bin/tautfont.kra @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a856f6db73214d8cd42a4d23b395ee65237ca840a180f713d90be4c0bf427d24 -size 89835 +oid sha256:88baad47973d3b8c9c34d2eef15dfafdad9116b9146ad428ced18116a62ec74b +size 89870