From e6d46aaefb8ed3ebedcae1ef5b49bdebabea8f00 Mon Sep 17 00:00:00 2001 From: Tom Peak Walcher Date: Sat, 14 Nov 2026 09:07:39 +0100 Subject: [PATCH] Skiff Editor: the Sequencer as a piano roll, the drum lanes, a velocity lane under them The Sequencer tab draws the selected track's steps as a piano roll (a note as long as the steps after it hold it, TIE or its tie) or as the DRUM lanes: click to draw, drag to move or (its right edge) to size, right-click or double-click deletes, the arrows move and transpose, Ctrl+Z undoes; on the lanes a drag paints and right-click accents. Under them a controller lane drawn with the mouse: VELOCITY, CHANCE, NUDGE, RATCHET. The ruler's end drags the pattern's LENGTH; the picked step's knobs (velocity, chance, nudge), ratchet, condition, accent, slide, flam beside. A velocity set takes the step's ACCENT off (an accent plays at 127). Each edit writes only the steps it changes with STEP_SET, so patterns, projects and backups stay as they were. The text table stays, folded, as the step list. Co-Authored-By: Claude Opus 5.5 (1M context) --- web/editor.html | 687 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 643 insertions(+), 44 deletions(-) diff --git a/web/editor.html b/web/editor.html index 8c4f643..a04ccfd 100644 --- a/web/editor.html +++ b/web/editor.html @@ -186,18 +186,6 @@ .seg button[aria-pressed="true"], button.tog[aria-pressed="true"] { background: var(--fg); color: var(--bg); } .panel { margin: 12px 0; } .hint { margin: 16px 0; color: var(--dim); } - /* sequencer: a step grid over the selected track (16 per row, 8 on a phone) */ - .grid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 2px; margin: 6px 0 12px; } - @media (max-width: 600px) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } } - .grid button { background: var(--bg); color: var(--fg); border: 1px solid var(--line); padding: 2px; min-width: 0; height: 52px; - display: flex; flex-direction: column; justify-content: flex-start; gap: 1px; text-align: left; overflow: hidden; font-size: 10px; line-height: 1.15; } - .grid button .n { color: var(--dim); } - .grid button .x { overflow: hidden; overflow-wrap: anywhere; flex: 1; } - .grid button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); } - .grid button.on .n { color: inherit; opacity: .6; } - .grid button.acc .x { font-weight: 700; } - .grid button.tie { border-style: dashed; border-color: var(--fg); } - .grid button.beat { border-left-color: var(--fg); } #steps tr.hl td { outline: 1px solid var(--fg); } /* mixer: a channel strip per track (six; Skiff phase 6) as on the device's MIXER page */ .mixer { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 900px; margin: 6px 0; } @@ -252,7 +240,6 @@ .strip .num { font: 700 26px "Barlow Condensed", sans-serif; background: none; } .strip .num[aria-pressed="true"] { background: var(--s); color: var(--on-trk); } /* (selected: as the track bar's) */ .strip input[type=range] { accent-color: var(--s); } - .grid button.on { background: var(--trk); border-color: var(--trk); color: var(--on-trk); } .lists tbody th { font: 700 15px "Barlow Condensed", sans-serif; } .lists button, .pool button { background: var(--raise); border-color: var(--raise); border-radius: 3px; } .lists button.empty, .pool button.empty { background: var(--tile); border-color: var(--tile); } @@ -273,6 +260,86 @@ image-rendering: pixelated; border-radius: 6px; cursor: zoom-in; } #scr-wrap:fullscreen { background: black; } #scr-wrap:fullscreen #scr-screen { width: min(100vw, 100vh); border-radius: 0; cursor: zoom-out; } + /* ((Skiff 2.2) the sequencer as a DAW's: a piano roll (or the drum lanes) over the steps, a controller lane under it + (velocity, chance, nudge, ratchet) drawn with the mouse, the picked step's knobs beside; the table stays below) */ + .sqtool { margin: 4px 0 6px; } + .sqtool label { display: inline-flex; gap: 6px; align-items: center; } + .sqtool input[type=range] { width: 90px; } + .sq { background: var(--tile); border-radius: 6px; overflow: hidden; user-select: none; -webkit-user-select: none; } + .sq-main { position: relative; overflow: auto; height: 360px; outline: none; overscroll-behavior: contain; } + .sq-main.drum { height: auto; max-height: none; } + .sq-inner { position: relative; } + .sq-ruler { position: sticky; top: 0; z-index: 4; height: 22px; background: var(--raise); border-bottom: 1px solid var(--line); } + .sq-ruler .corner { position: sticky; left: 0; z-index: 2; width: var(--kw); height: 22px; background: var(--raise); + border-right: 1px solid var(--line); box-sizing: border-box; font: 500 12px "Barlow Condensed", sans-serif; color: var(--dim); + display: flex; align-items: center; justify-content: center; } + .sq-ruler .br { position: absolute; top: 0; height: 22px; margin: 0; padding-left: 4px; border-left: 1px solid var(--line); + font: 700 13px "Barlow Condensed", sans-serif; color: var(--fg); display: block; line-height: 22px; pointer-events: none; } + .sq-ruler .beat { position: absolute; bottom: 0; height: 6px; border-left: 1px solid var(--line); pointer-events: none; } + .sq-ruler .end { position: absolute; top: 0; width: 14px; height: 22px; margin-left: -7px; cursor: ew-resize; z-index: 1; + background: var(--trk); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); } + .sq-ruler .loop { position: absolute; top: 18px; height: 4px; background: color-mix(in srgb, var(--trk) 55%, transparent); pointer-events: none; } + .sq-body { display: flex; } + .sq-keys { position: sticky; left: 0; z-index: 3; flex: none; width: var(--kw); background: var(--raise); border-right: 1px solid var(--line); } + .sq-keys div { box-sizing: border-box; height: var(--rh); font: 500 10px/1 "Barlow Condensed", sans-serif; display: flex; + align-items: center; justify-content: flex-end; padding-right: 4px; color: var(--dim); border-bottom: 1px solid var(--tile); } + .sq-keys div.w { background: color-mix(in srgb, var(--fg) 82%, var(--bg)); color: var(--bg); } + .sq-keys div.k { background: var(--bg); color: var(--dim); width: 64%; } + .sq-keys div.c { color: var(--bg); font-weight: 700; } + .sq-keys div.lane { width: auto; background: none; color: var(--fg); font: 700 13px/1 "Barlow Condensed", sans-serif; + justify-content: flex-start; padding-left: 6px; border-bottom: 1px solid var(--tile); } + .sq-grid { position: relative; flex: none; cursor: crosshair; touch-action: none; + background-image: linear-gradient(to right, var(--fg) 1px, transparent 1px), + linear-gradient(to right, var(--line) 1px, transparent 1px), + linear-gradient(to right, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px); + background-size: calc(var(--cw) * 16) 100%, calc(var(--cw) * 4) 100%, var(--cw) 100%; } + .sq-grid .rw { position: absolute; left: 0; right: 0; height: var(--rh); display: block; min-height: 0; pointer-events: none; + box-sizing: border-box; border-bottom: 1px solid color-mix(in srgb, var(--line) 30%, transparent); } + .sq-grid .rw.k { background: color-mix(in srgb, var(--bg) 45%, transparent); } + .sq-grid .rw.c { border-bottom-color: var(--line); } + .sq-grid .off { position: absolute; top: 0; bottom: 0; right: 0; background: color-mix(in srgb, var(--bg) 60%, transparent); pointer-events: none; } + .sq-note { position: absolute; box-sizing: border-box; height: calc(var(--rh) - 1px); border-radius: 3px; cursor: grab; + background: color-mix(in srgb, var(--trk) var(--vm, 100%), var(--bg)); border: 1px solid var(--trk); color: var(--on-trk); + font: 700 10px/1 "Barlow Condensed", sans-serif; padding-left: 3px; overflow: hidden; white-space: nowrap; display: flex; align-items: center; } + .sq-note::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 6px; cursor: ew-resize; } + .sq-note.sel { outline: 2px solid var(--fg); outline-offset: 0; z-index: 1; } + .sq-note.acc { box-shadow: inset 0 -3px 0 var(--fg); } + .sq-hit { position: absolute; box-sizing: border-box; border-radius: 4px; margin: 3px; pointer-events: none; + background: color-mix(in srgb, var(--trk) var(--vm, 100%), var(--bg)); } + .sq-hit.acc { box-shadow: inset 0 0 0 2px var(--fg); } + .sq-hit.sel { outline: 2px solid var(--fg); } + .sq-col { position: absolute; top: 0; bottom: 0; pointer-events: none; background: color-mix(in srgb, var(--fg) 7%, transparent); } + .sq-lanes { border-top: 2px solid var(--line); } + .sq-lanetabs { display: flex; gap: 2px; padding: 4px 6px; align-items: center; background: var(--raise); } + .sq-lanetabs .seg button { padding: 1px 8px; } + .sq-lane { position: relative; overflow: hidden; height: 96px; touch-action: none; } + .sq-lane .inner { position: relative; height: 100%; display: flex; } + .sq-lane .lab { position: sticky; left: 0; z-index: 2; flex: none; width: var(--kw); background: var(--raise); border-right: 1px solid var(--line); + font: 500 10px "Barlow Condensed", sans-serif; color: var(--dim); display: flex; flex-direction: column; justify-content: space-between; + align-items: flex-end; padding: 2px 4px; box-sizing: border-box; } + .sq-lane .area { position: relative; flex: none; cursor: ns-resize; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); + background-size: calc(var(--cw) * 4) 100%; } + .sq-lane .mid { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); pointer-events: none; } + .sq-vbar { position: absolute; bottom: 0; box-sizing: border-box; pointer-events: none; background: color-mix(in srgb, var(--trk) 70%, var(--tile)); + border-top: 3px solid var(--trk); } + .sq-vbar.acc { border-top-color: var(--fg); } + .sq-vbar.sel { background: var(--trk); } + .sq-vbar.neg { border-top: 0; border-bottom: 3px solid var(--trk); } + .sq-insp { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; background: var(--tile); border-radius: 6px; + padding: 8px 12px; margin: 8px 0; min-height: 70px; } + .sq-insp .ttl { font: 700 18px "Barlow Condensed", sans-serif; min-width: 110px; } + .sq-insp .ttl small { display: block; font: 500 12px "Barlow Condensed", sans-serif; color: var(--dim); } + .sq-insp .grp { display: grid; gap: 4px; justify-items: center; font: 500 12px "Barlow Condensed", sans-serif; color: var(--dim); } + .knob { display: grid; justify-items: center; gap: 1px; cursor: ns-resize; touch-action: none; outline: none; + font: 500 12px "Barlow Condensed", sans-serif; color: var(--dim); } + .knob svg { width: 44px; height: 44px; display: block; } + .knob .tr { stroke: var(--raise); } + .knob .va { stroke: var(--trk); } + .knob .pt { stroke: var(--fg); } + .knob b { font: 700 14px "Barlow Condensed", sans-serif; color: var(--fg); } + .knob:focus-visible svg { outline: 2px solid var(--fg); border-radius: 50%; } + details.sqlist { margin-top: 10px; } + details.sqlist summary { cursor: pointer; font: 700 14px "Barlow Condensed", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); } [hidden] { display: none !important; } @@ -355,11 +422,18 @@

-

- -

-
-
+

+ + + +

+

+
+
+
+

+