RPR SLIDER2DB
From CockosWiki
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR SLIDER2DB
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR SLIDER2DB
Contents |
SLIDER2DB()
double SLIDER2DB(double y)
Parameters
double y
Returns
double
Examples
C++
Perl
# ------------------- # TestDb2Slider.pl # ------------------- use strict; use warnings; my $dbfs; my $result; $dbfs = 6; $result = RPR_DB2SLIDER($dbfs); RPR_ShowConsoleMsg("$result\n"); # 886.827942054 $dbfs = 0; $result = RPR_DB2SLIDER($dbfs); RPR_ShowConsoleMsg("$result\n"); # 750.0 $dbfs = -71.9 $result = RPR_DB2SLIDER($dbfs); RPR_ShowConsoleMsg("$result\n"); # 0.453076447808
Python
# ------------------- # TestDb2Slider.py # ------------------- dbfs = 6; result = RPR_DB2SLIDER(dbfs); RPR_ShowConsoleMsg(str(result)+"\n"); # 886.827942054 dbfs = 0; result = RPR_DB2SLIDER(dbfs); RPR_ShowConsoleMsg(str(result)+"\n"); # 750.0 dbfs = -71.9 result = RPR_DB2SLIDER(dbfs); RPR_ShowConsoleMsg(str(result)+"\n"); # 0.453076447808
See Also
Stuff
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR SLIDER2DB
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR SLIDER2DB