| 49 | } |
| 50 | |
| 51 | void DiodeNode::setDistortion(float distortion) |
| 52 | { |
| 53 | // We increase the distortion by increasing the gradient of the linear portion of the waveshaper's curve. |
| 54 | _distortion->setFloat(distortion); |
| 55 | _precalc(); |
| 56 | } |
| 57 | |
| 58 | void DiodeNode::_precalc() |
| 59 | { |