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

Anyone here able to help me with ASM code?

For general discussion related FlowStone

Anyone here able to help me with ASM code?

Postby djbrynte » Wed Sep 09, 2015 8:20 pm

I have an LFO and Delay.

I want it to work in grey lines. Not poly.

Here is the codes.

1. Quad Osc2

streamin kin;

streamout x;
streamout y;

float k1=0;
float k2=0;
float F0=0;
float F1=1;
float FM2=-2;

stage0; // initialize x=0 and y=1
movaps xmm0,kin;
mulps xmm0,xmm0;
addps xmm0,F1;
movaps xmm1,kin;
divps xmm1,xmm0;
addps xmm1,xmm1;
movaps x,xmm1;
movaps xmm0,F1;
mulps xmm1,kin;
subps xmm0,xmm1;
movaps y,xmm0;

stage2;
// update coeffs (hop)
mov eax,ecx;
and eax,31;
cmp eax,0;
jnz end0;
movaps xmm0,kin;
movaps k1,xmm0; // assign k1
mulps xmm0,FM2;
movaps xmm1,k1;
mulps xmm1,k1;
addps xmm1,F1;
divps xmm0,xmm1;
movaps k2,xmm0; // assign k2
end0:

// iterate
movaps xmm0,k1;
movaps xmm1,k2;
mulps xmm0,x;
addps xmm0,y; // store tmp in xmm0
mulps xmm1,xmm0;
addps xmm1,x;
movaps x,xmm1; // assign x
mulps xmm1,k1;
addps xmm1,xmm0;
movaps y,xmm1; // assign y
________________________________

2. StereoPack

streamin in0;
streamin in1;
streamout pack;

movaps xmm0,in0;
movaps xmm1,in1;
shufps xmm0,xmm1,68; // ABxx,CDxx -> ABCD
movaps pack,xmm0;

___________________________

3. I think Delay

streamin in;
streamin chorusL;
streamin chorusR;
streamin mix;
streamout outL;
streamout outR;
float F1=1;
float FP5=0.5;

movaps xmm2,mix;
movaps xmm0,chorusL;
mulps xmm0,xmm2;
subps xmm0,in;
movaps xmm1,chorusR;
mulps xmm1,xmm2;
subps xmm1,in;
mulps xmm2,FP5;
subps xmm2,F1;
mulps xmm0,xmm2;
movaps outL,xmm0;
mulps xmm1,xmm2;
movaps outR,xmm1;

________________________________
djbrynte
 
Posts: 613
Joined: Mon Jun 22, 2009 10:51 am

Re: Anyone here able to help me with ASM code?

Postby martinvicanek » Wed Sep 09, 2015 9:30 pm

djbrynte wrote:I want it to work in grey lines. Not poly.

Johan, what do you mean by "grey lines"? I know stream (blue lines), poly (white lines), MIDI (red), graphics (yellow) and of course green lines. Grey lines are incactive . :?: :?
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Anyone here able to help me with ASM code?

Postby adamszabo » Wed Sep 09, 2015 10:26 pm

Maybe he means busses (grey)? I dont know
adamszabo
 
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Re: Anyone here able to help me with ASM code?

Postby djbrynte » Thu Sep 10, 2015 7:56 am

Sry i mean. Blue lines = FX part (poly) Grey lines = Other synth part (Mono)

Im trying to make this chorus in grey lines. I mean so its not an FX. This is for a mono chorus.

I need to get it working :/ So i can reduce cpu.

Or im wrong mybe this code doesent matter for that?
djbrynte
 
Posts: 613
Joined: Mon Jun 22, 2009 10:51 am

Re: Anyone here able to help me with ASM code?

Postby martinvicanek » Fri Sep 11, 2015 8:07 am

Still not sure what you mean. :?
1. Quad Osc2 will work both in poly and stream.
2. Stereo Pack will only work in stream, not in poly (it does not make any sense in poly).
3. "I think Delay" - no, it is a stereo chorus mixer. Will work both in stream and poly (should you really want to use it there).
All three modules are very low CPU, there is nothing to be gained trying to optimize further.
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm


Return to General

Who is online

Users browsing this forum: No registered users and 44 guests