RPR SLIDER2DB

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
(Examples)
 
(4 intermediate revisions not shown)
Line 8: Line 8:
  double  
  double  
==Examples==
==Examples==
 +
===C++===
 +
<source lang=cpp>
 +
</source>
 +
 +
===Perl===
===Perl===
-
<pre>
+
<source lang=perl>
-
</pre>
+
# -------------------
 +
# 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
 +
</source>
 +
 
 +
 
===Python===
===Python===
-
<pre>
+
<source lang=python>
-
</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
 +
</source>
 +
 
==See Also==
==See Also==
==Stuff==
==Stuff==

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