We could avoid to change the actual behavior of the gentable if we could have a channel(“chan”) identifier that returns a value of 1 if the user interacted with the widget after the last widget reinit (first start or after a “f …” score event). In this way, in the Csound program, we could know if the user interacted with the widget and, based on this info, change the numbers of points to read.
EDIT: I attached my actual code. It loads the preset at start and as you change the preset in the combobox. If the file doesn’t exist, it creates a new one with a default 0—1 linear velocity.
velCurve.csd (6.7 KB)

