process: function()

in patch.js [96:110]


          process: function(inlets) {
                const newLightSpeed =
                    Math.floor(inlets.knob * (inlets.max - inlets.min))
                    || DEFAULT_LIGHT_SPEED;
                if (updateLayers) {
                    updateLayers(function(prevConfig) {
                        prevConfig.lights.speed = newLightSpeed;
                        // prevConfig.lights.forEach(light => {
                        //     light.speed = newLightSpeed;
                        // });
                        return prevConfig;
                    });
                }
                return {};
            }