Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Can string variables really be k-rate?

Date2008-01-26 16:34
Fromvictor
Subject[Csnd] Re: Can string variables really be k-rate?
I think they can only be modified once. We've been through
this before, haven't we?
----- Original Message ----- 
From: "Rory Walsh" 
To: 
Sent: Saturday, January 26, 2008 2:49 PM
Subject: [Csnd] Can string variables really be k-rate?


> The manual states that string variables can be manipulated at 
> initialisation or performance time. So why won't the following code work 
> for me? It runs but keeps spitting out the same thing each time, am I 
> missing something?
>
> instr 1
> k1 line 1, p3, p3
> Sname = "number";
> Sres sprintfk "%s:%2.1f\n", Sname, k1
> printks Sres, 0
> endin
>
> Rory.
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2008-01-26 18:15
FromRory Walsh
Subject[Csnd] Re: Re: Can string variables really be k-rate?
We've been through it before alright but I couldn't find any reference 
to it in my mail archive. Should the manual be changed or is it easy to 
make them k-rate? I can't even seem to modify them once. The example 
below will not budge from number:0.0

Rory.




victor wrote:
> I think they can only be modified once. We've been through
> this before, haven't we?
> ----- Original Message ----- From: "Rory Walsh" 
> To: 
> Sent: Saturday, January 26, 2008 2:49 PM
> Subject: [Csnd] Can string variables really be k-rate?
> 
> 
>> The manual states that string variables can be manipulated at 
>> initialisation or performance time. So why won't the following code 
>> work for me? It runs but keeps spitting out the same thing each time, 
>> am I missing something?
>>
>> instr 1
>> k1 line 1, p3, p3
>> Sname = "number:"
>> Sres sprintfk "%s:%2.1f\n", Sname, k1
>> printks Sres, 0
>> endin
>>
>> Rory.
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> "unsubscribe csound" 
> 
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
>