Csound Csound-dev Csound-tekno Search About

bug with line?

Date1999-08-26 17:21
FromGrant Covell
Subjectbug with line?
Hello--

Here's a problem I've seen using PPC 3.56.

The following sco/orc reveals an odd behavior of line that I can't explain.
When this is rendered, klocinc passes 0 and becomes negative for a short
time (Note that example adds 1 to the random number generated by klocinc so
that the timout doesn't overflow or perpetually get closer to 1 w/o reaching
it, but from the print statement you can see that klocinc is negative).

Grant.

===
;; sco

sr 	= 44100
kr 	= 44100
ksmps 	= 1
nchnls 	= 2


instr 9
	idur	= p3
	
	klocinc	init 10
	klocinc	line 10, idur, 0

	isil	unirand	klocinc
	
	core:
		isil	unirand	klocinc
	
		timout	0, isil + 1, do

		reinit 	core
	do:
		print	klocinc, isil

endin

;; orc