Csound Csound-dev Csound-tekno Search About

[Cs-dev] how to use arrays in udos?

Date2013-07-16 14:26
Fromjoachim heintz
Subject[Cs-dev] how to use arrays in udos?
hi -

are there anywhere information about how to use arrays in udos? i tried 
a less-than-basic example, but i get this (csd below):

INIT ERROR in instr 1: hu: invalid local ksmps value: 0
kVal	hu	kArr	
	  B  0.000 - note deleted.  i1 had 1 init errors

so either i have not understood something very basic, or something is 
not working.

thanks -

	joachim




-n



   opcode hu, k, k[]
kArr[] xin
xout kArr[0]
   endop

instr 1
kArr[] fillarray 1, 2, 3
kVal hu kArr
printk2 kVal
turnoff
endin



i 1 0 1



------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-07-16 16:28
FromVictor Lazzarini
SubjectRe: [Cs-dev] how to use arrays in udos?
Looks like a bug to me. It used to work before the changes in the arg specification.
On 16 Jul 2013, at 14:26, joachim heintz wrote:

> hi -
> 
> are there anywhere information about how to use arrays in udos? i tried 
> a less-than-basic example, but i get this (csd below):
> 
> INIT ERROR in instr 1: hu: invalid local ksmps value: 0
> kVal	hu	kArr	
> 	  B  0.000 - note deleted.  i1 had 1 init errors
> 
> so either i have not understood something very basic, or something is 
> not working.
> 
> thanks -
> 
> 	joachim
> 
> 
> 
> 
> -n
> 
> 
> 
>   opcode hu, k, k[]
> kArr[] xin
> xout kArr[0]
>   endop
> 
> instr 1
> kArr[] fillarray 1, 2, 3
> kVal hu kArr
> printk2 kVal
> turnoff
> endin
> 
> 
> 
> i 1 0 1
> 
> 
> 
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-07-16 21:50
FromVictor Lazzarini
SubjectRe: [Cs-dev] how to use arrays in udos?
OK, that was a bug and it's fixed now. Your example works.

Note that at the moment only  k[] and i[] are implemented.

Victor

On 16 Jul 2013, at 14:26, joachim heintz wrote:

> hi -
> 
> are there anywhere information about how to use arrays in udos? i tried 
> a less-than-basic example, but i get this (csd below):
> 
> INIT ERROR in instr 1: hu: invalid local ksmps value: 0
> kVal	hu	kArr	
> 	  B  0.000 - note deleted.  i1 had 1 init errors
> 
> so either i have not understood something very basic, or something is 
> not working.
> 
> thanks -
> 
> 	joachim
> 
> 
> 
> 
> -n
> 
> 
> 
>   opcode hu, k, k[]
> kArr[] xin
> xout kArr[0]
>   endop
> 
> instr 1
> kArr[] fillarray 1, 2, 3
> kVal hu kArr
> printk2 kVal
> turnoff
> endin
> 
> 
> 
> i 1 0 1
> 
> 
> 
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-07-16 22:50
Fromjoachim heintz
SubjectRe: [Cs-dev] how to use arrays in udos?
thanks, victor. i am suprised about i[] -- i thought the new arrays are 
k-rate only?
actually i would be very happy about i-arrays, because i think they can 
be very useful in many situations.
best -
	joachim


Am 16.07.2013 22:50, schrieb Victor Lazzarini:
> OK, that was a bug and it's fixed now. Your example works.
>
> Note that at the moment only  k[] and i[] are implemented.
>
> Victor
>
> On 16 Jul 2013, at 14:26, joachim heintz wrote:
>
>> hi -
>>
>> are there anywhere information about how to use arrays in udos? i tried
>> a less-than-basic example, but i get this (csd below):
>>
>> INIT ERROR in instr 1: hu: invalid local ksmps value: 0
>> kVal	hu	kArr	
>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>>
>> so either i have not understood something very basic, or something is
>> not working.
>>
>> thanks -
>>
>> 	joachim
>>
>>
>> 
>> 
>> -n
>> 
>> 
>>
>>    opcode hu, k, k[]
>> kArr[] xin
>> xout kArr[0]
>>    endop
>>
>> instr 1
>> kArr[] fillarray 1, 2, 3
>> kVal hu kArr
>> printk2 kVal
>> turnoff
>> endin
>>
>> 
>> 
>> i 1 0 1
>> 
>> 
>>
>> ------------------------------------------------------------------------------
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-07-16 23:13
FromVictor Lazzarini
SubjectRe: [Cs-dev] how to use arrays in udos?
Well, eventually, we'll support all types of arrays.
On 16 Jul 2013, at 22:50, joachim heintz wrote:

> thanks, victor. i am suprised about i[] -- i thought the new arrays are 
> k-rate only?
> actually i would be very happy about i-arrays, because i think they can 
> be very useful in many situations.
> best -
> 	joachim
> 
> 
> Am 16.07.2013 22:50, schrieb Victor Lazzarini:
>> OK, that was a bug and it's fixed now. Your example works.
>> 
>> Note that at the moment only  k[] and i[] are implemented.
>> 
>> Victor
>> 
>> On 16 Jul 2013, at 14:26, joachim heintz wrote:
>> 
>>> hi -
>>> 
>>> are there anywhere information about how to use arrays in udos? i tried
>>> a less-than-basic example, but i get this (csd below):
>>> 
>>> INIT ERROR in instr 1: hu: invalid local ksmps value: 0
>>> kVal	hu	kArr	
>>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>>> 
>>> so either i have not understood something very basic, or something is
>>> not working.
>>> 
>>> thanks -
>>> 
>>> 	joachim
>>> 
>>> 
>>> 
>>> 
>>> -n
>>> 
>>> 
>>> 
>>>   opcode hu, k, k[]
>>> kArr[] xin
>>> xout kArr[0]
>>>   endop
>>> 
>>> instr 1
>>> kArr[] fillarray 1, 2, 3
>>> kVal hu kArr
>>> printk2 kVal
>>> turnoff
>>> endin
>>> 
>>> 
>>> 
>>> i 1 0 1
>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> See everything from the browser to the database with AppDynamics
>>> Get end-to-end visibility with application monitoring from AppDynamics
>>> Isolate bottlenecks and diagnose root cause in seconds.
>>> Start your free trial of AppDynamics Pro today!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
> 
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-07-16 23:32
Fromjoachim heintz
SubjectRe: [Cs-dev] how to use arrays in udos?
that's good news.

Am 17.07.2013 00:13, schrieb Victor Lazzarini:
> Well, eventually, we'll support all types of arrays.
> On 16 Jul 2013, at 22:50, joachim heintz wrote:
>
>> thanks, victor. i am suprised about i[] -- i thought the new arrays are
>> k-rate only?
>> actually i would be very happy about i-arrays, because i think they can
>> be very useful in many situations.
>> best -
>> 	joachim
>>
>>
>> Am 16.07.2013 22:50, schrieb Victor Lazzarini:
>>> OK, that was a bug and it's fixed now. Your example works.
>>>
>>> Note that at the moment only  k[] and i[] are implemented.
>>>
>>> Victor
>>>
>>> On 16 Jul 2013, at 14:26, joachim heintz wrote:
>>>
>>>> hi -
>>>>
>>>> are there anywhere information about how to use arrays in udos? i tried
>>>> a less-than-basic example, but i get this (csd below):
>>>>
>>>> INIT ERROR in instr 1: hu: invalid local ksmps value: 0
>>>> kVal	hu	kArr	
>>>> 	  B  0.000 - note deleted.  i1 had 1 init errors
>>>>
>>>> so either i have not understood something very basic, or something is
>>>> not working.
>>>>
>>>> thanks -
>>>>
>>>> 	joachim
>>>>
>>>>
>>>> 
>>>> 
>>>> -n
>>>> 
>>>> 
>>>>
>>>>    opcode hu, k, k[]
>>>> kArr[] xin
>>>> xout kArr[0]
>>>>    endop
>>>>
>>>> instr 1
>>>> kArr[] fillarray 1, 2, 3
>>>> kVal hu kArr
>>>> printk2 kVal
>>>> turnoff
>>>> endin
>>>>
>>>> 
>>>> 
>>>> i 1 0 1
>>>> 
>>>> 
>>>>
>>>> ------------------------------------------------------------------------------
>>>> See everything from the browser to the database with AppDynamics
>>>> Get end-to-end visibility with application monitoring from AppDynamics
>>>> Isolate bottlenecks and diagnose root cause in seconds.
>>>> Start your free trial of AppDynamics Pro today!
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> See everything from the browser to the database with AppDynamics
>>> Get end-to-end visibility with application monitoring from AppDynamics
>>> Isolate bottlenecks and diagnose root cause in seconds.
>>> Start your free trial of AppDynamics Pro today!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> See everything from the browser to the database with AppDynamics
>> Get end-to-end visibility with application monitoring from AppDynamics
>> Isolate bottlenecks and diagnose root cause in seconds.
>> Start your free trial of AppDynamics Pro today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net