Flip panning

This commit is contained in:
Luke Hubmayer-Werner 2024-07-15 15:25:31 +09:30
parent 473d62c590
commit a50514f7ec
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ vec4 render_song(sampler2D tex, int smp) {
float samp = get_instrument_sample(instrument_idx, pitch_idx, t-t_start);
samp *= velocity * attack_factor * release_factor;
// TODO: proper decay and sustain, revisit release
downmixed_stereo += samp * vec2(1.0-pan, pan) * 0.5; // TODO: double it to maintain the mono level on each channel at center=0.5?
downmixed_stereo += samp * vec2(pan, 1.0-pan) * 0.5; // TODO: double it to maintain the mono level on each channel at center=0.5?
}
}
}