| 1165 | return OVERSAMPLING * 44100.0f * flurp(cube(sfxr) / 10); |
| 1166 | } |
| 1167 | float SfxrNode::filterFreqInSfxrUnits(float hz) |
| 1168 | { |
| 1169 | if (hz >= 44100.0f) |
| 1170 | return 1.0f; |
| 1171 | |
| 1172 | // if y = K x / (1 - x), then x = y / (y + K) |
| 1173 | float s3 = hz / (hz + (OVERSAMPLING * 44100.0f)); |
| 1174 | return powf(s3, 1.0f / 3.0f); |
| 1175 | } |
| 1176 | |
| 1177 | //------------------------------------------------------------------------ |
| 1178 |
nothing calls this directly
no outgoing calls
no test coverage detected