Keys are gonna be based on semitones, which you preface with ‘N’ in your script so:
CV 4 N 7
would give you the fifth from your root (G if your sound source is tuned to C) on CV 4.
I’ve found the easiest way to work with multiple patterns simultaneously is to use the PN ops every time you want to call a pattern, so:
CV 4 N PN.NEXT X
where x is some number 0 - 3 OR actually just the variable X which stores a number 0 - 3. This will give you the value stored on the next step of the pattern, converted to semitones.
here’s a little table describing semitones that you should be able to use as a key for inputting any scale in the tracker:
Root - 0
Minor Second - 1
Major Second - 2
Minor Third - 3
Major Third - 4
Fourth - 5
Tritone - 6
Fifth - 7
Minor Sixth - 8
Major Sixth - 9
Minor Seventh - 10
Major Seventh - 11
Octave - 12
Add or subtract from these values if your root is something other than C, and just add 12 whenever you want a different octave.
So if you’re wanting G Minor (and your source is tuned to C):
7
9
10
12
14
15
17
This is all in the studies (linked above), which will really save you a ton of time.
Remember that, unless you’re doing some kind of complex weighted probability thing, there’s not much of a point in deliberately tuning TT to modes, since modes are just rotations of the natural scales (in fact, unless you’re doing something really eccentric like augmented or non-repeating scales, you almost certainly want to stick to major scales and just push things around by an octave up or down to get the quality you’re looking for, which is a better exercise for your ear anyway).
One fun trick is to scale your param knob 0 - 3 and set X equal to param, then put four different sequences in the tracker and use the knob to switch between them. Better yet scale your INPUT from 0 - 3 and set X equal to your input, then plug in an LFO and let that switch for you!
Another is to put 0 in the tracker when you want rests (just make sure the actual semitones are in a different range) and use
IF PN.NEXT X: TR.PULSE 4
CV 4 N PN.HERE X
this will give you a note only on the non-0 parts of a pattern, and is a good way to get both rhythm and melody from just one pattern (although, there are a million ways).