From a3142bbe3e8743b78bb0c4e36983ca58fbf4c8c3 Mon Sep 17 00:00:00 2001 From: daniel-c-harvey Date: Sun, 26 Jul 2026 17:35:23 -0400 Subject: [PATCH] fix(comments): correct ZoneField button count/order; generalize single-zone setState seed comment --- src/vst/editor_geometry.h | 8 ++++---- src/vst/reasampler_processor.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vst/editor_geometry.h b/src/vst/editor_geometry.h index 0b57487..f9165d7 100644 --- a/src/vst/editor_geometry.h +++ b/src/vst/editor_geometry.h @@ -115,8 +115,8 @@ int keymapSampleRowHitTest(const KeymapEditorLayout& layout, int rowCount, int x Rect zoneRowRect(const KeymapEditorLayout& layout, int index); // A zone row's interactive fields. The row is a horizontal strip: a label on the left, -// then six fixed-width nudge/delete mini-buttons on the right (low-, low+, high-, high+, -// root-, root+) followed by a delete button. kZoneNone means the click missed a control +// then seven fixed-width mini-buttons on the right (left-to-right: low-, low+, high-, high+, +// root-, root+, delete). kZoneNone means the click missed a control // (e.g. on the label) — the shell may still treat that as "select this zone". enum class ZoneField { kZoneNone, @@ -138,8 +138,8 @@ struct ZoneHit { }; // Classify a click at (x, y) against `zoneCount` zone rows. Returns {-1, kZoneNone} for a -// click outside every zone row. Within a row, the six nudges + delete occupy fixed-width -// slots on the right edge (right-to-left: delete, root+, root-, high+, high-, low+, low-); +// click outside every zone row. Within a row, the seven mini-buttons occupy fixed-width +// slots on the right edge (left-to-right: low-, low+, high-, high+, root-, root+, delete); // a click left of those slots is {index, kZoneNone} (the label area — "select"). Pure. ZoneHit zoneHitTest(const KeymapEditorLayout& layout, int zoneCount, int x, int y); diff --git a/src/vst/reasampler_processor.cpp b/src/vst/reasampler_processor.cpp index 682ec63..9eb7a59 100644 --- a/src/vst/reasampler_processor.cpp +++ b/src/vst/reasampler_processor.cpp @@ -150,7 +150,7 @@ tresult PLUGIN_API ReaSamplerProcessor::setState(IBStream* state) { // Component state IS the performance map (Tier 1, D-B). deserializePerformance lifts a // v1 (S4 single-selection) blob to a one-zone map, so already-saved Tier-0 instances // restore cleanly. When the restored map is empty, the instrument falls back to the - // Tier-0 first-sample in reloadFromBank; if the v1 lift produced a single zone we also + // Tier-0 first-sample in reloadFromBank; if any single-zone restored map is present we // seed the fallback selection from it so the editor reflects the restored pick. const PerformanceMap map = deserializePerformance(bytes); setPerformanceMap(map);