Csound Csound-dev Csound-tekno Search About

Linsegs

Date1998-05-23 16:15
Fromdavid first
SubjectLinsegs
Hello Everybody -

I am totally stumped by the situation below. I am trying to create a simple
extended tone that moves through various glissandi over its length. I seem to
have hit some type of barrier, however. Example1 runs fine. Example2 - which
includes just one more segment - will not run. I don't get an error message,
the perf just quits. As an experiment (to see if the limit was about the
amount of characters), I created example3. This too runs fine. So it's about
something else. Is there an ultimate limit to the number of segments in
linseg? Some of you may recall a similar problem I was having a couple of
months ago. At that time I was getting error messages regarding argspace. This
was remedied (as a couple of people suggested) through the addition of a large
amount of semi-colons to my orc. So that's not the problem either. Sorry if
this is long, but it seemed the best way to clearly demonstrate the situation. 

I'm running v3.47 PPC (Mills version) w/Cecilia (though I don't imagine that's
part of the issue).

Thanks for any and all suggestions,

d1st

--------------------------------------------------------------------------------------
sr = 44100
kr = 4410
ksmps = 10
nchnls = 2

instr 2 ;example1 (runs fine)

kamp1 linseg p4, p3, p4
kamp2 linseg p4*0, p3, p4*0
kcps linseg p5*6/5, p3*3/512, p5*6/5, p3*1/512,
p5*4/3,p3*3/512,p5*4/3,p3*1/512, p5*6/5, p3*3/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512, p5*9/8, p3*1/512, p5*6/5, p3*3/512,p5*6/5, p3*1/512, p5*4/3,
p3*3/512, p5*4/3, p3*1/512, p5*6/5, p3*3/512, p5*6/5, p3*1/512,
p5*9/8,p3*3/512, p5*9/8, p3*1/512, p5*6/5, p3*3/512, p5*6/5, p3*1/512, p5*4/3,
p3*3/512, p5*4/3, p3*1/512,p5*6/5, p3*3/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512, p5*9/8, p3*1/512, p5*6/5, p3*3/512, p5*6/5,p3*1/512, p5*4/3,
p3*3/512, p5*4/3, p3*1/512, p5*6/5, p3*3/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512,p5*9/8, p3*1/512, p5*4/3, p3*3/512, p5*4/3, p3*1/512,p5*6/5,
p3*7/512, p5*6/5, p3*1/512, p5*9/8,p3*3/512, p5*9/8, p3*1/512, p5*4/3,
p3*3/512, p5*4/3, p3*1/512, p5*6/5, p3*7/512, p5*6/5, p3*1/512,p5*9/8,
p3*3/512, p5*9/8, p3*1/512, p5*6/5, p3*15/512,p5*6/5, p3*1/512, p5*6/5,
p3*3/512, p5*6/5,p3*1/512, p5*4/3, p3*3/512, p5*4/3, p3*1/512,
p5*6/5,p3*3/512, p5*6/5, p3*1/512, p5*9/8, p3*3/512,p5*9/8, p3*1/512, p5*6/5,
p3*3/512, p5*6/5, p3*1/512,p5*4/3, p3*3/512, p5*4/3, p3*1/512,
p5*6/5,p3*3/512, p5*6/5, p3*1/512, p5*9/8, p3*3/512, p5*9/8,p3*1/512, p5*6/5,
p3*3/512, p5*6/5, p3*1/512,p5*4/3, p3*3/512, p5*4/3, p3*1/512, p5*6/5,
p3*3/512,p5*6/5, p3*1/512, p5*9/8, p3*3/512, p5*9/8,p3*1/512, p5*6/5,
p3*3/512, p5*6/5, p3*1/512, p5*4/3,p3*3/512, p5*4/3, p3*1/512, p5*6/5,
p3*3/512,p5*6/5, p3*1/512, p5*9/8, p3*3/512, p5*9/8, p3*1/512,p5*4/3,
p3*3/512, p5*4/3, p3*1/512, p5*6/5,p3*7/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512, p5*9/8,p3*1/512, p5*4/3, p3*3/512, p5*4/3,p3*1/512, p5*6/5,
p3*7/512, p5*6/5, p3*1/512, p5*9/8, p3*3/512, p5*9/8, p3*1/512,p5*4/3,
p3*3/512,p5*4/3, p3*1/512, p5*6/5, p3*7/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512, p5*9/8,p3*1/512, p5*4/3,p3*3/512, p5*4/3, p3*1/512, p5*6/5,
p3*7/512, p5*6/5, p3*1/512,p5*9/8,p3*3/512, p5*9/8,p3*1/512,p5*4/3

aout1  oscil  kamp1, kcps, 1
aout2  oscil  kamp2, kcps, 1
	outs 	aout1, aout2
														endin
-------------------------------
											
instr 2 ;example2 (stops the perf)

kamp1 linseg p4, p3, p4
kamp2 linseg p4*0, p3, p4*0
kcps linseg p5*6/5, p3*3/512, p5*6/5, p3*1/512,
p5*4/3,p3*3/512,p5*4/3,p3*1/512, p5*6/5, p3*3/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512, p5*9/8, p3*1/512, p5*6/5, p3*3/512,p5*6/5, p3*1/512, p5*4/3,
p3*3/512, p5*4/3, p3*1/512, p5*6/5, p3*3/512, p5*6/5, p3*1/512,
p5*9/8,p3*3/512, p5*9/8, p3*1/512, p5*6/5, p3*3/512, p5*6/5, p3*1/512, p5*4/3,
p3*3/512, p5*4/3, p3*1/512,p5*6/5, p3*3/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512, p5*9/8, p3*1/512, p5*6/5, p3*3/512, p5*6/5,p3*1/512, p5*4/3,
p3*3/512, p5*4/3, p3*1/512, p5*6/5, p3*3/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512,p5*9/8, p3*1/512, p5*4/3, p3*3/512, p5*4/3, p3*1/512,p5*6/5,
p3*7/512, p5*6/5, p3*1/512, p5*9/8,p3*3/512, p5*9/8, p3*1/512, p5*4/3,
p3*3/512, p5*4/3, p3*1/512, p5*6/5, p3*7/512, p5*6/5, p3*1/512,p5*9/8,
p3*3/512, p5*9/8, p3*1/512, p5*6/5, p3*15/512,p5*6/5, p3*1/512, p5*6/5,
p3*3/512, p5*6/5,p3*1/512, p5*4/3, p3*3/512, p5*4/3, p3*1/512,
p5*6/5,p3*3/512, p5*6/5, p3*1/512, p5*9/8, p3*3/512,p5*9/8, p3*1/512, p5*6/5,
p3*3/512, p5*6/5, p3*1/512,p5*4/3, p3*3/512, p5*4/3, p3*1/512,
p5*6/5,p3*3/512, p5*6/5, p3*1/512, p5*9/8, p3*3/512, p5*9/8,p3*1/512, p5*6/5,
p3*3/512, p5*6/5, p3*1/512,p5*4/3, p3*3/512, p5*4/3, p3*1/512, p5*6/5,
p3*3/512,p5*6/5, p3*1/512, p5*9/8, p3*3/512, p5*9/8,p3*1/512, p5*6/5,
p3*3/512, p5*6/5, p3*1/512, p5*4/3,p3*3/512, p5*4/3, p3*1/512, p5*6/5,
p3*3/512,p5*6/5, p3*1/512, p5*9/8, p3*3/512, p5*9/8, p3*1/512,p5*4/3,
p3*3/512, p5*4/3, p3*1/512, p5*6/5,p3*7/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512, p5*9/8,p3*1/512, p5*4/3, p3*3/512, p5*4/3,p3*1/512, p5*6/5,
p3*7/512, p5*6/5, p3*1/512, p5*9/8, p3*3/512, p5*9/8, p3*1/512,p5*4/3,
p3*3/512,p5*4/3, p3*1/512, p5*6/5, p3*7/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512, p5*9/8,p3*1/512, p5*4/3,p3*3/512, p5*4/3, p3*1/512, p5*6/5,
p3*7/512, p5*6/5, p3*1/512,p5*9/8,p3*3/512, p5*9/8,p3*1/512,p5*4/3,p3*3/512,p5*4/3

aout1  oscil  kamp1, kcps, 1
aout2  oscil  kamp2, kcps, 1
	outs 	aout1, aout2
		
endin
----------------------------------
instr 2 ;example3 (also runs fine)
 
kamp1 linseg p4, p3, p4
kamp2 linseg p4*0, p3, p4*0
kcps linseg p5*6/5, p3*3/512, p5*6/5, p3*1/512,
p5*4/3,p3*3/512,p5*4/3,p3*1/512, p5*6/5, p3*3/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512, p5*9/8, p3*1/512, p5*6/5, p3*3/512,p5*6/5, p3*1/512, p5*4/3,
p3*3/512, p5*4/3, p3*1/512, p5*6/5, p3*3/512, p5*6/5, p3*1/512,
p5*9/8,p3*3/512, p5*9/8, p3*1/512, p5*6/5, p3*3/512, p5*6/5, p3*1/512, p5*4/3,
p3*3/512, p5*4/3, p3*1/512,p5*6/5, p3*3/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512, p5*9/8, p3*1/512, p5*6/5, p3*3/512, p5*6/5,p3*1/512, p5*4/3,
p3*3/512, p5*4/3, p3*1/512, p5*6/5, p3*3/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512,p5*9/8, p3*1/512, p5*4/3, p3*3/512, p5*4/3, p3*1/512,p5*6/5,
p3*7/512, p5*6/5, p3*1/512, p5*9/8,p3*3/512, p5*9/8, p3*1/512, p5*4/3,
p3*3/512, p5*4/3, p3*1/512, p5*6/5, p3*7/512, p5*6/5, p3*1/512,p5*9/8,
p3*3/512, p5*9/8, p3*1/512, p5*6/5, p3*15/512,p5*6/5, p3*1/512, p5*6/5,
p3*3/512, p5*6/5,p3*1/512, p5*4/3, p3*3/512, p5*4/3, p3*1/512,
p5*6/5,p3*3/512, p5*6/5, p3*1/512, p5*9/8, p3*3/512,p5*9/8, p3*1/512, p5*6/5,
p3*3/512, p5*6/5, p3*1/512,p5*4/3, p3*3/512, p5*4/3, p3*1/512,
p5*6/5,p3*3/512, p5*6/5, p3*1/512, p5*9/8, p3*3/512, p5*9/8,p3*1/512, p5*6/5,
p3*3/512, p5*6/5, p3*1/512,p5*4/3, p3*3/512, p5*4/3, p3*1/512, p5*6/5,
p3*3/512,p5*6/5, p3*1/512, p5*9/8, p3*3/512, p5*9/8,p3*1/512, p5*6/5,
p3*3/512, p5*6/5, p3*1/512, p5*4/3,p3*3/512, p5*4/3, p3*1/512, p5*6/5,
p3*3/512,p5*6/5, p3*1/512, p5*9/8, p3*3/512, p5*9/8, p3*1/512,p5*4/3,
p3*3/512, p5*4/3, p3*1/512, p5*6/5,p3*7/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512, p5*9/8,p3*1/512, p5*4/3, p3*3/512, p5*4/3,p3*1/512, p5*6/5,
p3*7/512, p5*6/5, p3*1/512, p5*9/8, p3*3/512, p5*9/8, p3*1/512,p5*4/3,
p3*3/512,p5*4/3, p3*1/512, p5*6/5, p3*7/512, p5*6/5, p3*1/512, p5*9/8,
p3*3/512, p5*9/8,p3*1/512, p5*4/3,p3*3/512, p5*4/3, p3*1/512, p5*6/5,
p3*7/512, p5*6/5, p3*1/512,p5*9/8,p3*3/512, p5*9/8,p3*1/512,p5*400000000/300000000

aout1  oscil  kamp1, kcps, 1
aout2  oscil  kamp2, kcps, 1
	outs 	aout1, aout2
													endin
-----------------------------------------------------------------	
f1  0  8192  10  1 .5 .333 .25 .20 .1667	
t 0 100
	
i2   0   512   10000   195.5556