Looks like printks can update the % values to the string, but the string itself is only updated once. Oeyvind 2008/1/27, Rory Walsh : > In fact they can be updated during performance as often as you like. > Jonathan provided a working example in the manual which works fine, > updating during performance. In order to get my example running I had to > take out printks and use puts instead. > > instr 1 > k1 line 1, p3, p3 > Sname = "number"; > Sres sprintfk "%s:%2.1f\n", Sname, k1 > puts Sres, k1 > endin > > Just so we're clear this doesn't work(why?): > > instr 1 > k1 line 1, p3, p3 > Sname = "number"; > Sres sprintfk "%s:%2.1f\n", Sname, k1 > printks Sres, 0 > endin > > but this does: > > instr 1 > kup line 0, p3, 100 > kdown line 30, p3, 10 > printks "kup = %f, kdown = %f\\n", 1, kup, kdown > endin > > In one example printks works as expected, in the other example it > doesn't. I'm afraid I'm still no nearer to understanding strings in Csound. > > Rory. > > > > victor wrote: > > The manual is correct, they can be written at performance time, > > but only once. > > > > Victor > > ----- Original Message ----- From: "Rory Walsh" > > To: > > Se > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" >