2008/11/22 Stephen Sugden
<glurgle@gmail.com>
Is it possible to mix both types of array keys?
Yes... or at least it *should* be.... ;¬)
The code I below works fine until I try to access any elements of the array, then I get an ArrayOutofBounds exception.
I corrected the lack of a type for "melodies".
Then I had a hard time with it, as it turns out that this;
[ 0, 2, 4, 5, 7, 9, 11, 12 ] @=> int melodies[0];
crashes ChucK. That's a bug, and it's good that we accidentally found it but kindly try to avoid such confusion by making sure the code you send works as you described.
Right, on to the business at hand;
<<< scales["just"][0] >>>;