[Csnd] why I don't get "samples out of range"
Date | 2012-08-05 14:54 |
From | Stefan Thomas |
Subject | [Csnd] why I don't get "samples out of range" |
Dear community, I would like to unterstand why I don't get "samples out of range" in my example. I always thought that, when You set 0dbfs to 1 every amplitude that exceeds this value will be out of range. In my example I get (via the printks opcode) giamp = 1.586285 I would also expect csound complaining about "samples out of range" but there's nothing like that, which I don't understand. |
Date | 2012-08-05 15:00 |
From | peiman khosravi |
Subject | Re: [Csnd] why I don't get "samples out of range" |
The problem must be elsewhere. Are you sure you're adding up the amplitudes for all the active instruments only, taking into consideration any envelope changes? For what you're doing I think it might be better to make a master meter. Add all the signal into a global bus and then output that to dac. You can also place a peak amp meter on this and print the output. P On 5 August 2012 14:54, Stefan Thomas <kontrapunktstefan@gmail.com> wrote: Dear community, |
Date | 2012-08-05 15:10 |
From | Justin Smith |
Subject | Re: [Csnd] why I don't get "samples out of range" |
easier: in the highest numbered instrument in your orchestra: al, ar monitor ; this grabs the total output sent by all previous (aka lower numbered) instruments then you can do something like: kl rms al kr rms ar but also, check your -m argument to the command line, if the argument is and odd number (bit 0 is set), it reports the exact amplitudes being output, and if bit 1 is set (they call this "adding 2 to the sum" in the manual) it will output out of range messages. I also like to set bit 7 (what the manual calls "adding 64 to the sum") in order to see messages in db rather than raw amps. On Sun, Aug 5, 2012 at 7:00 AM, peiman khosravi |
Date | 2012-08-05 21:09 |
From | Stefan Thomas |
Subject | Re: [Csnd] why I don't get "samples out of range" |
Dear Justin, thanks for Your proposals. I'm going to try it out, tomorrow (it's rather late now). 2012/8/5 Justin Smith <noisesmith@gmail.com> easier: in the highest numbered instrument in your orchestra: |