You may want to investigate the relationship between dB and RMS further.
Attached is a working patch, however very crudely. Have a look at the
numbers given by the [dbtorms] and [rmstodb] objects. Note use of
[line~] as well.
best!
D.
Mirko Maier wrote:
Subtract 3 or 4 dB from the original 90 dB you used for the calculation?
I tried to compensate that, but it doesn't have an effect on the calculation.
--
::: derek holzer :::
http://blog.myspace.com/macumbista :::
http://www.vimeo.com/macumbista :::
---Oblique Strategy # 173:
"Voice your suspicions"
#N canvas 265 52 1015 802 12;
#X floatatom 426 284 5 0 0 0 - - -;
#X obj 174 585
*~;
#X floatatom 376 223 5 0 0 0 - - -;
#X obj 376 172 env~ 64;
#X obj 174 140 *~;
#X obj 173 38 osc~ 440;
#X floatatom 246 97 5 0 0 0 - - -;
#X floatatom 426 345 5 0 0 0 - - -;
#X floatatom 321 404 5 0 0 0 - - -;
#X obj 298 374
*;
#X floatatom 349 457 5 0 0 0 - - -;
#X obj 301 638 env~ 64;
#X obj 175 261 z~ 64;
#X text 384 405 it's no problem to limit the number stream (limit is
90db);
#X text 408 457 but it should be the same here! how convert?;
#X text 66 38 test signal;
#X obj 173 736 dac~;
#X obj 173 706 *~;
#X obj 200 681 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X text 298 96 any amplification , e.g. 4;
#X obj 240 477 pack 0 50;
#X obj 240 509 line~;
#X obj 239 426 dbtorms;
#X obj 375 255 moses 87;
#X obj 426 312 expr 87/$f1;
#X obj 545 360 rmstodb;
#X floatatom 548 392 5 0 0 0 - - -;
#X connect 0 0 24 0;
#X connect 1 0 11 0;
#X connect 1 0 17 0;
#X connect 2 0 9 0;
#X connect 2 0 23 0;
#X connect 3 0 2 0;
#X connect 4 0 3 0;
#X connect 4 0 12 0;
#X connect 5 0 4 0;
#X connect 6 0 4 1;
#X connect 7 0 9 1;
#X connect 9 0 8 0;
#X connect 9 0 22 0;
#X connect 11 0 10 0;
#X connect 12 0 1 0;
#X connect 17 0 16 0;
#X connect 17 0 16 1;
#X connect 18 0 17 1;
#X connect 20 0 21 0;
#X connect 21 0 1 1;
#X connect 22 0 20 0;
#X connect 23 1 0 0;
#X connect 24 0 7 0;
#X connect 24 0 25 0;
#X connect 25 0 26 0;