| 1116 | |
| 1117 | |
| 1118 | void Engine::setParamValue(Module* module, int paramId, float value) { |
| 1119 | // If param is being smoothed, cancel smoothing. |
| 1120 | if (internal->smoothModule == module && internal->smoothParamId == paramId) { |
| 1121 | internal->smoothModule = NULL; |
| 1122 | internal->smoothParamId = 0; |
| 1123 | } |
| 1124 | module->params[paramId].setValue(value); |
| 1125 | } |
| 1126 | |
| 1127 | |
| 1128 | float Engine::getParamValue(Module* module, int paramId) { |