| @@ -157,6 +157,11 @@ void t808Hihat_setOscBandpassFreq(t808Hihat* const hihat, float freq) · 156 unmodified lines |
| 157 | tSVF_setFreq(&hihat->bandpassOsc,freq); | 157 | tSVF_setFreq(&hihat->bandpassOsc,freq); |
| 158 | } | 158 | } |
| 159 | | 159 | |
| | 160 | void t808Hihat_setOscBandpassQ(t808Hihat* const hihat, float Q) |
| | 161 | { |
| | 162 | tSVF_setQ(&hihat->bandpassOsc,Q); |
| | 163 | } |
| | 164 | |
| 160 | void t808Hihat_setStickBandPassFreq(t808Hihat* const hihat, float freq) | 165 | void t808Hihat_setStickBandPassFreq(t808Hihat* const hihat, float freq) |
| 161 | { | 166 | { |
| 162 | tSVF_setFreq(&hihat->bandpassStick,freq); | 167 | tSVF_setFreq(&hihat->bandpassStick,freq); |
| @@ -165,15 +170,12 @@ void t808Hihat_setStickBandPassFreq(t808Hihat* const hihat, float freq) · 2 unmodified lines |
| 165 | | 170 | |
| 166 | void t808Hihat_setOscFreq(t808Hihat* const hihat, float freq) | 171 | void t808Hihat_setOscFreq(t808Hihat* const hihat, float freq) |
| 167 | { | 172 | { |
| 168 | //if (freq < 5600.0f) //to avoid aliasing (for some reason high frequency settings here cause hard faults) | | |
| 169 | { | | |
| 170 | tSquare_setFreq(&hihat->p[0], 2.0f * freq); | 173 | tSquare_setFreq(&hihat->p[0], 2.0f * freq); |
| 171 | tSquare_setFreq(&hihat->p[1], 3.00f * freq); | 174 | tSquare_setFreq(&hihat->p[1], 3.00f * freq); |
| 172 | tSquare_setFreq(&hihat->p[2], 4.16f * freq); | 175 | tSquare_setFreq(&hihat->p[2], 4.16f * freq); |
| 173 | tSquare_setFreq(&hihat->p[3], 5.43f * freq); | 176 | tSquare_setFreq(&hihat->p[3], 5.43f * freq); |
| 174 | tSquare_setFreq(&hihat->p[4], 6.79f * freq); | 177 | tSquare_setFreq(&hihat->p[4], 6.79f * freq); |
| 175 | tSquare_setFreq(&hihat->p[5], 8.21f * freq); | 178 | tSquare_setFreq(&hihat->p[5], 8.21f * freq); |
| 176 | } | | |
| 177 | } | 179 | } |
| 178 | | 180 | |
| 179 | void t808Hihat_init(t808Hihat* const hihat) | 181 | void t808Hihat_init(t808Hihat* const hihat) |