Separating out notes and patterning

I'm a programmer but new to Tidal, exciting stuff. Trying to learn how to wrap my head around the modeling.

I have this nice bit of code that is sort of a melody with a chord progression

d1 
    $ note (scale "minor" "<[0 2 4] [2 4 7] [2 4 7] [0 2 4]>" + (scale "minor" "<0 4 3 3>") + "g3") 
    # s "superpiano"

Now what I'd like to do is to be able to separately encode the pattern of how those trios notes are used, like [0 1 2 0 1 2 0 1 2 2]

I can sort of do this with fit', but what I'm running into is that most of my <> patterns above are lost. There's something I'm not understanding about how the pattern system works and how I can modify it. Help much appreciated!

d1 
    $ fit' 1 3 (run 3) "[0 1 2 0 1 2 0 1 2 2]"
    $ note (scale "minor" "<[0 2 4] [2 4 7] [2 4 7] [0 2 4]>" + (scale "minor" "<0 4 3 3>") + "g3") 
    # s "superpiano"

This is ultimately more or less what I wanted to achieve, without some of the nicer shorthand

d1 $ note (scale "minor" "<[0 2 4 7 9 11 0 2 4 7 9 11 0 2 4 0 2 4 4] [2 4 7 9 11 14 2 4 7 9 11 14 2 4 7 7] [2 4 7 9 11 14 2 4 7 9 11 14 2 4 7 7] [0 2 4 7 9 11 0 2 4 7 9 11 0 2 4 0 2 4 4]>" + (scale "minor" "<0 4 3 3>") + "g3") 
    # s "superpiano"

I was hoping to be able to simply define the trios of notes, and separate out the patterning via something like fit'. I did want the nice effect of raising some of them by an octave, I can achieve that by

d1
    $ fast 5.0
    $ (|-| note 12)
    $ every' 2 1 (|+| note 12)
    $ repeatCycles 2
    $ note (scale "minor" "<[0 2 4] [2 4 7] [2 4 7] [0 2 4]>" + (scale "minor" "<0 4 3 3>") + "g3")
    # s "supersaw"

Maybe it's not possible to bring that all together but I appreciate at least learning these different pieces and thinking about how I can use these tools in the future

d1 
    $ bite 3 "0 1 2 0 1 2 0 1 2 0 1 2 2"
    $ note (scale "minor" "<[0 2 4] [2 4 7] [2 4 7] [0 2 4]>" + (scale "minor" "<0 4 3 3>") + "g3") 
    # s "superpiano"

bite works for this, i hear all the right notes, but the pattern is off, all of the notes in the bite pattern don't get equal weight for some reason

This is something I've invested some time in ... I haven't played all your patterns yet, but it would be helpful if you could break down what you're looking to do to the simplest possible example(s). Eg maintaining just a simple pattern of notes rather than adding the extra scale and chord variations.

I'm unsure what you mean by "equal weight" here - I can hear all the events are equal length, gain etc