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

Mix

For general discussion related FlowStone

Mix

Postby mit2 » Sun Apr 06, 2014 1:40 am

work
Last edited by mit2 on Mon Apr 07, 2014 10:58 am, edited 1 time in total.
mit2
 
Posts: 10
Joined: Sun May 22, 2011 8:58 pm

Re: Mix

Postby Nubeat7 » Sun Apr 06, 2014 8:26 am

hello mit2

not sure what you want -
a switch: would be your described if else scenario
a crossfade: fades from A to B mixing the signals

here are the 2 modules (for stream as code)
Attachments
crossfade_n_switch.fsm
(1.42 KiB) Downloaded 835 times
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Mix

Postby mit2 » Sun Apr 06, 2014 1:21 pm

work
Last edited by mit2 on Mon Apr 07, 2014 10:58 am, edited 1 time in total.
mit2
 
Posts: 10
Joined: Sun May 22, 2011 8:58 pm

Re: Mix

Postby Nubeat7 » Sun Apr 06, 2014 1:50 pm

you mean

if mix == 0 then dry input
if mix > 0 then wet *mix

would be like this then
Code: Select all
streamin a; //dry in
streamin b; //wet in
streamin mix;
streamout out;

out = (a&(mix<=0))|((b*mix)&(mix>0));


you just need to change 'b' to '(b*mix)' in the switch module

btw are you sure you didn`t confuse > (greater then) and < (less then)
also where is the double stream?

if this doesn`t help,you better post a schematic..
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Mix

Postby mit2 » Sun Apr 06, 2014 7:35 pm

work
Last edited by mit2 on Mon Apr 07, 2014 10:58 am, edited 1 time in total.
mit2
 
Posts: 10
Joined: Sun May 22, 2011 8:58 pm

Re: Mix

Postby KG_is_back » Sun Apr 06, 2014 7:58 pm

Code: Select all
streamin dry;
streamin wet;
streamout out;
streamin mix;
out=wet*mix+dry*(1-mix);
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Mix

Postby Nubeat7 » Sun Apr 06, 2014 11:17 pm

KG_is_back wrote:
Code: Select all
streamin dry;
streamin wet;
streamout out;
streamin mix;
out=wet*mix+dry*(1-mix);

this is also a crossfade...
i just use this instead:
Code: Select all
out = a - (a - b) * fade;

because of less multiplication - it should be with better performance if i`m right and it has no extra float value for 1, but KG`s is easier to understand?


so you want:
if mix == 0 then dry input
and if mix < 0 (less then zero) it mixes the wet signal(with the filters) without input signal

so 0..-1 should mix the wet signal?

then just xchange the > and < signs in the code above

Code: Select all
streamin a;
streamin b;
streamin mix;
streamout out;

out = (a&(mix==0))|((b*mix)&(mix<0));


note that the mix signal then needs to be 0..-1 and not like you wrote before 0..1
if mix range would be 0..1 in your scenario:

mit2 wrote:i want doit this if mix = 0

http://i61.tinypic.com/286toa8.jpg

and if mix < 0

http://i62.tinypic.com/1zovvde.jpg

this is schematic how has a look


it never can get the second signalway because mix is never < 0
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

work

Postby mit2 » Mon Apr 07, 2014 9:17 am

work
Last edited by mit2 on Mon Apr 07, 2014 10:57 am, edited 1 time in total.
mit2
 
Posts: 10
Joined: Sun May 22, 2011 8:58 pm

Re: Mix

Postby Nubeat7 » Mon Apr 07, 2014 10:43 am

its because the range of your mix slider is set to min = 0, max = 0 so the output of your fader is always 0, just set the max to 1 .....
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Mix

Postby mit2 » Mon Apr 07, 2014 10:57 am

thaks. I thought that I mix 0-1
mit2
 
Posts: 10
Joined: Sun May 22, 2011 8:58 pm


Return to General

Who is online

Users browsing this forum: No registered users and 54 guests