Lines 309-315
void monosynth_audio_module::calculate_b
Link Here
|
309 |
{ |
309 |
{ |
310 |
float freq = fabs(*params[par_o2unisonfrq] / muls[7]); |
310 |
float freq = fabs(*params[par_o2unisonfrq] / muls[7]); |
311 |
if (moddest[moddest_o2unisondetune] != 0) |
311 |
if (moddest[moddest_o2unisondetune] != 0) |
312 |
freq *= pow(2.0, moddest[moddest_o2unisondetune]); |
312 |
freq *= pow(2.0, (double)moddest[moddest_o2unisondetune]); |
313 |
unison_osc.set_freq(freq, srate); |
313 |
unison_osc.set_freq(freq, srate); |
314 |
last_unison_scale = 1.0 / (1.0 + 2 * last_unison); |
314 |
last_unison_scale = 1.0 / (1.0 + 2 * last_unison); |
315 |
unison_scale = 1.0 / (1.0 + 2 * unison); |
315 |
unison_scale = 1.0 / (1.0 + 2 * unison); |