fix(comments): correct ZoneField button count/order; generalize single-zone setState seed comment

This commit is contained in:
2026-07-26 17:35:23 -04:00
parent 2356958930
commit a3142bbe3e
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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);
+1 -1
View File
@@ -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);