Guest User

M/S encode and decode

a guest
Dec 28th, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.15 KB | None | 0 0
  1. desc:MS Encode/Decode
  2.  
  3. @init
  4.  
  5. inv_sqrt2 = 1 / sqrt(2);
  6.  
  7. @sample
  8.  
  9. m = spl0 + spl1;
  10. s = spl0 - spl1;
  11.  
  12. spl0 = m * inv_sqrt2;
  13. spl1 = s * inv_sqrt2;
Advertisement
Add Comment
Please, Sign In to add comment