[Q] Need help with code migration from Synthmaker
Posted: Wed Sep 02, 2015 3:54 pm
HI,
i'd need you help urgent. (sorry for my terrible english)
For some reasons i need to use the "old" Synthmaker to create an vst plugin (that is compatible with my vst host)
I've an code that runs in Flowstone, but does not work as supposed in Synthmaker.
or
The crossfade output delivers strange output on synthmaker, but works on flowstone.
I'd need your help....PLZ....
What could be the reason that this
this is part of the pitch preserving delay example.....
i'd need you help urgent. (sorry for my terrible english)
For some reasons i need to use the "old" Synthmaker to create an vst plugin (that is compatible with my vst host)
I've an code that runs in Flowstone, but does not work as supposed in Synthmaker.
Code: Select all
streamout delay2;
streamout xfade;
float saw=0;
float F0=0;
float F1=1;
float FM2=-2;
int abs=2147483647;
movaps xmm0,saw;
addps xmm0,freq; // xmm0 is saw
movaps xmm2,delay;
subps xmm2,delay1;
movaps xmm1,F0;
cmpps xmm1,xmm0,1;
andps xmm2,xmm1;
movaps xmm1,freq;
cmpps xmm1,xmm0,5;
andps xmm2,xmm1;
addps xmm2,delay1;
movaps delay1,xmm2;
movaps xmm3,delay;
subps xmm3,delay2;
movaps xmm1,F1;
cmpps xmm1,xmm0,1; // xmm1 is (saw>1)
andps xmm3,xmm1;
addps xmm3,delay2;
movaps delay2,xmm3;
andps xmm1,FM2;
addps xmm0,xmm1;
movaps saw,xmm0;
andps xmm0,abs;
movaps xfade,xmm0;or
Code: Select all
streamin delay;
streamin freq;
streamout delay1;
streamout delay2;
streamout xfade;
float saw;
saw = saw + freq;
delay1 = delay1 + (delay - delay1)&(saw>0)&(saw<=freq);
delay2 = delay2 + (delay - delay2)&(saw>1);
saw = saw - 2&(saw>1);
xfade = abs(saw);The crossfade output delivers strange output on synthmaker, but works on flowstone.
I'd need your help....PLZ....
What could be the reason that this
this is part of the pitch preserving delay example.....