Is it possible to mix both types of array keys? The code I below works fine until I try to access any elements of the array, then I get an ArrayOutofBounds exception. The snippet is pretty short and I would hope it's self evident what I'm trying do with it.<br>
<br>float scales[0][0][0];<br><br>[ 0, 2, 4, 5, 7, 9, 11, 12 ] @=> melodies[0];<br><br>[ [1.0, 1.0], [16.0, 15.0], [9.0, 8.0], [6.0, 5.0], [5.0, 4.0], <br> [4.0, 3.0], [7.0,5.0], [3.0, 2.0], [8.0,5.0], [5.0, 3.0], <br>
[7.0, 4.0], [15.0, 8.0], [2.0, 1.0]<br>] @=> scales["just"];<br><br><br>float et[13][2];<br>for(0 => int i; i <= 12; ++i){<br> 1.0 => et[i][0];<br> Math.pow(2.0, i / 12.0) => et[i][1];<br>}<br>
<br>et @=> scales["equalTempered"];<br><br><<< scales["just"][0] >>>;<br><br><br>