Csound Csound-dev Csound-tekno Search About

[Cs-dev] k-rate = for strings?

Date2014-04-08 19:35
FromRory Walsh
Subject[Cs-dev] k-rate = for strings?
Strings are basically init-rate but can be modified at k-rate using
special opcodes, is this correct?? Not being able to use '=' at k-rate
for strings is a little frustrating. To change a string at k-rate it
would be nice to be able to do this:

String = "hello"

instead one has to do

String sprintfk "%s", "hello"

I guess there is no way around this?

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-08 19:51
FromVictor Lazzarini
SubjectRe: [Cs-dev] k-rate = for strings?
But there’s strcpyk for assignment at k-rate:

S1 strcpyk  S2

The difference between strcpy and assignment is that the first copies the contents, while the second
just points the lhs variable memory to the rhs variable memory.


Victor
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 8 Apr 2014, at 19:35, Rory Walsh  wrote:

> Strings are basically init-rate but can be modified at k-rate using
> special opcodes, is this correct?? Not being able to use '=' at k-rate
> for strings is a little frustrating. To change a string at k-rate it
> would be nice to be able to do this:
> 
> String = "hello"
> 
> instead one has to do
> 
> String sprintfk "%s", "hello"
> 
> I guess there is no way around this?
> 
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment 
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-08 19:53
FromRory Walsh
SubjectRe: [Cs-dev] k-rate = for strings?
Argghh! I knew I was missing something..

On 8 April 2014 19:51, Victor Lazzarini  wrote:
> But there's strcpyk for assignment at k-rate:
>
> S1 strcpyk  S2
>
> The difference between strcpy and assignment is that the first copies the contents, while the second
> just points the lhs variable memory to the rhs variable memory.
>
>
> Victor
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 8 Apr 2014, at 19:35, Rory Walsh  wrote:
>
>> Strings are basically init-rate but can be modified at k-rate using
>> special opcodes, is this correct?? Not being able to use '=' at k-rate
>> for strings is a little frustrating. To change a string at k-rate it
>> would be nice to be able to do this:
>>
>> String = "hello"
>>
>> instead one has to do
>>
>> String sprintfk "%s", "hello"
>>
>> I guess there is no way around this?
>>
>> ------------------------------------------------------------------------------
>> Put Bad Developers to Shame
>> Dominate Development with Jenkins Continuous Integration
>> Continuously Automate Build, Test & Deployment
>> Start a new project now. Try Jenkins in the cloud.
>> http://p.sf.net/sfu/13600_Cloudbees
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net