WebAudio-Node-Editor / webaudio-node-editor

1 stars 0 forks source link

Fix play-stop-play behavior when editing graph #22

Open ruan-xian opened 5 months ago

ruan-xian commented 5 months ago

There's a weird stutter-like artifact when editing node graphs as they evaluate. (For an example, load any of the examples that play without input, like AM+FM or Jet Engine.)

I think this is due to some code I have in process() (in default.tsx) that queues up a reevaluation of the graph if it's edited while it's evaluating; we should look into and fix this. Note that the reevaluation queueing was added to avoid rapid edits being "swallowed" if fields are edited in the middle of the graph being evaluated.

santolucito commented 5 months ago

Maybe this is also related to the restart that happens when changing parameter values? Especially noticeable when editing a parameter with the up-down arrow keys (common use case in teaching).