fix some clicks

master
vampirefrog 6 years ago
parent f14f77365a
commit 15a53a4b01

@ -156,7 +156,6 @@ void synth_render_sample(struct Synth *synth, float *out) {
for(int i = 0; i < SYNTH_NUM_VOICES; i++) {
struct Voice *v = &synth->voices[i];
if(v->osc_env.state == EnvNone) continue;
float vsmpl[2];
voice_render_sample(v, vsmpl);

@ -7,7 +7,6 @@ void voice_init(struct Voice *v, struct Synth *synth) {
}
void voice_render_sample(struct Voice *v, float *out) {
//if(v->osc_env.state == None) return;
float amplitude = envelope_sample(&v->osc_env); // calculate based on key velocity and envelope
float cutoff = envelope_sample(&v->filter_env);

Loading…
Cancel
Save