| 120 | } |
| 121 | |
| 122 | void LuaSisoTransform::reset() { |
| 123 | // Construct-new-and-swap: a fresh VM/instance is the only guaranteed-clean |
| 124 | // reset for arbitrary script state (the engine's pre-batch-recompute hook). |
| 125 | rebuildInstance(); |
| 126 | } |
| 127 | |
| 128 | std::optional<proc::Sample> LuaSisoTransform::calculateNextPoint(const proc::Sample& in) { |
| 129 | if (!instance_) { |