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

vowel filter and modulation problems

For general discussion related FlowStone

Re: vowel filter and modulation problems

Postby TrojakEW » Thu Sep 19, 2013 8:40 pm

This one works.
Code: Select all
streamin in;
monoout one;
monoout two;
monoout three;
monoout four;

push eax;
fld in[0]; fstp one[0];
fld in[1]; fstp two[0];
fld in[2]; fstp three[0];
fld in[3]; fstp four[0];
pop eax;

movaps xmm0,one;
shufps xmm0,xmm0,0;
movaps one,xmm0;
User avatar
TrojakEW
 
Posts: 111
Joined: Sat Dec 25, 2010 10:12 am
Location: Slovakia

Re: vowel filter and modulation problems

Postby tester » Thu Sep 19, 2013 10:24 pm

TrojakEW wrote:Doesn't shufps only change channel routing? Mask 94 in original code output channel in order 3,4,2,2 while 78 sets 3,4,1,2.


I don't know what it does, but your next fix seems to not work - either dies or just sends a value that does not exist (check on all channels)...

Here is the original topic:
http://synthmaker.co.uk/forum/viewtopic ... =45#p89297

and attached copy from there.
Attachments
GetMonoFixed.fsm
(7.63 KiB) Downloaded 858 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: vowel filter and modulation problems

Postby trogluddite » Thu Sep 19, 2013 11:42 pm

Not too sure about the bug - not had time to look that deep - but it does look as if it should work.

However - here's something else to try; eliminating the unpack completely.

1) Feed the two filter blocks with the complete mono4 input (no unpacking).
2) In the second filter block change the first opcode 'fld in[0]' to 'fld in[1]'

The 'fld' opcode grabs the value of a single SSE channel (it a CPU floating point unit instruction rather than SSE)- that's how the previous unpacker examples are working. So effectively, that first instruction in the filter is a built-in unpacker - all that's needed is to change the 'in' channel that is being used - the following 'fstp temp[0]' opcode will re-direct the value to channel [0] of the main filter routine.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: vowel filter and modulation problems

Postby tester » Fri Sep 20, 2013 12:08 am

Well - I leave the asm stuff for asm gurus. I have no bacground for making conclusions on results. I mean - I read, but my understanding is somewhere else among the clouds... :mrgreen: Overloaded.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: vowel filter and modulation problems

Postby TrojakEW » Fri Sep 20, 2013 9:22 am

trogluddite wrote:2) In the second filter block change the first opcode 'fld in[0]' to 'fld in[1]'

This doesn't work here too.

But Tester why is there pack4 in mod cv? Why not use mono only like this?
Attachments
vowel-error.fsm
(51.16 KiB) Downloaded 873 times
User avatar
TrojakEW
 
Posts: 111
Joined: Sat Dec 25, 2010 10:12 am
Location: Slovakia

Re: vowel filter and modulation problems

Postby trogluddite » Fri Sep 20, 2013 9:31 am

TrojakEW wrote:This doesn't work here too.

Aaah - sorry, my bad. The connector for 'in' is set to be a 'monoin' in the code, so it won't receive on all four channels - changing it to a regular streamin should allow the mono4 to connect correctly.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: vowel filter and modulation problems

Postby tester » Fri Sep 20, 2013 10:24 am

TrojakEW wrote:But Tester why is there pack4 in mod cv? Why not use mono only like this?


Because the whole design is large and has hunderts individual oscillators for modulation; some of them are packed x2 or x4 to make things simple. Spliting it into mono designs means few things: more wavetable based oscillators to rewire by compiler, more selectors in blue section, less syncing.

Besides this issue seems to act in the bacground of FS compiler, so I have no idea whether it affects something else or not.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: vowel filter and modulation problems

Postby trogluddite » Fri Sep 20, 2013 12:14 pm

Oops - ignore my previous posts, I had misread the problem, and now have a fix...
vowel-error SSE FIX.fsm
(53.09 KiB) Downloaded 899 times

Once I had the schematic up on my big screen, I saw what you meant about the modulation. Couldn't see that part on my little laptop, and jumped to the conclusion that the packer at the top (audio input) was causing the problem!
(always read the question properly!! - as my teachers were so fond of telling me at school).

You'll be pleased to hear that the FS compiler is not broken - it hasn't changed at all.
The problem is caused by the weird way that mono connections work. The 'x' and 'y' inputs of the co-efficient calculations have only a mono in - but the values are being used to calculate mono4 filter co-efficients.

Normally, that is OK, because stock "mono" streams actually do use all four "mono4" streams - but with all four values set to the same value. It has to work that way, because the SSE commands in the CPU always process all four channels, even if you're not using them - so by default, stock components "broadcast" on all four channels, just to be sure that the "unused" channels don't cause the CPU any problems.

But this setup breaks if you feed it a mono signal that comes from an unpacker (or certain kinds of assembly), because the unpacker mono outputs really do only process single channel - leaving the other three in a somewhat uncertain state. No doubt, this is because it saves quite a lot of CPU to do it that way.

I've popped in a little module on the 'x' and 'y' inputs that fixes this, by copying channel [0] to the other three, and using a mono4 code input instead of plain mono (that's why my other 'unpacker' designs worked - because they also have this 'copy to all' feature). It's a handy little module to have in the toolbox, whenever you need to send a mono stream to all four channels of a 'mono4' component.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: vowel filter and modulation problems

Postby tester » Fri Sep 20, 2013 12:57 pm

As for your earlier posts - definately I ignored them. :mrgreen:
Somehow I knew that you misread that problem.

Thanks for fix.
And nice to have you back on forum.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: vowel filter and modulation problems

Postby trogluddite » Fri Sep 20, 2013 1:05 pm

No problem - been a while since I did any ASM; I was starting to worry that I'd forgotten how to do it! :shock:
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 75 guests

cron