<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) => 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>> From: rdpoor@gmail.com<br>> To: chuck-users@lists.cs.princeton.edu<br>> Date: Sun, 3 May 2009 08:28:24 -0700<br>> Subject: [chuck-users] dbtopow(), dbtorms(), powtodb(),        powtorms() off by 100 db<br>> <br>> In chuck 1.2.1.2, the family of db conversion functions appear to be <br>> broken, or at least have a unconventional interpretation of db -- they <br>> all seem have an offset of 100 db:<br>> <br>> for example:<br>> <br>> Std.powtodb(1.0) => 100.0 (expected 0.0)<br>> Std.powtodb(10.0) => 110.0 (expected 10.0)<br>> <br>> Std.dbtopow(0) => 0 (expected 1.0)<br>> Std.dbtopow(100) => 1.0 (expected 10000000000)<br>> <br>> (Similar comments apply to rmstodb() and dbtorms())<br>> <br>> OTOH they are self-consistent, in that Std.dbtopow(Std.powtodb(x)) == <br>> x, so maybe someone thinks that's how they're supposed to behave?<br>> <br>> - Rob<br>> <br>> _______________________________________________<br>> chuck-users mailing list<br>> chuck-users@lists.cs.princeton.edu<br>> 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>