[Csnd] array multiply with k-value
| Date | 2019-02-19 11:57 |
| From | Eduardo Moguillansky |
| Subject | [Csnd] array multiply with k-value |
I would have assumed that this is possible:
instr 1
iA[] fillarray 1, 2, 3, 4
kB[] init 4
kfactor line 1, p3, 2
kB = iA * kfactor
printarray kB
endin
But I get an error
"error: error: opcode '##mul' for expression with arg types i[]k not
found"
Is there a reason why this operation is not defined? I can multiply by
a constant
thanks
eduardo
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 | 2019-02-19 12:07 |
| From | John ff |
| Subject | Re: [Csnd] array multiply with k-value |
It was supposed to be implemented. Will check when I get to the computer. Sent from TypeApp On Feb 19, 2019, 11:58, at 11:58, Eduardo Moguillansky |
| Date | 2019-02-19 12:12 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] array multiply with k-value |
I think only k[]*k/i/c is implemented, but it might be just an OENTRY that is needed. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 19 Feb 2019, at 12:07, John ff |
| Date | 2019-02-19 14:16 |
| From | john |
| Subject | Re: [Csnd] array multiply with k-value |
Maybe fixed in github
On Tue, 19 Feb 2019, Eduardo Moguillansky wrote:
> I would have assumed that this is possible:
>
> instr 1
> iA[] fillarray 1, 2, 3, 4
> kB[] init 4
> kfactor line 1, p3, 2
> kB = iA * kfactor
> printarray kB
> endin
>
> But I get an error
> "error: error: opcode '##mul' for expression with arg types i[]k not found"
>
> Is there a reason why this operation is not defined? I can multiply by a
> constant
>
> thanks
> eduardo
>
> 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 | 2019-02-20 16:06 |
| From | Eduardo Moguillansky |
| Subject | Re: [Csnd] array multiply with k-value |
Thanks! tested and works as expected
On 19.02.19 15:16, john wrote:
> Maybe fixed in github
>
>
> On Tue, 19 Feb 2019, Eduardo Moguillansky wrote:
>
>> I would have assumed that this is possible:
>>
>> instr 1
>> iA[] fillarray 1, 2, 3, 4
>> kB[] init 4
>> kfactor line 1, p3, 2
>> kB = iA * kfactor
>> printarray kB
>> endin
>>
>> But I get an error
>> "error: error: opcode '##mul' for expression with arg types i[]k not
>> found"
>>
>> Is there a reason why this operation is not defined? I can multiply
>> by a constant
>>
>> thanks
>> eduardo
>>
>> 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 |