Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

[Q] Need help with code migration from Synthmaker

DSP related issues, mathematics, processing and techniques

[Q] Need help with code migration from Synthmaker

Postby zucker1 » 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.
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.....
zucker1
 
Posts: 13
Joined: Wed Sep 02, 2015 12:48 pm

Re: [Q] Need help with code migration from Synthmaker

Postby martinvicanek » Sun Sep 06, 2015 3:58 pm

zucker1, you seem to be referring to my post at viewtopic.php?f=4&t=3606&p=19805&hilit=crossfade#p19803. Well I checked the S&H module codes in Synthmaker and they run OK. I also checked the other modules' coded, no reason why it should not work in old SM. You have to rebuild the schematic, though, because you can't load .fsm files into SM.

BTW the first three lines of code are missing in your post.
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm


Return to DSP

Who is online

Users browsing this forum: No registered users and 6 guests