






Moderators: electrogear, exonerate
You could write something to read into a buffer and then reverse the buffer as output


MyCo wrote:float mem[352800];// thats about 16 seconds at 120bpm.
has to be:
float mem[352800];// thats about 7 seconds at 44,1kHz samplerate.

rullyastronout wrote:i think vst system, has a block of sample given depend on souncard latency setting, before we can start the process.
so we actually can reverse the sample between a block of samples, but i don't know how to do it in sm. in c++ you could.
i hope there some one can tell me how to
==>get ablock of sample
==>process it
==>send out at no delay.
Luckily, if the effect has a "look ahead buffer" like this we could report that to the host which can then (if supported) compensate for it.
Unfortunately there's no way to report the latency of SM plugin to the host.
That feature is high on my wish list.void AGain::processReplacing (float **inputs, float **outputs, long sampleFrames)
{
float *in1 = inputs[0];
float *in2 = inputs[1];
float *out1 = outputs[0];
float *out2 = outputs[1];
int index=0;
while (--sampleFrames >= 0)//depend on sampleframe given
//the look ahead buffer
{
while(index!=100)
{
index=index++;
float Left[index] = *in1++;
}
//and so on
Users browsing this forum: No registered users and 1 guest