Flip panning
This commit is contained in:
parent
473d62c590
commit
a50514f7ec
|
@ -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?
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue