RPR SLIDER2DB
From CockosWiki
(Difference between revisions)
(→Perl) |
(→Python) |
||
Line 41: | Line 41: | ||
===Python=== | ===Python=== | ||
<pre> | <pre> | ||
+ | # ------------------- | ||
+ | # 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 | ||
</pre> | </pre> | ||
+ | |||
==See Also== | ==See Also== | ||
==Stuff== | ==Stuff== |
Revision as of 17:29, 13 December 2009
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; $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