Csound Csound-dev Csound-tekno Search About

Re: scheduling events from the orc

Date1999-02-22 08:44
Fromjpff@maths.bath.ac.uk
SubjectRe: scheduling events from the orc
Message written at 22 Feb 1999 07:19:02 +0000
--- Copy of mail to lwyse@krdl.org.sg ---
In-reply-to: <199902210111.JAA00345@tucana.krdl.org.sg> (message from Lonce
	LaMar Wyse on Sun, 21 Feb 1999 09:11:45 +0800)
References:  <199902210111.JAA00345@tucana.krdl.org.sg>

Lonce,
  I have tried your orchestra, and as far as i can tell the condition
  is never true, so schedwhen is never called.  There is no bug in the
  system wrt that orchestra.
==John ffitch
------------------------------------------------------------------------


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;jpff@maths.bath.ac.uk
;****++++
;**** Last modified: Mon Feb 22 06:58:43 1999
;****----
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


	sr	=	32000
	kr	=	320
	ksmps	=	100
	nchnls	=	1

instr	1
  kphaseold init        1

  kphase    phasor      1
            printk      0, kphase
            printk      0, kphaseold
  if kphase > kphaseold kgoto cont
  ktim      timeinsts    
            schedwhen    0, 2, 0, .2                ;; icall, schedwhen, ...
cont:

  kphaseold =           kphase
endin 

;;;;;;;;;;;;;;;
instr 2
            print       p1, p2, p3, p4
  asig      oscili      8000, 330, 1
            out         asig
endin	
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;






f0 3

f1 0 1024 10 1           ;sinwave

;;;;;;;;;;;;;;;
; Initiate this instrument from the score
;;;;;;;;;;;;;;;
i1 0 2

e