Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 07-10-2019, 10:29 AM   #1
RCJacH
Human being with feelings
 
Join Date: Apr 2016
Location: Beijing, China
Posts: 215
Default Quick Question: What's the formula for the envelope curve (with tension) in REAPER?

This might be really basic. I'm trying to look for tension formula for tension of a linear line curve for envelopes in jsfx.

The common linear curve is distance/range, and I used (distance/range)^power to add tension.

However, the linear curve in REAPER looks a bit different:
Reaper Linear:


Max tension:


Min tension:



While with the linear ^ power:
Max tension:


Min tension (which looks weird):



Thus my question is, what would be the formula to create a curve with tension which is used for envelopes in REAPER?
RCJacH is offline   Reply With Quote
Old 07-19-2019, 02:20 PM   #2
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

REAPER uses a Bézier curve, not a power curve, but I don't know how neighboring points affect the curve: Formula for Bézier curves (question for the devs).
juliansader is offline   Reply With Quote
Old 07-20-2019, 02:43 AM   #3
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,827
Default

Quote:
Originally Posted by juliansader View Post
REAPER uses a Bézier curve, not a power curve, but I don't know how neighboring points affect the curve: Formula for Bézier curves (question for the devs).
Oh, so is this the reason why this is happening ?

https://forum.cockos.com/showthread.php?t=221391

If so, too bad because it's not a desired behaviour.
Vagelis is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.