it’s complicated; a midi sequence can contain a ton of info which wouldn’t fit into an Elektron step sequencer. The easiest way is to simply play a midi sequence into the machine and record it, that way the Elektron machine handles the job of what midi to keep and how to interpret it. Really, making a thing which would try and faithfully reproduce a given midi sequence as an Elektron pattern would be 100% waste of time.
The other way around, exporting a midi sequence based on an Elektron machine pattern, is easier. I’ve done it (but haven’t released it), but even this isn’t possible to do perfectly - trig conditions simply cannot be properly encoded in a midi sequence. You can loop a pattern a bunch of times & have conditional trigs do their thing differently on each loop iteration, but in the end you’ll end up with a static sequence. The result is always somehow not satisfactory, that’s why no release from me.
That said, editing sequences computationally is the bees knees, I do it a lot
(but I don’t have it in a form in which I would release it)