ingresman
300 Club - QQ All-Star
I'm finishing off my own little home brewed decoder and I thought to myself "How easy would it be to create an encoder?", turns out not too difficult.
The encoding matrix for SQ is:
So a quick question to the more mathematical people here is would the the following C++ code represent this matrix?
Where jLeftBack and jRightBack are left back and right shifted.
I'm going to record me saying left front, right back etc and make a 4 chan .wav and encode it up for any one who is interested. It should represent an encoded signal which will make testing the various decoding techniques a bit easier than listening to the sine wave SQtones.mp3 on this site.
Thanks for your time in advance
The encoding matrix for SQ is:
Code:
Lt = Lf + 0.7Rb - j0.7Lb
Rt = Rf - 0.7Lb + j0.7Rb
So a quick question to the more mathematical people here is would the the following C++ code represent this matrix?
Code:
totalLeft = frontLeft + (0.707106 * backRight) - (jLeftBack * 0.707106);
totalRight = frontRight - (0.707106 * backLeft) + (jRightBack * 0.707106);
I'm going to record me saying left front, right back etc and make a 4 chan .wav and encode it up for any one who is interested. It should represent an encoded signal which will make testing the various decoding techniques a bit easier than listening to the sine wave SQtones.mp3 on this site.
Thanks for your time in advance