Csound Csound-dev Csound-tekno Search About

Power operator still doesn't work in all cases

Date1999-09-07 17:09
FromGabriel Maldonado
SubjectPower operator still doesn't work in all cases
Dear jpff,
try to run csound 3.58 with this orc/sco:
sr	=	44100
kr 	= 	441
ksmps 	= 	100
nchnls	=	2

	instr	1
a1	linseg	0,p3/2,1,p3/2,0
a2	=	a1 ^ p4 ;******* causes an error
	outs	a1*10000,a2*10000
	endin

;*****SCO

i1 0 1  2
i1 + . .5
i1 + . .1
i1 + . 1.5
i1 + . 1
i1 + . .9
i1 + . 1.1
i1 + . .3
i1 + . .4
i1 + . .6
i1 + . .7
i1 + . .8
e
...also it still doesn't work in this case:

	instr	1
a1	linseg	0,p3/2,1,p3/2,0
a3	init	p4
a2	=	a1 ^ a3 ;******* causes an error
	outs	a1*10000,a2*10000
	endin

...but it does work in this case:

	instr	1
a1	linseg	0,p3/2,1,p3/2,0
k3	init	p4
a2	=	a1 ^ k3 ;******* works!
	outs	a1*10000,a2*10000
	endin




-- 
Gabriel Maldonado

http://web.tiscalinet.it/G-Maldonado/home2.htm