fix(comments): correct ZoneField button count/order; generalize single-zone setState seed comment
This commit is contained in:
@@ -115,8 +115,8 @@ int keymapSampleRowHitTest(const KeymapEditorLayout& layout, int rowCount, int x
|
|||||||
Rect zoneRowRect(const KeymapEditorLayout& layout, int index);
|
Rect zoneRowRect(const KeymapEditorLayout& layout, int index);
|
||||||
|
|
||||||
// A zone row's interactive fields. The row is a horizontal strip: a label on the left,
|
// 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+,
|
// then seven fixed-width mini-buttons on the right (left-to-right: low-, low+, high-, high+,
|
||||||
// root-, root+) followed by a delete button. kZoneNone means the click missed a control
|
// 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".
|
// (e.g. on the label) — the shell may still treat that as "select this zone".
|
||||||
enum class ZoneField {
|
enum class ZoneField {
|
||||||
kZoneNone,
|
kZoneNone,
|
||||||
@@ -138,8 +138,8 @@ struct ZoneHit {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Classify a click at (x, y) against `zoneCount` zone rows. Returns {-1, kZoneNone} for a
|
// 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
|
// click outside every zone row. Within a row, the seven mini-buttons occupy fixed-width
|
||||||
// slots on the right edge (right-to-left: delete, root+, root-, high+, high-, low+, low-);
|
// 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.
|
// 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);
|
ZoneHit zoneHitTest(const KeymapEditorLayout& layout, int zoneCount, int x, int y);
|
||||||
|
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ tresult PLUGIN_API ReaSamplerProcessor::setState(IBStream* state) {
|
|||||||
// Component state IS the performance map (Tier 1, D-B). deserializePerformance lifts a
|
// 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
|
// 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
|
// 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.
|
// seed the fallback selection from it so the editor reflects the restored pick.
|
||||||
const PerformanceMap map = deserializePerformance(bytes);
|
const PerformanceMap map = deserializePerformance(bytes);
|
||||||
setPerformanceMap(map);
|
setPerformanceMap(map);
|
||||||
|
|||||||
Reference in New Issue
Block a user