If you have a problem or need to report a bug please email :

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

Working with MV's rational mapper (useful ruby, dspcode)

For general discussion related FlowStone

Working with MV's rational mapper (useful ruby, dspcode)

Postby » Sat Dec 14, 2019 7:12 pm

So, I have been working on the MV reverb I promised to make. The sunburst gradients were too memory intensive to be done with primitives so I required ruby to do everything.

Even so the knobs were strained a little.

However, here is the ruby code I came up with to emulate Martin Vicanek's rational mapper. Enjoy.'

Code: Select all
var1 = @in
r1 = @r1 ##min
r2 = @r2 ##mid
r3 = @r3 ##max

red = (((r3-r1)*(r2-r1))*var1)/((r3-r2)+(var1*((r2*2)-(r3+r1))))+r1

output 0, red

It was useful and I thought it could even be used in DSP.

User avatar
Posts: 817
Joined: Tue Apr 03, 2018 5:50 pm
Location: North Bay, Ontario, Canada

Return to General

Who is online

Users browsing this forum: No registered users and 15 guests