It’s on my todo list. In fact it’s probably the main reason I started my various rewrites of the teletype code, I find entering scales into patterns quite tedious. The syntax might end up being too esoteric for common use, so it’s possible I’ll just keep them in my own branch. I not sure if they’ll fit your use case though.
It’ll really be a set of inline array functions (for example)…
#4.L 3 7 9 10 T // would take the Tth item from the first 4 values looped (nice for arps)
#7.S 0 2 3 5 7 9 10 X // make a (western) scale from the first 7 values, take Xth value
#7.Q 0 2 3 5 7 9 10 Y // make a scale form the first 7 values, find the nearest to Y (i.e. quantise Y to the scale)
The common format being a #, then the size of the array, then the function name. On technical level it will be a bit of a hack, essentially I’d create an op for each array size (e.g. #1.L, #2.L, #2.L, etc) with some C macros to ease repetition.
I’m also planning on writing up a tutorial on how to write your own ops, most likely in the form of creating your own tables, the example will probably be a table of primes or the Fibonacci sequence.