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
4 posts
• Page 1 of 1
Ruby/DSP Selectable Curve Crossfader
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
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
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
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 1236 times
- glitchcpt
- Posts: 54
- Joined: Wed Oct 01, 2014 3:42 pm
Re: Ruby/DSP Selectable Curve Crossfader
Just had a little time 4 this...
here a simple solution for the last Type:
[using ur indentation]
but none 4 the 'Slow Fade'
Keep on doing!
Walter
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
-
Walter Sommerfeld - Posts: 249
- Joined: Wed Jul 14, 2010 6:00 pm
- Location: HH - Made in Germany
Re: Ruby/DSP Selectable Curve Crossfader
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
Good idea adam...
like this:
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
-
Walter Sommerfeld - Posts: 249
- Joined: Wed Jul 14, 2010 6:00 pm
- Location: HH - Made in Germany
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 26 guests