Csound Csound-dev Csound-tekno Search About

Long Tone Problem

Date1998-03-30 19:20
Fromdavid first
SubjectLong Tone Problem
Hi to All -

I've been trying to build a simple set of sustained tones that move through
various timed glissandi stages (see enclosed files). I keep getting a fatal
error message stating "low on ARGSPACE". Apparently my linsegs are too long.
Am I up against a wall? If so, can anyone see a more elegant way to achieve
this? Am I missing something obvious?

Thanks

David F. 


;ORC
sr = 44100
kr = 4410
ksmps = 10
nchnls = 2
	
	instr 1 
kamp1 linseg p4, p3, p4
kamp2 linseg p4*0, p3, p4*0
kcps     linseg p5, p3*7/64, p5, p3*1/64, p5*9/10, p3*7/64, p5*9/10, p3*1/64,
p5, p3*7/64, p5, p3*1/64, p5*9/10, p3*7/64, p5*9/10, p3*1/64, p5, p3*7/64, p5,
p3*1/64, p5*9/10, p3*7/64, p5*9/10, p3*1/64, p5, p3*7/64, p5, p3*1/64,
p5*9/10, p3*7/64, p5*9/10, p3*1/64, p5
aout1  oscil  kamp1, kcps, 1
aout2  oscil  kamp2, kcps, 1
	outs 	aout1, aout2
	endin
														
	instr 2
kamp1 linseg p4, p3, p4
kamp2 linseg p4*0, p3, p4*0
kcps     linseg p5*6/5, p3*3/64, p5*6/5, p3*1/64, p5*4/3, p3*3/64, p5*4/3,
p3*1/64, p5*6/5, p3*3/64, p5*6/5, p3*1/64, p5*9/8, p3*3/64, p5*9/8, p3*1/64,
p5*6/5, p3*3/64, p5*6/5, p3*1/64, p5*4/3, p3*3/64, p5*4/3, p3*1/64, p5*6/5,
p3*3/64, p5*6/5, p3*1/64, p5*9/8, p3*3/64, p5*9/8, p3*1/64, p5*6/5, p3*3/64,
p5*6/5, p3*3/64, p5*6/5, p3*1/64, p5*4/3, p3*3/64, p5*4/3, p3*1/64, p5*6/5,
p3*3/64, p5*6/5, p3*1/64, p5*9/8, p3*3/64, p5*9/8, p3*1/64, p5*6/5, p3*3/64,
p5*6/5, p3*1/64, p5*4/3, p3*3/64, p5*4/3, p3*1/64, p5*6/5, p3*3/64, p5*6/5,
p3*1/64, p5*9/8, p3*3/64, p5*9/8, p3*1/64, p5*6/5, p3*3/64, p5*6/5
aout1  oscil  kamp2, kcps, 1
aout2  oscil  kamp1, kcps, 1
	outs 	aout1, aout2
	endin

	instr 3
kamp1 linseg p4, p3, p4
kamp2 linseg p4*0, p3, p4*0
kcps     linseg p5*3/2, p3*3/64, p5*3/2, p3*1/64, p5*5/3, p3*3/64, p5*5/3,
p3*1/64, p5*3/2, p3*3/64, p5*3/2, p3*1/64, p5*3/2, p3*3/64, p5*3/2, p3*1/64,
p5*3/2, p3*3/64, p5*3/2, p3*1/64, p5*5/3, p3*3/64, p5*5/3, p3*1/64, p5*3/2,
p3*3/64, p5*3/2, p3*1/64, p5*3/2, p3*3/64, p5*3/2, p3*1/64, p5*3/2, p3*3/64, p5*3/2
aout1  oscil  kamp1, kcps, 1
aout2  oscil  kamp2, kcps, 1
	outs 	aout1, aout2
	endin
														
---------------------------------------------------------------------------------------
;SCO
f1 0 8192 10 1 .5 .3333 .25 .2 .1667  
t 0 25
 ;inst    start   dur   ampl             freq   
  i1            0       16       3000      174.6141    
  i2            0       16       3000      174.6141               
  i3            0       16       3000      174.6141     
 
 
e

Date1998-03-31 00:44
Fromtolve
SubjectRe: Long Tone Problem
try removing carriage returns from linseg.

tolve

david f. wrote:
>Hi to All -
>
>I've been trying to build a simple set of sustained tones that move through
>various timed glissandi stages (see enclosed files). I keep getting a fatal
>error message stating "low on ARGSPACE". Apparently my linsegs are too long.
>Am I up against a wall? If so, can anyone see a more elegant way to achieve
>this? Am I missing something obvious?
>
>Thanks
>
>David F.
>
>
>;ORC
>sr = 44100
>kr = 4410
>ksmps = 10
>nchnls = 2
>
>	instr 1
>kamp1 linseg p4, p3, p4
>kamp2 linseg p4*0, p3, p4*0
>kcps     linseg p5, p3*7/64, p5, p3*1/64, p5*9/10, p3*7/64, p5*9/10, p3*1/64,
>p5, p3*7/64, p5, p3*1/64, p5*9/10, p3*7/64, p5*9/10, p3*1/64, p5, p3*7/64, p5,
>p3*1/64, p5*9/10, p3*7/64, p5*9/10, p3*1/64, p5, p3*7/64, p5, p3*1/64,
>p5*9/10, p3*7/64, p5*9/10, p3*1/64, p5
>aout1  oscil  kamp1, kcps, 1
>aout2  oscil  kamp2, kcps, 1
>	outs 	aout1, aout2
>	endin
>
>
>	instr 2
>kamp1 linseg p4, p3, p4
>kamp2 linseg p4*0, p3, p4*0
>kcps     linseg p5*6/5, p3*3/64, p5*6/5, p3*1/64, p5*4/3, p3*3/64, p5*4/3,
>p3*1/64, p5*6/5, p3*3/64, p5*6/5, p3*1/64, p5*9/8, p3*3/64, p5*9/8, p3*1/64,
>p5*6/5, p3*3/64, p5*6/5, p3*1/64, p5*4/3, p3*3/64, p5*4/3, p3*1/64, p5*6/5,
>p3*3/64, p5*6/5, p3*1/64, p5*9/8, p3*3/64, p5*9/8, p3*1/64, p5*6/5, p3*3/64,
>p5*6/5, p3*3/64, p5*6/5, p3*1/64, p5*4/3, p3*3/64, p5*4/3, p3*1/64, p5*6/5,
>p3*3/64, p5*6/5, p3*1/64, p5*9/8, p3*3/64, p5*9/8, p3*1/64, p5*6/5, p3*3/64,
>p5*6/5, p3*1/64, p5*4/3, p3*3/64, p5*4/3, p3*1/64, p5*6/5, p3*3/64, p5*6/5,
>p3*1/64, p5*9/8, p3*3/64, p5*9/8, p3*1/64, p5*6/5, p3*3/64, p5*6/5
>aout1  oscil  kamp2, kcps, 1
>aout2  oscil  kamp1, kcps, 1
>	outs 	aout1, aout2
>	endin
>
>	instr 3
>kamp1 linseg p4, p3, p4
>kamp2 linseg p4*0, p3, p4*0
>kcps     linseg p5*3/2, p3*3/64, p5*3/2, p3*1/64, p5*5/3, p3*3/64, p5*5/3,
>p3*1/64, p5*3/2, p3*3/64, p5*3/2, p3*1/64, p5*3/2, p3*3/64, p5*3/2, p3*1/64,
>p5*3/2, p3*3/64, p5*3/2, p3*1/64, p5*5/3, p3*3/64, p5*5/3, p3*1/64, p5*3/2,
>p3*3/64, p5*3/2, p3*1/64, p5*3/2, p3*3/64, p5*3/2, p3*1/64, p5*3/2,
>p3*3/64, p5*3/2
>aout1  oscil  kamp1, kcps, 1
>aout2  oscil  kamp2, kcps, 1
>	outs 	aout1, aout2
>	endin
>
>
>-------------------------------------------------------------------------------
>--------
>;SCO
>f1 0 8192 10 1 .5 .3333 .25 .2 .1667
>t 0 25
> ;inst    start   dur   ampl             freq
>  i1            0       16       3000      174.6141
>  i2            0       16       3000      174.6141
>  i3            0       16       3000      174.6141
>
>
>e