![](https://secure.gravatar.com/avatar/fa5a8de5c6e6c5838fc8106b390c7a6d.jpg?s=120&d=mm&r=g)
Dear list,
It turns out that for a VM that has been running for a arbitrarily long time
it's still easy to find the time of it's birth.
considder the following;
=================
time birth;
now - (now /samp)::samp => time start;
if (start == birth) <<<"Yay">>>;
=============================
*hits head*
So, it's possible after all to define objects of type time wthout using time
after all; adding durations to a "fresh" time object will in fact do.
Next up; a poor man's casting;
=============================
//demo
<<
![](https://secure.gravatar.com/avatar/7658c29ea9637ecddb3b3635a4f1ad24.jpg?s=120&d=mm&r=g)
Hi, I'd like to know how decibel is defined in the standard functions of chuck, namely powtodb and rmstodb. After what I've read so far decibel is defined as: 20*log(soundToMeasure/referenceValue) Is that the formula used for these functions? And if yes, what is the reference Value here? Also, did I get the relation between the float values used for the samples of audio signals in chuck and dB right if I would measure dBs like this: - suppose I want to get the maximum dB of an audiosignal. Would it be sufficient to look for the greatest float value in the signal, and then apply powtodb(maximumValue) to it? - suppose I want to get the average dB of an audiosignal. Would I have to take all values of the signal, calculate the root mean square after the formula used in statistics and then apply rmstodb? But then I still don't understand why I need another function for this one. So, what is the difference between rmstodb and powtodb. Have a nice day Jakob _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
participants (2)
-
jakob kaiser
-
Kassen