Page 3 of 3

Re: Bypass On Silence

Posted: Wed May 21, 2014 2:08 pm
by KG_is_back
Father wrote:How about pack/unpack components? Can we replace them with some code?!


of course... assembly only though

Code: Select all

///pack
monoin mono0;
monoin mono1;
monoin mono2;
monoin mono3;
streamout out;

fld mono0[0];
fstp out[0];
fld mono1[0];
fstp out[1];
fld mono2[0];
fstp out[2];
fld mono3[0];
fstp out[3];



Code: Select all

///unpack
monoout mono0;
monoout mono1;
monoout mono2;
monoout mono3;
streamin in;

fld in[0];
fstp mono0[0];
fld in[1];
fstp mono1[0];
fld in[2];
fstp mono2[0];
fld in[3];
fstp mono3[0];


Re: Bypass On Silence

Posted: Wed May 21, 2014 3:23 pm
by Father
So that's how its done. Thanks Bro!
These look delicious! :P Hope they are totally safe to use.

Re: Bypass On Silence

Posted: Wed May 21, 2014 4:01 pm
by KG_is_back
Just one thing is missing. The way the are now, they are executed only in stage 2 by default. To make them working in all 4 stages you have to copy the execution code 4 times ad write "stage0;" "stage1;" "stage2;" and "stage3;" before all of them like this:


Code: Select all

///pack
monoin mono0;
monoin mono1;
monoin mono2;
monoin mono3;
streamout out;

stage0;
fld mono0[0];
fstp out[0];
fld mono1[0];
fstp out[1];
fld mono2[0];
fstp out[2];
fld mono3[0];
fstp out[3];

stage1;
fld mono0[0];
fstp out[0];
fld mono1[0];
fstp out[1];
fld mono2[0];
fstp out[2];
fld mono3[0];
fstp out[3];

stage2;
fld mono0[0];
fstp out[0];
fld mono1[0];
fstp out[1];
fld mono2[0];
fstp out[2];
fld mono3[0];
fstp out[3];

stage3;
fld mono0[0];
fstp out[0];
fld mono1[0];
fstp out[1];
fld mono2[0];
fstp out[2];
fld mono3[0];
fstp out[3];

Re: Bypass On Silence

Posted: Wed May 21, 2014 4:27 pm
by Father
Got it. I noticed the connection to unpack isn't turning blue when i connect to it, like the standard unpack. Is it OK?

Re: Bypass On Silence

Posted: Wed May 21, 2014 6:42 pm
by KG_is_back
Father wrote:Got it. I noticed the connection to unpack isn't turning blue when i connect to it, like the standard unpack. Is it OK?


It is probably just a coloring bug

Re: Bypass On Silence

Posted: Tue Jun 03, 2014 5:14 am
by infuzion
KG_is_back wrote:
Father wrote:Got it. I noticed the connection to unpack isn't turning blue when i connect to it, like the standard unpack. Is it OK?
It is probably just a coloring bug
Happens.

I used to have an example on the SM WiKi: basically Stream-to-green, If > 0 Then low -> switch off audio.
Someone else on the SM forum had an genius idea to

Code: Select all

jmp 
entire code blocks.

Re: Bypass On Silence

Posted: Sat Jun 07, 2014 5:49 pm
by Father
Jumping individual codes is a time consuming work and the result is never 100% bypass. But when you are using a selector it shuts off the stream and drops everything. As i understood, this only works with a green selector.