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

Linear Slide Selector for VCAs

Post any examples or modules that you want to share here

Linear Slide Selector for VCAs

Postby glitchcpt » Wed Oct 15, 2014 9:29 am

Hey guys,

So I have been here for a while now, reading all the useful tips you guys have, never posted anything until now,

I am wanting to achieve a linear selector using a knob, that can basically mix between multiple sources, be it filter types or different oscillators, I think my problem is with the math in my noob brain, I cant seem to get output B and C in my module to mix naturally, if that explanation even makes sense?

Hopefully you guys can help with my design,

Thanks in advance!!

BOOM!
Attachments
Linear Slide Selector.fsm
(4.03 KiB) Downloaded 1072 times
glitchcpt
 
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Re: Linear Slide Selector for VCAs

Postby KG_is_back » Wed Oct 15, 2014 10:05 am

Do you mean something like this?

ruby, green and stream versions are included.
Attachments
linear slide selector KG.fsm
(120.76 KiB) Downloaded 1139 times
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Linear Slide Selector for VCAs

Postby glitchcpt » Wed Oct 15, 2014 10:10 am

Oh my!

That is exactly what I was looking for :D :D :D

Thanks a million!!
glitchcpt
 
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Re: Linear Slide Selector for VCAs

Postby KG_is_back » Wed Oct 15, 2014 10:56 am

Here's how I thought about it:
0. take a paper and draw the graphs of functions you want to achieve.
1. the function for all outputs is the same - only offset on x axis - that can be easily archived by subtracting the offset from input.
2.In the range around peak the function in V shaped. abs(x) provides such V shaped function, only flipped vertically.To archive the desired shape we must flip the abs function (by abs(x)*-1) and add y offset of one -> y=1-abs(x)
3. Further from the peak the function is zero both in negative and positive direction - in fact it is not allowed to become negative in value. That can be achieved using max()function -> y=max(0,1-abs(x))
4. Finally we may add the horizontal shifting mentioned in point 1. y=max(0,1-abs(x-offset))

This is how I think when preparing such functions and I believe many people do too. It's a very useful skill to learn, especially for DSP and programming in general.
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Linear Slide Selector for VCAs

Postby glitchcpt » Wed Oct 15, 2014 12:07 pm

Thanks for the valued input!

Not sure if you saw my abomination, but now that I look at your simple approach it seems my example is more likely to blow up a cpu before anything constructive happens :lol:
glitchcpt
 
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Re: Linear Slide Selector for VCAs

Postby Perfect Human Interface » Thu Oct 16, 2014 11:27 am

Interesting KG; I like your approach because it allows you to add as many different sources to fade between as you need.

I made this 3-way crossfade a while back.
Attachments
3-Way XFade.fsm
(12.87 KiB) Downloaded 1042 times
Perfect Human Interface
 
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Linear Slide Selector for VCAs

Postby tulamide » Thu Oct 16, 2014 6:59 pm

Perfect Human Interface wrote:Interesting KG; I like your approach because it allows you to add as many different sources to fade between as you need.

I made this 3-way crossfade a while back.

That's where the interpolation modules come in handy. See here for an evenly distributed 4 stream fader.
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany


Return to User Examples

Who is online

Users browsing this forum: No registered users and 112 guests