Bypass On Silence

For general discussion related FlowStone
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Bypass On Silence

Post 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];

Father
Posts: 177
Joined: Thu Jan 09, 2014 5:48 pm

Re: Bypass On Silence

Post by Father »

So that's how its done. Thanks Bro!
These look delicious! :P Hope they are totally safe to use.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Bypass On Silence

Post 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];
Father
Posts: 177
Joined: Thu Jan 09, 2014 5:48 pm

Re: Bypass On Silence

Post 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?
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Bypass On Silence

Post 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
infuzion
Posts: 109
Joined: Tue Jul 13, 2010 11:55 am
Location: Kansas City, USA, Earth, Sol

Re: Bypass On Silence

Post 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.
Father
Posts: 177
Joined: Thu Jan 09, 2014 5:48 pm

Re: Bypass On Silence

Post 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.
Post Reply