Stereo Field Rotation Via Transformation Matrix¶
- Author or source: Michael Gruhn
- Type: Stereo Field Rotation
- Created: 2008-03-17 09:40:10
This work is hereby placed in the public domain for all purposes, including use in commercial applications. 'angle' is the angle by which you want to rotate your stereo field.
1 2 3 4 5 6 7
// Calculate transformation matrix's coefficients cos_coef = cos(angle); sin_coef = sin(angle); // Do this per sample out_left = in_left * cos_coef - in_right * sin_coef; out_right = in_left * sin_coef + in_right * cos_coef;