Hello everyone,
i was wondering if there is no version of lenarray for i-Arrays?
I need this right now and i search for a solution.
Greetings,
Philipp
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here
Jeanette_C
(Jeanette C.)
2
Hi Philipp,
lenarray will work with i-arrays:
instr Play
iArr[] init 8
iLen = lenarray:i(iArr)
prints("\niArr has %d elements.", iLen)
endin
It worked for me.
Best wishes,
Jeanette
Of course there is; there has always been.
array:i[] fillarray 1,2,3
print lenarray(array)
Prof. Victor Lazzarini
Maynooth University
Ireland
Thanks all! my fault! I did a stupid mistake in my .csd and the manual only mentions k-arrays.
rory
(Rory Walsh)
5
lenarray works for both i and k rate arrays?
https://csound.com/docs/manual/lenarray.html
i and k outputs, you can take the length of any array type.
I think the manual page can be improved.
Prof. Victor Lazzarini
Maynooth University
Ireland