RPR SLIDER2DB

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
(Perl)
(Examples)
 
Line 9: Line 9:
==Examples==
==Examples==
===C++===
===C++===
-
<pre>
+
<source lang=cpp>
-
</pre>
+
</source>
 +
 
 +
 
===Perl===
===Perl===
-
<pre>
+
<source lang=perl>
# -------------------
# -------------------
# TestDb2Slider.pl
# TestDb2Slider.pl
Line 37: Line 39:
RPR_ShowConsoleMsg("$result\n");
RPR_ShowConsoleMsg("$result\n");
# 0.453076447808
# 0.453076447808
 +
</source>
-
</pre>
 
===Python===
===Python===
-
<pre>
+
<source lang=python>
# -------------------
# -------------------
# TestDb2Slider.py
# TestDb2Slider.py
Line 60: Line 62:
RPR_ShowConsoleMsg(str(result)+"\n");
RPR_ShowConsoleMsg(str(result)+"\n");
# 0.453076447808
# 0.453076447808
-
</pre>
+
</source>
==See Also==
==See Also==

Latest revision as of 11:01, 29 January 2010

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

Personal tools