I think it could be a handy feature once we have parameter injection to have some syntax that can use an index to pick a single value from a subdivision.
For example writing
[[a b a b] [a a b b] [c c c c]]($index)
Would let you pick one of the three steps to output with an $index parameter, this could allow for both more human controlled playback or more complex procedural logic while still making use of the notation.
The syntax could either be like the above where a single value inside parens joined to a subdivision would mean this, or reusing the % sign like [a b c d]%$index.
In general this would be handy even without variable inputs like
that would generate a, b, c, a, a, a, c over time, essentially allowing you to reuse/rearrange any step patterns this way.
In terms of indexing, it might be nice to be able to use both normal values and integers, the integer index access would start from 1 and wrap around, but if you supply a value under 1, you could access the entire array with the float mapped to whatever length of the array is, so [a b c]%3 would output c but [a b c]%0.5 would output b etc.
Being able to take a ranged slice instead of a single element would also be nice but this alone seems useful as well.
I think it could be a handy feature once we have parameter injection to have some syntax that can use an index to pick a single value from a subdivision.
For example writing
Would let you pick one of the three steps to output with an
$indexparameter, this could allow for both more human controlled playback or more complex procedural logic while still making use of the notation.The syntax could either be like the above where a single value inside parens joined to a subdivision would mean this, or reusing the
%sign like[a b c d]%$index.In general this would be handy even without variable inputs like
that would generate
a, b, c, a, a, a, cover time, essentially allowing you to reuse/rearrange any step patterns this way.In terms of indexing, it might be nice to be able to use both normal values and integers, the integer index access would start from
1and wrap around, but if you supply a value under 1, you could access the entire array with the float mapped to whatever length of the array is, so[a b c]%3would outputcbut[a b c]%0.5would outputbetc.Being able to take a ranged slice instead of a single element would also be nice but this alone seems useful as well.