Csound Csound-dev Csound-tekno Search About

clips not sought

Date1997-04-14 20:55
Fromdoug cross
Subjectclips not sought
i've been working with this file for a while now and i can't figure why
it is that i am getting clips after each playing of "anysound".(my
example file is 5.555 seconds in duration. something to do with the
bandwidth maybe? The score is abbreviated for the sake of example.

any ideas or suggestions would be welcome.

;===============orc
        sr = 44100
        kr = 4410
        ksmps = 10
        nchnls = 2

instr 17

          iq      =       p7    ;bandwidth
        icf1    =       250     ;centre freq
        icf2    =       375
        icf3    =       562
        icf4    =       843
        icf5    =       1265
        icf6    =       1898
        icf7    =       2847
        icf8    =       4271

        ipan     =      p5
        imodrise =   p3/3
        imodec   =    p3/3  
        igain    =              p6
;-------------------------------------------------        
aenv            oscil           igain,1/p3,2
 
asigm,  asign soundin           "anysound.aiff", p4  ; duration is 5.555
sec
asigm = asigm*aenv
asign = asign*aenv  
;-------------------------------------------------         
        asigm1  reson   asigm,icf1,icf1/iq,1
        asigm2  reson   asigm,icf2,icf2/iq,1  
        asigm3  reson   asigm,icf3,icf3/iq,1       
        asigm4  reson   asigm,icf4,icf4/iq,1       
        asigm5  reson   asigm,icf5,icf5/iq,1      
        asigm6  reson   asigm,icf6,icf6/iq,1      
        asigm7  reson   asigm,icf7,icf7/iq,1 
        asigm8  reson   asigm,icf8,icf8/iq,1
        
        asign1  reson   asign,icf1,icf1/iq,1
        asign2  reson   asign,icf2,icf2/iq,1  
        asign3  reson   asign,icf3,icf3/iq,1       
        asign4  reson   asign,icf4,icf4/iq,1       
        asign5  reson   asign,icf5,icf5/iq,1      
        asign6  reson   asign,icf6,icf6/iq,1      
        asign7  reson   asign,icf7,icf7/iq,1 
        asign8  reson   asign,icf8,icf8/iq,1
        
        asigl  =
(asign1+asign2+asign3+asign4+asign5+asign6+asign7+asign8)
        asigr  =
(asigm1+asigm2+asigm3+asigm4+asigm5+asigm6+asigm7+asigm8)
         
        asigl   = asigl*igain
        asigr   = asigr*igain 

        outs    asigl*ipan, asigr*(ipan-1)
endin
;====================== sco
f2 0 8193 8 0 4096 1 4096 0

;in st          dur             skip            pan             gain   
iq
i17     0               2.55537 0               0.5            
7               900     
i17     0.77            2.5542  0.029299        0.499   7              
988.802 
i17     1.63            2.5529  0.062022        0.498   7              
1088.1  
i17     2.48            2.5516  0.094365        0.402   7              
1186.2  
i17     3.04            2.55075 0.115674        0.401   7              
1250.8  
i17     3.78            2.54963 0.143831        0.4            
7               1336.2  
i17     4.56            2.54844 0.17351 0.399   7               1426.2  
i17     5.36            2.54722 0.203951        0.399   7              
1518.5  
i17     6.03            2.54621 0.229445        0.398   7              
1595.8  
i17     6.9             2.54488 0.262548        0.301   7              
1696.2  
i17     7.46            2.54403 0.283857        0.301   7              
1760.8  
i17     8.33            2.54271 0.316961        0.3            
7               1861.2  
i17     9.05            2.54161 0.344357        0.301   7              
1944.2  
e
;etc
thanks 
doug


Date1997-04-16 22:34
FromMike Berry
SubjectRe: clips not sought
	You are getting amplification (possibly even self-oscillation) in
the resons.  You need to consider using balance or some other method to
constrain the outputs (other than the obvious clipping restraint).  The
other possiblility to to compute in floats and then scale it
appropriately.

Mike Berry
mikeb@mills.edu
http://www.mills.edu/PEOPLE/gr.pages/mikeb.public.html/mikeb.homepage.html