Author Topic: Surround/Quadrophonic/Bin aural sound dsp/vst effect source code.  (Read 584 times)

0 Members and 1 Guest are viewing this topic.

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
I have been developing a vst fx tool for some time now and have decided to release some parts of it as public domain , this kind of thing is not readily available on the internet and these effects can bring in big big money for vst developers.. so if you use it don't be shy on crediting me ( theres a good chap  :smile ).



here is a code snippet from the sound tool surround sound effect + bin-aural quadrophonic , mainly placing this in the public domain for future reference.

Code: [Select]
iEf = 1;fSf = 2048*2;
SP;
fsfDl(fSf/2);
if (iEf)
{

fDleft=0.09;  fDRight=0.09; //higher= slower decay;
flH=2;  frH=2;

if (iEf == 1) { // Surround
flH += (fSf * fWbf[fWbrb++])/(fSf*8);
fWbf[fWbwb++] = flH*fDleft;
frH += (fSf * fWbf[fWbrb])/(fSf*8);
fWbf[fWbwb] = frH*fDRight;
} else { // Quadrophonic surround
flH += (fSf * fWbf[fWbrb++])/(fSf*8);
fWbf[fWbwb++] = flH*fDleft;
frH -= (fSf * fWbf[fWbrb])/(fSf*8);
fWbf[fWbwb] = frH*fDRight;
}
fWbrb = (fWbrb + 1) & (dWb - 1);
fWbwb = (fWbwb + 1) & (dWb - 1);
SP = fIn2;
fIn2 += fIn1*frH;
fIn1 += SP*flH*2;

}

have fun with it  :smile
« Last Edit: April 10, 2014, 02:40:18 am by MrMedic »
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157