dfhagai
HD
Hi,
I have this loop:
And I'm trying to shortcut it to:
But there's a syntax error because of the two consecutive [ ][ ]...
I guess I should do an iterative macro somehow but I can't figure the syntax out...
Any help would be greatly appreciated!
HD
I have this loop:
Code:
for i:= 0 to 31
step_bars_0[i] := preset[418 + i]
step_bars_1[i] := preset[418 + 32 + i]
step_bars_2[i] := preset[418 + 32 * 2 + i]
step_bars_3[i] := preset[418 + 32 * 3 + i]
step_bars_4[i] := preset[418 + 32 * 4 + i]
step_bars_5[i] := preset[418 + 32 * 5 + i]
step_bars_6[i] := preset[418 + 32 * 6 + i]
step_bars_7[i] := preset[418 + 32 * 7 + i]
step_bars_8[i] := preset[418 + 32 * 8 + i]
step_bars_9[i] := preset[418 + 32 * 9 + i]
step_bars_10[i] := preset[418 + 32 * 10 + i]
step_bars_11[i] := preset[418 + 32 * 11 + i]
step_bars_12[i] := preset[418 + 32 * 12 + i]
step_bars_13[i] := preset[418 + 32 * 13 + i]
step_bars_14[i] := preset[418 + 32 * 14 + i]
step_bars_15[i] := preset[418 + 32 * 15 + i]
end for
And I'm trying to shortcut it to:
Code:
for i:= 0 to NUM_SLOTS - 1
for j:= 0 to 31
step_bars_[i][j] := preset[418 + 32 * i + j]
end for
end for
But there's a syntax error because of the two consecutive [ ][ ]...
I guess I should do an iterative macro somehow but I can't figure the syntax out...
Any help would be greatly appreciated!
HD