change k-array to i-array and vice versa?
| Date | 2017-07-21 19:23 |
| From | joachim heintz |
| Subject | change k-array to i-array and vice versa? |
we have i(kval) and k(ival) for numbers,
and we have strcpyk for strings.
is there a way that i could change a k-array to an i-array and vice versa?
thanks -
joachim
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |
| Date | 2017-07-21 19:48 |
| From | jpff |
| Subject | Re: change k-array to i-array and vice versa? |
do you want a copy made, or the same object? Aggregate things are not like
single values
On Fri, 21 Jul 2017, joachim heintz wrote:
> we have i(kval) and k(ival) for numbers,
> and we have strcpyk for strings.
>
> is there a way that i could change a k-array to an i-array and vice versa?
>
> thanks -
> joachim
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |
| Date | 2017-07-21 20:05 |
| From | joachim heintz |
| Subject | Re: change k-array to i-array and vice versa? |
i mean a copy, like
kArr[] fillarray 1, 2, 3, 4, 5
iArr[] fillarray 6, 7, 8, 9, 0
and then either
iArr = kArr ;copy kArr at i-time to iArr
or
kArr = iArr ;copy iArr during performance to kArr
currently the = operator does only work for same type, like
iArr1[] fillarray 1, 2, 3, 4, 5
iArr2[] fillarray 6, 7, 8, 9, 0
iArr2 = iArr1
On 21/07/17 20:48, jpff wrote:
> do you want a copy made, or the same object? Aggregate things are not
> like single values
>
>
> On Fri, 21 Jul 2017, joachim heintz wrote:
>
>> we have i(kval) and k(ival) for numbers,
>> and we have strcpyk for strings.
>>
>> is there a way that i could change a k-array to an i-array and vice
>> versa?
>>
>> thanks -
>> joachim
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>> https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |
| Date | 2017-07-21 21:23 |
| From | jpff |
| Subject | Re: change k-array to i-array and vice versa? |
I ave a version that does this but i think it opes up more bugs
i[] = k[]
is OK ad safe, but the other is not. Will think about it.....string arras....etc
On Fri, 21 Jul 2017, joachim heintz wrote:
> i mean a copy, like
>
> kArr[] fillarray 1, 2, 3, 4, 5
> iArr[] fillarray 6, 7, 8, 9, 0
> and then either
> iArr = kArr ;copy kArr at i-time to iArr
> or
> kArr = iArr ;copy iArr during performance to kArr
>
> currently the = operator does only work for same type, like
> iArr1[] fillarray 1, 2, 3, 4, 5
> iArr2[] fillarray 6, 7, 8, 9, 0
> iArr2 = iArr1
>
>
>
> On 21/07/17 20:48, jpff wrote:
>> do you want a copy made, or the same object? Aggregate things are not
>> like single values
>>
>>
>> On Fri, 21 Jul 2017, joachim heintz wrote:
>>
>>> we have i(kval) and k(ival) for numbers,
>>> and we have strcpyk for strings.
>>>
>>> is there a way that i could change a k-array to an i-array and vice
>>> versa?
>>>
>>> thanks -
>>> joachim
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>> https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>> https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |