Csound Csound-dev Csound-tekno Search About

[Csnd] some amplitude problems

Date2009-10-05 18:20
Fromfrancibal
Subject[Csnd] some amplitude problems
Hi all,
i don't know why but with this simple csd i have always same message about 1
sample out of range
and always glitches on attack (and strange amp messages!).
i have try with 0bdfs = 1 and amp = .25 or no 0dbfs and amp = 10000, but it
seems always the same. Please tell me if i'm wrong somethings (i'm really
tired and maybe i made somethings stupid in csd).
(i'm on windows and, sure, 5.11)

Thanks,
ciao,
fran.






sr = 48000
ksmps = 1
nchnls = 2
0dbfs = 1.0

instr 1

iamp		= p4
kenv		linseg 0, p3*.2, 1, p3*.8, 1, p3*.1, 0
kbeta		= p6
icfq		= p5
kbw		= icfq*.01
kpan		= p7

a1		noise iamp, kbeta
a2		reson a1, icfq, kbw
a3		reson a2, icfq, kbw
;
a4		dcblock2 a3
a5		balance a4, a1
; pan
aL, aR	pan2 a5*kenv, kpan

outs		aL, aR
endin




i 1  0 3  0.25  800  0.5  0.5
i 1  4 .   .    600  0.5  0.5
i 1  8 .   .   1000  0.5  0.5
i 1 12 .   .   1600  0.5  0.5
e



Date2009-10-05 18:34
FromAndrés
Subject[Csnd] Re: some amplitude problems
Hi,

Haven't tried it, but it may be due to the balance opcode. It first
measures RMS, and since that can't be done instantaneously, there might
be a large peak at the attack before the sound is "balanced".
Try much smaller amplitudes, which should get rid of this. Or if it
serves your purpose, don't use balance and just scale the gain.

Cheers,
Andrés

El lun, 05-10-2009 a las 10:20 -0700, francibal escribió:
> Hi all,
> i don't know why but with this simple csd i have always same message about 1
> sample out of range
> and always glitches on attack (and strange amp messages!).
> i have try with 0bdfs = 1 and amp = .25 or no 0dbfs and amp = 10000, but it
> seems always the same. Please tell me if i'm wrong somethings (i'm really
> tired and maybe i made somethings stupid in csd).
> (i'm on windows and, sure, 5.11)
> 
> Thanks,
> ciao,
> fran.
> 
> 
> 
> 
> 
> 
> sr = 48000
> ksmps = 1
> nchnls = 2
> 0dbfs = 1.0
> 
> instr 1
> 
> iamp		= p4
> kenv		linseg 0, p3*.2, 1, p3*.8, 1, p3*.1, 0
> kbeta		= p6
> icfq		= p5
> kbw		= icfq*.01
> kpan		= p7
> 
> a1		noise iamp, kbeta
> a2		reson a1, icfq, kbw
> a3		reson a2, icfq, kbw
> ;
> a4		dcblock2 a3
> a5		balance a4, a1
> ; pan
> aL, aR	pan2 a5*kenv, kpan
> 
> outs		aL, aR
> endin
> 
> 
> 
> 
> i 1  0 3  0.25  800  0.5  0.5
> i 1  4 .   .    600  0.5  0.5
> i 1  8 .   .   1000  0.5  0.5
> i 1 12 .   .   1600  0.5  0.5
> e
> 
> 
> 
> 



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-10-05 20:02
Fromfrancibal
Subject[Csnd] Re: some amplitude problems
Thank Mr. Andrès,
i've discovered that i'm missing an optional but basilary parameter for
reson opcode (scaling factor)!!!

Again thanks,

ciao,
fran.



Andres Cabrera wrote:
> 
> Hi,
> 
> Haven't tried it, but it may be due to the balance opcode. It first
> measures RMS, and since that can't be done instantaneously, there might
> be a large peak at the attack before the sound is "balanced".
> Try much smaller amplitudes, which should get rid of this. Or if it
> serves your purpose, don't use balance and just scale the gain.
> 
> Cheers,
> Andrés
> 
> El lun, 05-10-2009 a las 10:20 -0700, francibal escribió:
>> Hi all,
>> i don't know why but with this simple csd i have always same message
>> about 1
>> sample out of range
>> and always glitches on attack (and strange amp messages!).
>> i have try with 0bdfs = 1 and amp = .25 or no 0dbfs and amp = 10000, but
>> it
>> seems always the same. Please tell me if i'm wrong somethings (i'm really
>> tired and maybe i made somethings stupid in csd).
>> (i'm on windows and, sure, 5.11)
>> 
>> Thanks,
>> ciao,
>> fran.
>> 
>> 
>> 
>> 
>> 
>> 
>> sr = 48000
>> ksmps = 1
>> nchnls = 2
>> 0dbfs = 1.0
>> 
>> instr 1
>> 
>> iamp		= p4
>> kenv		linseg 0, p3*.2, 1, p3*.8, 1, p3*.1, 0
>> kbeta		= p6
>> icfq		= p5
>> kbw		= icfq*.01
>> kpan		= p7
>> 
>> a1		noise iamp, kbeta
>> a2		reson a1, icfq, kbw
>> a3		reson a2, icfq, kbw
>> ;
>> a4		dcblock2 a3
>> a5		balance a4, a1
>> ; pan
>> aL, aR	pan2 a5*kenv, kpan
>> 
>> outs		aL, aR
>> endin
>> 
>> 
>> 
>> 
>> i 1  0 3  0.25  800  0.5  0.5
>> i 1  4 .   .    600  0.5  0.5
>> i 1  8 .   .   1000  0.5  0.5
>> i 1 12 .   .   1600  0.5  0.5
>> e
>> 
>> 
>> 
>> 
> 
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 
> 

-- 
View this message in context: http://www.nabble.com/some-amplitude-problems-tp25754733p25755933.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-10-05 20:04
Fromfrancibal
Subject[Csnd] Re: some amplitude problems
Thank Mr. Andrès,
i've discovered that i'm missing an optional but basilary parameter for
reson opcode (scaling factor)!!!

Again thanks,

ciao,
fran.



Andres Cabrera wrote:
> 
> Hi,
> 
> Haven't tried it, but it may be due to the balance opcode. It first
> measures RMS, and since that can't be done instantaneously, there might
> be a large peak at the attack before the sound is "balanced".
> Try much smaller amplitudes, which should get rid of this. Or if it
> serves your purpose, don't use balance and just scale the gain.
> 
> Cheers,
> Andrés
> 
> El lun, 05-10-2009 a las 10:20 -0700, francibal escribió:
>> Hi all,
>> i don't know why but with this simple csd i have always same message
>> about 1
>> sample out of range
>> and always glitches on attack (and strange amp messages!).
>> i have try with 0bdfs = 1 and amp = .25 or no 0dbfs and amp = 10000, but
>> it
>> seems always the same. Please tell me if i'm wrong somethings (i'm really
>> tired and maybe i made somethings stupid in csd).
>> (i'm on windows and, sure, 5.11)
>> 
>> Thanks,
>> ciao,
>> fran.
>> 
>> 
>> 
>> 
>> 
>> 
>> sr = 48000
>> ksmps = 1
>> nchnls = 2
>> 0dbfs = 1.0
>> 
>> instr 1
>> 
>> iamp		= p4
>> kenv		linseg 0, p3*.2, 1, p3*.8, 1, p3*.1, 0
>> kbeta		= p6
>> icfq		= p5
>> kbw		= icfq*.01
>> kpan		= p7
>> 
>> a1		noise iamp, kbeta
>> a2		reson a1, icfq, kbw
>> a3		reson a2, icfq, kbw
>> ;
>> a4		dcblock2 a3
>> a5		balance a4, a1
>> ; pan
>> aL, aR	pan2 a5*kenv, kpan
>> 
>> outs		aL, aR
>> endin
>> 
>> 
>> 
>> 
>> i 1  0 3  0.25  800  0.5  0.5
>> i 1  4 .   .    600  0.5  0.5
>> i 1  8 .   .   1000  0.5  0.5
>> i 1 12 .   .   1600  0.5  0.5
>> e
>> 
>> 
>> 
>> 
> 
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 
> 

-- 
View this message in context: http://www.nabble.com/some-amplitude-problems-tp25754733p25755934.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-10-05 20:06
Fromfrancibal
Subject[Csnd] Re: some amplitude problems
Thanks Mr. Andrès,
i've discover that i'm missing an optional parameters (scaling factor) for
reson opcode!

Again thanks and ciao,

fran.


Andres Cabrera wrote:
> 
> Hi,
> 
> Haven't tried it, but it may be due to the balance opcode. It first
> measures RMS, and since that can't be done instantaneously, there might
> be a large peak at the attack before the sound is "balanced".
> Try much smaller amplitudes, which should get rid of this. Or if it
> serves your purpose, don't use balance and just scale the gain.
> 
> Cheers,
> Andrés
> 
> El lun, 05-10-2009 a las 10:20 -0700, francibal escribió:
>> Hi all,
>> i don't know why but with this simple csd i have always same message
>> about 1
>> sample out of range
>> and always glitches on attack (and strange amp messages!).
>> i have try with 0bdfs = 1 and amp = .25 or no 0dbfs and amp = 10000, but
>> it
>> seems always the same. Please tell me if i'm wrong somethings (i'm really
>> tired and maybe i made somethings stupid in csd).
>> (i'm on windows and, sure, 5.11)
>> 
>> Thanks,
>> ciao,
>> fran.
>> 
>> 
>> 
>> 
>> 
>> 
>> sr = 48000
>> ksmps = 1
>> nchnls = 2
>> 0dbfs = 1.0
>> 
>> instr 1
>> 
>> iamp		= p4
>> kenv		linseg 0, p3*.2, 1, p3*.8, 1, p3*.1, 0
>> kbeta		= p6
>> icfq		= p5
>> kbw		= icfq*.01
>> kpan		= p7
>> 
>> a1		noise iamp, kbeta
>> a2		reson a1, icfq, kbw
>> a3		reson a2, icfq, kbw
>> ;
>> a4		dcblock2 a3
>> a5		balance a4, a1
>> ; pan
>> aL, aR	pan2 a5*kenv, kpan
>> 
>> outs		aL, aR
>> endin
>> 
>> 
>> 
>> 
>> i 1  0 3  0.25  800  0.5  0.5
>> i 1  4 .   .    600  0.5  0.5
>> i 1  8 .   .   1000  0.5  0.5
>> i 1 12 .   .   1600  0.5  0.5
>> e
>> 
>> 
>> 
>> 
> 
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 
> 

-- 
View this message in context: http://www.nabble.com/some-amplitude-problems-tp25754733p25755936.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-10-05 20:09
Fromfrancibal
Subject[Csnd] Re: some amplitude problems
Thanks Mr. Andrès,
i've discover that i'm missing an optional parameters (scaling factor) for
reson opcode!

Again thanks and ciao,

fran.


Andres Cabrera wrote:
> 
> Hi,
> 
> Haven't tried it, but it may be due to the balance opcode. It first
> measures RMS, and since that can't be done instantaneously, there might
> be a large peak at the attack before the sound is "balanced".
> Try much smaller amplitudes, which should get rid of this. Or if it
> serves your purpose, don't use balance and just scale the gain.
> 
> Cheers,
> Andrés
> 
> El lun, 05-10-2009 a las 10:20 -0700, francibal escribió:
>> Hi all,
>> i don't know why but with this simple csd i have always same message
>> about 1
>> sample out of range
>> and always glitches on attack (and strange amp messages!).
>> i have try with 0bdfs = 1 and amp = .25 or no 0dbfs and amp = 10000, but
>> it
>> seems always the same. Please tell me if i'm wrong somethings (i'm really
>> tired and maybe i made somethings stupid in csd).
>> (i'm on windows and, sure, 5.11)
>> 
>> Thanks,
>> ciao,
>> fran.
>> 
>> 
>> 
>> 
>> 
>> 
>> sr = 48000
>> ksmps = 1
>> nchnls = 2
>> 0dbfs = 1.0
>> 
>> instr 1
>> 
>> iamp		= p4
>> kenv		linseg 0, p3*.2, 1, p3*.8, 1, p3*.1, 0
>> kbeta		= p6
>> icfq		= p5
>> kbw		= icfq*.01
>> kpan		= p7
>> 
>> a1		noise iamp, kbeta
>> a2		reson a1, icfq, kbw
>> a3		reson a2, icfq, kbw
>> ;
>> a4		dcblock2 a3
>> a5		balance a4, a1
>> ; pan
>> aL, aR	pan2 a5*kenv, kpan
>> 
>> outs		aL, aR
>> endin
>> 
>> 
>> 
>> 
>> i 1  0 3  0.25  800  0.5  0.5
>> i 1  4 .   .    600  0.5  0.5
>> i 1  8 .   .   1000  0.5  0.5
>> i 1 12 .   .   1600  0.5  0.5
>> e
>> 
>> 
>> 
>> 
> 
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 
> 

-- 
View this message in context: http://www.nabble.com/some-amplitude-problems-tp25754733p25755939.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"