Build array

Official support for: loomer.co.uk
User avatar
gentleclockdivider
KVRAF
3217 posts since 22 Mar, 2009 from gent

Post Fri Aug 21, 2020 8:26 am

Can we have some examples on how to use build arrays
What's wrong with the following example ?
Image
Image
This message does my head , array can not contain elements of different type , tuple or integer .
Isn't a tuple always made out of integers , index + value
While in the buid array info box it specifically says : Builds an array of size `length` by writes of 2-tuples (index, val) (or an array of such tuples) to the `write` index.
We need some serious docu about al the programming stuff
Eyeball exchanging
Soul calibrating ..frequencies

User avatar
gentleclockdivider
KVRAF
3217 posts since 22 Mar, 2009 from gent

Post Fri Aug 21, 2020 8:46 am

Adress start from '0' :lol: :tu: , and multiple tuples should be in between [ ]

My next question is , what can the build array do , that a data module can't ?
A build array of length 3 would need the tuples to be in between [] to make an array before going into write , is there some kind of module that automatically wraps them in an array ?

Never mind ,just found out , still a comprhensive documentation would be great
Eyeball exchanging
Soul calibrating ..frequencies

colin@loomer
KVRAF
2175 posts since 25 Aug, 2003 from Bournemouth, UK

Post Fri Aug 21, 2020 9:08 am

Tuples elements can be made of any type, they don't necessarily have to be integers: for example, the tuples used to to create MIDI messages are of the form (string, number, number, ...), such as ("noteon", 60, 10, 1) for a noteon with pitch 60, velocity 10, channel 1.

[build array] allows you to create an array programatically, element by element, whereas with [data] you need to know the entire content up front.
Architect, the modular MIDI toolkit, beta now available for macOS, Windows, and Linux.

Return to “Loomer”