Fix subvariation display, progress bar, and linked-instrument discard

- ast-parser: read for_value= prop for sub-variations (was always null,
  causing fallback to positional "subvariation N" label)
- StatusPoller: calculate progress from currently_rendered_notes /
  notes_in_total; show remaining_time string from status.json
- ShapeEditor/EnvelopeEditor: pass { undo } through onChange so callers
  can revert in-place mutations
- PaneFO: makeChangeHandler stashes undo from info arg; discardEdit
  calls undo() before clearing pendingEdit; depends_on handler provides
  its own undo for the inline node.dependsOn mutation
This commit is contained in:
c0dev0id
2026-06-23 21:28:53 +02:00
parent 2060f109b6
commit 4c392927cf
5 changed files with 48 additions and 50 deletions

View File

@@ -212,7 +212,7 @@ function buildInstrument(node) {
function buildVariation(node) {
const v = {
type: 'variation',
dependsOn: node.props.depends_on ?? null,
dependsOn: node.props.depends_on ?? node.props.for_value ?? null,
basicProperties: null,
labelSpecs: [],
subvariations: [],