Re: [Csnd] [EXTERNAL] [Csnd] Question re: while loop not working

Thanks for the reply Victor.

Ok, that makes sense, however placing the variable inside the loop:
kTime init 0
    while kTime<10 do
      kTime timeinsts
      printk 1, kTime
    od

still freezes Csound the moment Run is initialized. I'll not sure of the solution.

Regards,
Scott

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here

The instrument time is not incrementing as you have not moved from that kcycle.
The loop is inside the k-cycle and timeinsts returns the curent k-cycle time.