ARRAY || Get index value??
-
How do I get a value of an index in an array? Is that even possible?
I just realized I could use a hidden slider for values but is what I asked possible?
-
@Chazrox myArray[index]
-
const myArray = [10, 20, 30, 40, 50]; Console.print(myArray.indexOf(20)); // 1 Console.print(myArray[2]); // 30 Console.print(myArray.contains(50)); // true
Looks like Greg got there first :)
-
-
@d-healey said in ARRAY || Get index value??:
Looks like Greg got there first :)
true
, but with no comparable answer -
@d-healey How would you go about changing a value of a given index based on a combobox value?
in your example,
How would I change myArray[1] = 20 to myArray[1] = 32? -
-
@d-healey lol !!
ok so you have to see this then....
its on a different thread....
https://forum.hise.audio/topic/12880/chord-player-inversions-help-with-indexing