I was looking at Noise Engineering - Variatic Eruption manual and it gave me some ideas of things i wanted to try with my teletype. But although i understand the basis of teletype language i am far from being a math guy…

So here are the things i want to do :

1 - Convert decimal numbers to binary 2 - Create a pattern ( of 1 and 0 … ) from a binary number in the tracker

@martinmestres that’s a really cool idea. You could effectively make each pattern step an entire pattern of gates. Might need some additional string or array features in the language though.

so let’s say X holds your value, then you could do something like this (i don’t have access to tt right now so this might need some tweaking):

P.PUSH MOD X 2
X DIV X 2

this will need to be executed N times where N is the number of steps, so you could either do it in M script or put it in a trigger script and loop that. the limitation is 15 bits though, since numbers are treated as signed int, so the max value is 32767 which gives you 15 bits.

So i’m not sure about how to write the entire “BINARY PATTERN” ( in P.N 1 ) from my decimal ( in P.N 0 ) in One TRIG. I’m thinking about something like that:

[quote]P.N 0 X P.HERE P.N 1 P.I 0 L 0 63 : P.PUSH X LSH 1 I [/quote]

AND is bitwise Operation.
Any bits A and B only translate to 1 if both are 1.
You have your X in bit representation and a bitmask of 1 (0000000000000001) which you shift towards the left and therefore always gives you the next position in the bit representation of X.

This thread is so promising !!!
Let’s get crazy…how to do this in base 4, so you generate patterns of 0/1/2/3, allowing you to trigger the 4 trig outputs ? imagine the rhythm sequences…