Add an SMC-PAD preset editor that saves pad colours the way MidiSuite does.
The record layout and writes come from usbmon captures of MidiSuite: a pad colour is one three-byte write to its preset address, which lights the lamp straight away, and Save is the empty write that keeps it after a power cycle. Pad records are channel, note, min and max velocity, RGB, then Led. Tempo, swing, pad curve, and transpose come from the global block, memory type 4. The factory image from MidiSuite's Reset is kept as a test fixture, and scripts/decode_usbmon.py prints the SysEx in a capture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
adca8e17a4
commit
63b3129cca
13 files changed
+1811
No files matched your search
@@ -0,0 +1,102 @@
|
||||
:root {
|
||||
--bg: #15171c;
|
||||
--panel: #1e2129;
|
||||
--panel-2: #262a34;
|
||||
--line: #343946;
|
||||
--text: #e6e8ee;
|
||||
--muted: #8d94a6;
|
||||
--accent: #5aa9ff;
|
||||
--danger: #ff6b6b;
|
||||
--ok: #52d273;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html, body { height: 100%; margin: 0; }
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 14px;
|
||||
background: var(--panel);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
header h1 { font-size: 15px; margin: 0 8px 0 0; }
|
||||
.spacer { flex: 1; }
|
||||
#status { color: var(--muted); max-width: 46ch; }
|
||||
#status.err { color: var(--danger); }
|
||||
#status.ok { color: var(--ok); }
|
||||
#status.dirty { color: var(--accent); }
|
||||
|
||||
button, select, input[type="number"], input[type="text"] {
|
||||
background: var(--panel-2);
|
||||
color: var(--text);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
padding: 6px 10px;
|
||||
font: inherit;
|
||||
}
|
||||
button { cursor: pointer; }
|
||||
button:disabled { opacity: 0.45; cursor: default; }
|
||||
button.primary { background: #245a9e; border-color: #3d7dcc; }
|
||||
button.primary.dirty { background: #1e6b38; border-color: var(--ok); }
|
||||
button.selected, .pad.selected, .knob.selected, .btn.selected {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
label.file { color: var(--muted); }
|
||||
label.file input { display: none; }
|
||||
label.file { cursor: pointer; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; background: var(--panel-2); color: var(--text); }
|
||||
|
||||
main { display: flex; min-height: 0; flex: 1; }
|
||||
#empty { color: var(--muted); margin: 48px 0; }
|
||||
#empty.err { color: var(--danger); }
|
||||
#board.ready #empty { display: none; }
|
||||
#board, #inspector { padding: 16px; }
|
||||
#board { flex: 1; }
|
||||
#inspector {
|
||||
width: 320px;
|
||||
background: var(--panel);
|
||||
border-left: 1px solid var(--line);
|
||||
overflow: auto;
|
||||
}
|
||||
#inspector h2 { margin: 0 0 12px; font-size: 15px; }
|
||||
.muted { color: var(--muted); }
|
||||
.row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
|
||||
.row label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
|
||||
|
||||
#presets { gap: 6px; }
|
||||
#pads {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 76px);
|
||||
gap: 8px;
|
||||
margin: 8px 0 18px;
|
||||
}
|
||||
.pad, .knob, .btn {
|
||||
border: 1px solid #0008;
|
||||
color: #111;
|
||||
font-weight: 650;
|
||||
text-align: center;
|
||||
}
|
||||
.pad { height: 64px; border-radius: 8px; }
|
||||
.knob {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 50%;
|
||||
background: #d7dbe6;
|
||||
}
|
||||
#knobs, #buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
|
||||
.btn { min-width: 72px; height: 36px; border-radius: 6px; background: #c9ceda; }
|
||||
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; color: var(--muted); }
|
||||
.field input, .field select { width: 100%; }
|
||||
.hint { color: var(--muted); margin-top: 8px; }
|
||||
#global .field { margin-bottom: 0; }
|
||||
#global input { width: 90px; }
|
||||
Reference in new issue
Block a user