Advertisement
junh1024

222_to_51_dmx_ff

Aug 27th, 2020
1,856
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.33 KB | None | 0 0
  1. REM Front Right
  2. REM Front Centre
  3. REM LFE Left
  4. REM Back Left
  5. REM Back Right
  6. REM Front Left/Centre
  7. REM Front Right/Centre
  8. REM Back Centre
  9. REM LFE Right
  10. REM Side Left
  11. REM Side Right
  12. REM Top Front Left
  13. REM Top Front Right
  14. REM Top Front Centre
  15. REM Top Centre
  16. REM Top Back Left
  17. REM Top Back Right
  18. REM Top Side Left
  19. REM Top Side Right
  20. REM Top Back Centre
  21. REM Bottom Front Centre
  22. REM Bottom Front Left
  23. REM Bottom Front Right
  24.  
  25. @echo off
  26.  
  27. REM FC + (FLc + FRc)*c + (TpFC + TpC*f + BtFC)*e
  28. REM FL + FLc*c + SiL*d + (TpFL + TpSiL*d + BtFL)*e
  29. REM FR + FRc*c + SiR*d + (TpFR + TpSiR*d + BtFR)*e
  30. REM BL + BC*g + SiL*d + (TpBL + TpBC*g + TpSiL*d + TpC*f)*e
  31. REM BR + BC*g + SiR*d + (TpBR + TpBC*g + TpSiR*d + TpC*f)*e
  32. REM LFE (LFE1 + LFE2)*l
  33. REM a: -3 dB, b: -3 dB, c: -4.5 dB, d: -4.5 dB, e: 0 dB, f: -6 dB, g: -3 dB, l: -3 dB
  34.  
  35. REM db to scalar approximately
  36. set coeff_c=0.6
  37. set coeff_d=0.6
  38. set coeff_f=0.5
  39. set coeff_g=0.7
  40.  
  41. ffmpeg -y -i 222.wav -af ^
  42. "pan=5.1^
  43. |c0=c0+%coeff_c%*c6+%coeff_d%*c10+c12+%coeff_d%*c18+c22^
  44. |c1=c1+%coeff_c%*c7+%coeff_d%*c11+c13+%coeff_d%*c19+c23^
  45. |c2=c2+%coeff_c%*c6+%coeff_c%*c7+c14 +%coeff_f%*c15+c21^
  46. |c3=c3+c9^
  47. |c4=c4+%coeff_g%*c8+%coeff_d%*c10+c16+%coeff_g%*c20+%coeff_d%*c18+%coeff_f%*c15^
  48. |c5=c5+%coeff_g%*c8+%coeff_d%*c11+c17+%coeff_g%*c20+%coeff_d%*c19+%coeff_f%*c15^
  49. "^
  50.  51.wav
  51.  
  52. pause
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement