<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi, <br><br>This is intentional. This is the same convention that Pure Data uses, the reason being is that it is easy to use MIDI velocity numbers to change volume. <br><br>Std.dbopow(MIDI_VEL) =&gt; mysynth.volume;<br><br>Or some similar line of code. It is nice because a MIDI value of 100 means full volume (1.0) and anything above that jacks up the volume if you have a quiet synth or sample loaded. <br><br>Remember that decibels are a logarithmic scale that is relative to some value, in this case 1.0. <br><br>--art<br><br>&gt; From: rdpoor@gmail.com<br>&gt; To: chuck-users@lists.cs.princeton.edu<br>&gt; Date: Sun, 3 May 2009 08:28:24 -0700<br>&gt; Subject: [chuck-users] dbtopow(), dbtorms(), powtodb(),        powtorms() off by 100 db<br>&gt; <br>&gt; In chuck 1.2.1.2, the family of db conversion functions appear to be  <br>&gt; broken, or at least have a unconventional interpretation of db -- they  <br>&gt; all seem have an offset of 100 db:<br>&gt; <br>&gt; for example:<br>&gt; <br>&gt; Std.powtodb(1.0) =&gt; 100.0 (expected 0.0)<br>&gt; Std.powtodb(10.0) =&gt; 110.0 (expected 10.0)<br>&gt; <br>&gt; Std.dbtopow(0) =&gt; 0 (expected 1.0)<br>&gt; Std.dbtopow(100) =&gt; 1.0 (expected 10000000000)<br>&gt; <br>&gt; (Similar comments apply to rmstodb() and dbtorms())<br>&gt; <br>&gt; OTOH they are self-consistent, in that Std.dbtopow(Std.powtodb(x)) ==  <br>&gt; x, so maybe someone thinks that's how they're supposed to behave?<br>&gt; <br>&gt; - Rob<br>&gt; <br>&gt; _______________________________________________<br>&gt; chuck-users mailing list<br>&gt; chuck-users@lists.cs.princeton.edu<br>&gt; https://lists.cs.princeton.edu/mailman/listinfo/chuck-users<br><br /><hr />Help keep personal info safe.  <a href='http://go.microsoft.com/?linkid=9655578' target='_new'>Get Internet Explorer 8 today!</a></body>
</html>