Csound Csound-dev Csound-tekno Search About

array operation question

Date2015-04-26 13:29
FromGleb
Subjectarray operation question
Please could somebody explain me, why

i1 = 5
k1 linseg 0,p3,1
k2 = i1*k1

is OK, but

iA1[] fillarray 1,2,3,4
k1 linseg 0,p3,1
kA2[] = iA1*k1

is not OK. Csound says k[] = @. I think I understand what it means, but
isn't it a wrong behavior?

Thanks!



-----
Gleb Rogozinsky, PhD
Associated Professor
Interactive Arts Department
Saint-Petersburg University of Film and Television

Deputy Director of Medialab
Saint-Petersburg University of Telecommunications
--
View this message in context: http://csound.1045644.n5.nabble.com/array-operation-question-tp5741201.html
Sent from the Csound - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-04-26 13:42
Fromjoachim heintz
SubjectRe: array operation question
hi gleb -

i think one problem is that you did not initialize the array kA2.  the line
kA2[] = iA1*k1
is not a valid initialization.

best -
	joachim


Am 26.04.2015 um 14:29 schrieb Gleb:
> Please could somebody explain me, why
>
> i1 = 5
> k1 linseg 0,p3,1
> k2 = i1*k1
>
> is OK, but
>
> iA1[] fillarray 1,2,3,4
> k1 linseg 0,p3,1
> kA2[] = iA1*k1
>
> is not OK. Csound says k[] = @. I think I understand what it means, but
> isn't it a wrong behavior?
>
> Thanks!
>
>
>
> -----
> Gleb Rogozinsky, PhD
> Associated Professor
> Interactive Arts Department
> Saint-Petersburg University of Film and Television
>
> Deputy Director of Medialab
> Saint-Petersburg University of Telecommunications
> --
> View this message in context: http://csound.1045644.n5.nabble.com/array-operation-question-tp5741201.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-04-26 13:47
FromGleb
SubjectRe: array operation question
AttachmentsNone  None  
Thank you, Joachim!

So my question transforms to

if we could initialize k-values just like

kNew = 1-kOld

why we cannot do the same with the k-arrays?


2015-04-26 15:44 GMT+03:00 joachim-3 [via Csound] <[hidden email]>:
hi gleb -

i think one problem is that you did not initialize the array kA2.  the line
kA2[] = iA1*k1
is not a valid initialization.

best -
        joachim


Am 26.04.2015 um 14:29 schrieb Gleb:

> Please could somebody explain me, why
>
> i1 = 5
> k1 linseg 0,p3,1
> k2 = i1*k1
>
> is OK, but
>
> iA1[] fillarray 1,2,3,4
> k1 linseg 0,p3,1
> kA2[] = iA1*k1
>
> is not OK. Csound says k[] = @. I think I understand what it means, but
> isn't it a wrong behavior?
>
> Thanks!
>
>
>
> -----
> Gleb Rogozinsky, PhD
> Associated Professor
> Interactive Arts Department
> Saint-Petersburg University of Film and Television
>
> Deputy Director of Medialab
> Saint-Petersburg University of Telecommunications
> --
> View this message in context: http://csound.1045644.n5.nabble.com/array-operation-question-tp5741201.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Csound-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Csound-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



If you reply to this email, your message will be added to the discussion below:
http://csound.1045644.n5.nabble.com/array-operation-question-tp5741201p5741202.html
To unsubscribe from array operation question, click here.
NAML

Gleb Rogozinsky, PhD
Associated Professor
Interactive Arts Department
Saint-Petersburg University of Film and Television

Deputy Director of Medialab
Saint-Petersburg University of Telecommunications


View this message in context: Re: array operation question
Sent from the Csound - General mailing list archive at Nabble.com.