Csound Csound-dev Csound-tekno Search About

Re: FOF

Date1997-12-27 02:24
FromRoger King
SubjectRe: FOF
The "FOF needs more overlaps" error refers to the iolaps in the FOF line:

ar fof  xamp,xfund,xform,koct,kband,kris,kdur,kdec,IOLAPS,ifna,ifnb,itotdur

There is alot of data that has to have lots of temporary storage space.
If you're getting this error, try increasing the number of iolaps. Don't
be affraid to try numbers that seem rediculously large.  

At 08:49 PM 12/26/97 +0000, you (Ricardo NILLNI) wrote:
>When I get perf error: "FOF needs more overlaps" Csound is lock up,the
>computer freeze and I must restart. 

In the example .orc code below, the fof iolap value has been set at 57.
This .orc file was created algorithmically by a program I wrote that
generates .orc files.  The value "57" worked when I compiled, but may
not be enough for other's systems.  Try to compile the .orc and .sco
and see if 57 is a big enough value. The fun is in the journey...

;------------- cut paste compile edit compile listen ---
;recursively constructed quartet
sr = 44100
kr = 4410
ksmps = 10
nchnls = 2

instr          1 

kamp1 line  p5, p3, 0
kamp2 line  p5*0.35,p3,0
kamp3 envlpx p5, 0.02, p3/2, 0.03,3,1,.01,-0.5

a1 pluck  kamp1, cpspch(p4), cpspch(p4)*.95,7,1
a2  fof kamp2,cpspch(p4),50,0,.4,.003,.02,.007,57,1,3,p3

;a3 loscil 1, cpspch(p4), 11, 440, 0

outs a1,a2

endin

instr          2 

kamp1 line  p5, p3, 0
kamp2 line  p5*0.35,p3,0
kamp3 envlpx p5, 0.02, p3/2, 0.03,3,1,.01,-0.5

a1 pluck  kamp1, cpspch(p4), cpspch(p4)*1.05,7,2,3
a2 oscil kamp2, cpspch(p4), 1

;a3 loscil 1, cpspch(p4), 11, 440, 0

outs a2,a1

endin

instr          3 

kamp1 line  p5, p3, 0
kamp2 line  p5*0.35,p3,0
kamp3 envlpx p5, 0.02, p3/2, 0.03,3,1,.01,-0.5

a1 pluck  kamp1, cpspch(p4), cpspch(p4)*.95,8,2,3
a2 oscil kamp2, cpspch(p4), 1

;a3 loscil 1, cpspch(p4), 11, 440, 0

outs a1,a2

endin

instr          4 

kamp1 line  p5, p3, 0
kamp2 line  p5*0.35,p3,0
kamp3 envlpx p5, 0.02, p3/2, 0.03,3,1,.01,-0.5

a1 pluck  kamp1, cpspch(p4), cpspch(p4)*1.05,1,2,3
a2 oscil kamp2, cpspch(p4), 1

;a3 loscil 1, cpspch(p4), 11, 440, 0

outs a2,a1

endin

; .sco file code for testing the quartet
;------- algorithmic furniture music ---------------
; Sine Wave
f1 0 512 10 10 6 3 5 3 5 4 3 1 2 1
; Ramp
f2 0 513  7 0 512 0 
; Exponential Rise Shape
f3 0 513  5 .001 512 1
; Quarter Sine in 8192 Locations + Guard Point
f4 0 8193  9 0.25 1 0 
; Quarter Cosine Wave
f5 0 8193  9 0.25 1 90 
; Triangle Wave
f6 0 512  10 1 0 .111 0 .04 0 .02 0 .012
; Sawtooth Wave
f7 0 512  10 1 .5  .3  .25 .2  .167 .14 .125 .111
; Square Wave
f8 0 512  10 1  0  .3  0  .2  0  .14  0  .111
; Narrow Pulse Wave
f9 0 512  10 1  1  1  1  .7  .5  .3  .1 
; Exponential Rise and Decay
f10 0 513  5 .1   32   1   480   .01 
; loscil    
;f11  0  0  -1  c:\csound\a.wav  0  4  0
t  0          35
   
i1 1.5    1.5    6  0 
i1 0.5    1.5    6  8000 
i1 0.75   1.25   6  8000 
i1  3     6      5  9000 
i1  1.67  2.33   5  8000 
i1   3.67 1.33   5  8000 
i1  4.94  1.06   5  8000 
i1  5.5   1.5    6  9000 
i1  5   3     6     8000 
i1  6   3     5     8000 
i1  8   2     5     8000 
i1  7   4     5     9000 
i1 10   2     6     8000 
i2 2.33 2.33  7.11  8000         

i2 6    1.06  7.04  8000         

i2 1    1     7.07  8000         

i2 1.67 1.33  7.02  9000         

i2 2.25 1.75  7.11  8000         

i2 2.67 2.33  6.1   8000         

i2 3.67 2.33  6.07  8000         

i2 5.25 1.75  7.05  9000         

i2 5    3     7.06  8000         

i2 3    6     6.09  8000         

i2 6    4     7.1   8000         

i2 5    6     7.1   9000         

i3 8    8     7.02  8000         

i3 0.75 1.75  8     8000         

i3 0.75 1.25  7.04  8000         

i3 1    4     8.04  9000         

i3 1    3     7.11  8000         

i3 3.94 1.06  8     8000         

i3 4.67 1.33  7.02  8000         

i3 5.67 1.33  7.04  9000         

i3 0    8     8.07  8000         

i3 7.5  1.5   7     8000         

i3 8.88 1.12  7.11  8000         

i3 8    3     8.05  9000         

i4 1.33 1.33  8.1   8000         

i4 6    1.06  8.07  8000         

i4 6    8     8     8000         

i4 1.25 1.75  9.02  9000         

i4 2.75 1.25  8.1   8000         

i4 3    8     9.09  8000         

i4 4    2     9     8000         

i4 4    3     9.11  9000         

i4 5.67 2.33  9.06  8000         

i4 6    3     9.06  8000         

i4 4    6     9.07  8000         

i4 8.67 2.33  9     9000         

i4 9    3     9.11  8000