Array
-
I have already seen it here and can no longer find it.
The possibility to define and call an array with indefinite length.
E.g. load different number of samples in different folders.
-
@MikeB Hmm... What do you mean by indefinite length? Arrays are resized dynamically so you can load any size of data set at any time...
-
@ustk Now normally I know what the length of the array is.
[0, 1, 2, 3, 4]
here I ask 0-5.
But if I have different folders and in one there are 30 samples in the other there are 24, etc., then I can't use the cursor.
I now want to load these via a combobox
-
@MikeB Still not 100% sure what you want to do but did you see my video about arrays? It might have the answer you need.
-
@d-healey David - I am the one who wakes up in the morning and watches your videos and goes to bed in the evening and watches your videos :-)
Describe it differently.
how do I load with one and the same array
from one folder 10 samples or from the other folder 15 samples? -
@MikeB Do you want to add the 15 to the end of the 10 or do you want to clear out the 10 and add the 15?
-
they are all different samples
so 15 replaces 10, 32 replaces 15 etc.
One folder is Kick with xxx samples
One folder is Snare with xxx samples
etc. All called over one cbm -
Reset the array with
myArray = []
and populate the array using.push()
. Then you don't have to worry about how many elements there are. -
@d-healey Thank you, I will try that