Csound Csound-dev Csound-tekno Search About

[Csnd] Possible bug with tbvcf?

Date2011-07-13 02:48
FromMichael Bechard
Subject[Csnd] Possible bug with tbvcf?
Hi all, below is a simple CSD testing tbvcf, but on my machine (Ubuntu 11.04), I get nothing (4 samples at "inf."). I use Csound version 5.13 (double samples). Does anyone else get the same results? It produces a simple sine wave when I comment out the tbvcf opcode...

Thanks,
Michael Bechard




sr=44100
ksmps=1
nchnls=2

    instr 1
idur = p3
ipitch = cpspch(p4)
iamp = p5

aroot    oscili    iamp, ipitch, 1
aroot    tbvcf    aroot, 1000, .15, 2, .5
outs    aroot, aroot
    endin





f1 0.0 8192 10 1.0

i1 0 2 8.00 15000
e






Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-07-13 04:40
FromJim Aikin
Subject[Csnd] Re: Possible bug with tbvcf?
According to the manual page, input to tbvcf should be normalized to 1.
Unless I was reading too quickly and misunderstood, you're sending it a
signal whose amplitude is 15000.

Try it again with 0dbfs=1 and an iamp of 1, and let us know what happens.

--
View this message in context: http://csound.1045644.n5.nabble.com/Possible-bug-with-tbvcf-tp4581205p4581417.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-07-13 04:51
FromJim Aikin
Subject[Csnd] Re: Possible bug with tbvcf?
This seems to work. The fact that the signal is a sine wave, yet the filter
produces a thick tone, is a bit odd. I got tbvcf to blow up by replacing the
sine oscil with a gbuzz that had even a modest number of harmonics, so a
sine wave it is.

sr = 44100
ksmps = 4
nchnls = 2
0dbfs = 1

instr 1
iSine	ftgen 0, 0, 8192, 10, 1
iamp = 0.5
ifreq = p4
asig	oscil	0.8, ifreq, iSine
ifiltrise = p3 * 0.01
ifiltdecay = p3 * 0.99
kfiltenv	linseg 1500, ifiltrise, 2000, ifiltdecay, 1200
afilt	tbvcf	asig, kfiltenv, 1.7, 2, 0.8

asine	oscil	1, 500, iSine
abal	balance	afilt, asine
aout	linen	abal * iamp, 0.01, p3, 0.1
		outs aout, aout
endin




i1 0 1 200
i1 + . 250
i1 + . 300

--JA

--
View this message in context: http://csound.1045644.n5.nabble.com/Possible-bug-with-tbvcf-tp4581205p4581449.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-07-13 05:51
FromMichael Bechard
SubjectRe: [Csnd] Re: Possible bug with tbvcf?
Gah, stupid mistake! RTFM, eh? Thanks for clearing that up.

Michael Bechard



----- Original Message -----
From: Jim Aikin 
To: csound@lists.bath.ac.uk
Cc: 
Sent: Tuesday, July 12, 2011 10:51 PM
Subject: [Csnd] Re: Possible bug with tbvcf?

This seems to work. The fact that the signal is a sine wave, yet the filter
produces a thick tone, is a bit odd. I got tbvcf to blow up by replacing the
sine oscil with a gbuzz that had even a modest number of harmonics, so a
sine wave it is.

sr = 44100
ksmps = 4
nchnls = 2
0dbfs = 1

instr 1
iSine    ftgen 0, 0, 8192, 10, 1
iamp = 0.5
ifreq = p4
asig    oscil    0.8, ifreq, iSine
ifiltrise = p3 * 0.01
ifiltdecay = p3 * 0.99
kfiltenv    linseg 1500, ifiltrise, 2000, ifiltdecay, 1200
afilt    tbvcf    asig, kfiltenv, 1.7, 2, 0.8

asine    oscil    1, 500, iSine
abal    balance    afilt, asine
aout    linen    abal * iamp, 0.01, p3, 0.1
        outs aout, aout
endin




i1 0 1 200
i1 + . 250
i1 + . 300

--JA

--
View this message in context: http://csound.1045644.n5.nabble.com/Possible-bug-with-tbvcf-tp4581205p4581449.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-07-13 09:36
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Re: Possible bug with tbvcf?
Then surely the code should scale to 0dbfs ??

> According to the manual page, input to tbvcf should be normalized to 1.
> Unless I was reading too quickly and misunderstood, you're sending it a
> signal whose amplitude is 15000.
>
> Try it again with 0dbfs=1 and an iamp of 1, and let us know what happens.
>
> --
> View this message in context:
> http://csound.1045644.n5.nabble.com/Possible-bug-with-tbvcf-tp4581205p4581417.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>
>




Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"