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

Ruby/DSP Selectable Curve Crossfader

Post any examples or modules that you want to share here

Ruby/DSP Selectable Curve Crossfader

Postby glitchcpt » Sun Jan 25, 2015 10:35 am

Hi Guys,

So I'm working on trying to construct a realistic sounding crossfader schematic,
And I can't seem to wrap my head around the ruby behind it, I have worked out most of the maths functions, but the if statements aren't firing correctly, I don't even know if that is the right method to use here haha :lol:

anyway, here it is so far

:edit:

I think I got the if statements firing off correctly, just need to figure out the last 2 equations :)
Attachments
Ruby CrossFader Advanced 0.2.fsm
(1.86 KiB) Downloaded 1235 times
glitchcpt
 
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Re: Ruby/DSP Selectable Curve Crossfader

Postby Walter Sommerfeld » Tue Jul 05, 2016 8:47 pm

Just had a little time 4 this...

here a simple solution for the last Type:

Code: Select all
##Fast Cut BUG?  # after sun mod O.K.
if @index==5
   if @x <=0.1
   then
   self.output 2, @x*10.5
   else
   self.output 2, 1 # sun mod
   end
   if @x >=0.9
   then
   self.output 3, (1-@x)*10.5
   else
   self.output 3, 1 # sun mod
   end
end

[using ur indentation]

but none 4 the 'Slow Fade'

Keep on doing!
Walter
User avatar
Walter Sommerfeld
 
Posts: 249
Joined: Wed Jul 14, 2010 6:00 pm
Location: HH - Made in Germany

Re: Ruby/DSP Selectable Curve Crossfader

Postby adamszabo » Tue Jul 05, 2016 9:46 pm

I would use a min and max functions instead of the last if statements
adamszabo
 
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Re: Ruby/DSP Selectable Curve Crossfader

Postby Walter Sommerfeld » Wed Jul 06, 2016 1:27 pm

Good idea adam...

like this:

a = @fader >= 0.9 ? (1-@fader)*10.5:1
output 3, a
watch 'a',a

b = @fader <= 0.1 ? @fader*10.5:1
output 2, b
watch 'b',b
User avatar
Walter Sommerfeld
 
Posts: 249
Joined: Wed Jul 14, 2010 6:00 pm
Location: HH - Made in Germany


Return to User Examples

Who is online

Users browsing this forum: No registered users and 10 guests