Csound Csound-dev Csound-tekno Search About

[Csnd] Strange waveform?

Date2011-06-28 13:31
Fromobaudouin
Subject[Csnd] Strange waveform?
Hello,

I am using the chebyshevpoly opcode (see below) , and I wonder if my
instrument is acoustically viable. I like the sound, it is great for me, but
the waveform (screenshot) is not spread around zero.

http://csound.1045644.n5.nabble.com/file/n4531610/firsttrack000.png 

1. Is it really a problem?
2. Does a solution exist to solve that?

Thanks!

Olivier.

;=====================================
;paramètres variables de chebyshevpoly
iRmin = -1
iRmax = 1
iFmin = 0.5
iFmax = 1

k1	rspline iRmin, iRmax, iFmin, iFmax
k2	rspline iRmin, iRmax, iFmin, iFmax
k3	rspline iRmin, iRmax, iFmin, iFmax
k4	rspline iRmin, iRmax, iFmin, iFmax
k5	rspline iRmin, iRmax, iFmin, iFmax
k6	rspline iRmin, iRmax, iFmin, iFmax
k7	rspline iRmin, iRmax, iFmin, iFmax
k8	rspline iRmin, iRmax, iFmin, iFmax
k9	rspline iRmin, iRmax, iFmin, iFmax
k10	rspline iRmin, iRmax, iFmin, iFmax
k11	rspline iRmin, iRmax, iFmin, iFmax
k12	rspline iRmin, iRmax, iFmin, iFmax

k1a	rspline iRmin, iRmax, iFmin, iFmax
k2a	rspline iRmin, iRmax, iFmin, iFmax
k3a	rspline iRmin, iRmax, iFmin, iFmax
k4a	rspline iRmin, iRmax, iFmin, iFmax
k5a	rspline iRmin, iRmax, iFmin, iFmax
k6a	rspline iRmin, iRmax, iFmin, iFmax
k7a	rspline iRmin, iRmax, iFmin, iFmax
k8a	rspline iRmin, iRmax, iFmin, iFmax
k9a	rspline iRmin, iRmax, iFmin, iFmax
k10a	rspline iRmin, iRmax, iFmin, iFmax
k11a	rspline iRmin, iRmax, iFmin, iFmax
k12a	rspline iRmin, iRmax, iFmin, iFmax

k1b	rspline iRmin, iRmax, iFmin, iFmax
k2b	rspline iRmin, iRmax, iFmin, iFmax
k3b	rspline iRmin, iRmax, iFmin, iFmax
k4b	rspline iRmin, iRmax, iFmin, iFmax
k5b	rspline iRmin, iRmax, iFmin, iFmax
k6b	rspline iRmin, iRmax, iFmin, iFmax
k7b	rspline iRmin, iRmax, iFmin, iFmax
k8b	rspline iRmin, iRmax, iFmin, iFmax
k9b	rspline iRmin, iRmax, iFmin, iFmax
k10b	rspline iRmin, iRmax, iFmin, iFmax
k11b	rspline iRmin, iRmax, iFmin, iFmax
k12b	rspline iRmin, iRmax, iFmin, iFmax
;=====================================



;=====================================
;génération du matériau sonore initial
acheb_	chebyshevpoly afond, k1, k2, k3, k4, k5, k6, k7, k8, k9, k10, k11,
k12
acheb__	chebyshevpoly acheb_*0.1, k1a, k2a, k3a, k4a, k5a, k6a, k7a, k8a,
k9a, k10a, k11a, k12a
acheb	chebyshevpoly acheb__*0.1, k1b, k2b, k3b, k4b, k5b, k6b, k7b, k8b,
k9b, k10b, k11b, k12b
;=====================================




--
View this message in context: http://csound.1045644.n5.nabble.com/Strange-waveform-tp4531610p4531610.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-06-28 13:41
FromJeff Taylor
SubjectRe: [Csnd] Strange waveform?
Yes, that can be a problem when mixing or sending sounds through non-linear processes.  Try running it through dcblock or dcblock2:

http://www.csounds.com/manual/html/dcblock.html
http://www.csounds.com/manual/html/dcblock2.html

Either of those should get it centered around 0.

--
Electronically,
Jeff Taylor


On Tue, Jun 28, 2011 at 7:31 AM, obaudouin <olivierbaudouin@gmail.com> wrote:
Hello,

I am using the chebyshevpoly opcode (see below) , and I wonder if my
instrument is acoustically viable. I like the sound, it is great for me, but
the waveform (screenshot) is not spread around zero.

http://csound.1045644.n5.nabble.com/file/n4531610/firsttrack000.png

1. Is it really a problem?
2. Does a solution exist to solve that?

Thanks!

Olivier.

;=====================================
;paramètres variables de chebyshevpoly
iRmin = -1
iRmax = 1
iFmin = 0.5
iFmax = 1

k1      rspline iRmin, iRmax, iFmin, iFmax
k2      rspline iRmin, iRmax, iFmin, iFmax
k3      rspline iRmin, iRmax, iFmin, iFmax
k4      rspline iRmin, iRmax, iFmin, iFmax
k5      rspline iRmin, iRmax, iFmin, iFmax
k6      rspline iRmin, iRmax, iFmin, iFmax
k7      rspline iRmin, iRmax, iFmin, iFmax
k8      rspline iRmin, iRmax, iFmin, iFmax
k9      rspline iRmin, iRmax, iFmin, iFmax
k10     rspline iRmin, iRmax, iFmin, iFmax
k11     rspline iRmin, iRmax, iFmin, iFmax
k12     rspline iRmin, iRmax, iFmin, iFmax

k1a     rspline iRmin, iRmax, iFmin, iFmax
k2a     rspline iRmin, iRmax, iFmin, iFmax
k3a     rspline iRmin, iRmax, iFmin, iFmax
k4a     rspline iRmin, iRmax, iFmin, iFmax
k5a     rspline iRmin, iRmax, iFmin, iFmax
k6a     rspline iRmin, iRmax, iFmin, iFmax
k7a     rspline iRmin, iRmax, iFmin, iFmax
k8a     rspline iRmin, iRmax, iFmin, iFmax
k9a     rspline iRmin, iRmax, iFmin, iFmax
k10a    rspline iRmin, iRmax, iFmin, iFmax
k11a    rspline iRmin, iRmax, iFmin, iFmax
k12a    rspline iRmin, iRmax, iFmin, iFmax

k1b     rspline iRmin, iRmax, iFmin, iFmax
k2b     rspline iRmin, iRmax, iFmin, iFmax
k3b     rspline iRmin, iRmax, iFmin, iFmax
k4b     rspline iRmin, iRmax, iFmin, iFmax
k5b     rspline iRmin, iRmax, iFmin, iFmax
k6b     rspline iRmin, iRmax, iFmin, iFmax
k7b     rspline iRmin, iRmax, iFmin, iFmax
k8b     rspline iRmin, iRmax, iFmin, iFmax
k9b     rspline iRmin, iRmax, iFmin, iFmax
k10b    rspline iRmin, iRmax, iFmin, iFmax
k11b    rspline iRmin, iRmax, iFmin, iFmax
k12b    rspline iRmin, iRmax, iFmin, iFmax
;=====================================



;=====================================
;génération du matériau sonore initial
acheb_  chebyshevpoly afond, k1, k2, k3, k4, k5, k6, k7, k8, k9, k10, k11,
k12
acheb__ chebyshevpoly acheb_*0.1, k1a, k2a, k3a, k4a, k5a, k6a, k7a, k8a,
k9a, k10a, k11a, k12a
acheb   chebyshevpoly acheb__*0.1, k1b, k2b, k3b, k4b, k5b, k6b, k7b, k8b,
k9b, k10b, k11b, k12b
;=====================================




--
View this message in context: http://csound.1045644.n5.nabble.com/Strange-waveform-tp4531610p4531610.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-06-28 13:49
Fromobaudouin
Subject[Csnd] Re: Strange waveform?
It works very well with dcblock2. Thank you Jeff!

--
View this message in context: http://csound.1045644.n5.nabble.com/Strange-waveform-tp4531610p4531649.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"