Hello. I need to copy a phrase or arpeggio pattern like in this screenshot from bar 3 and 4 to bar 5 amd 6 over the new chord but it creates all the accidentals. Since I am in E major and the arpeggio is following the harmony is there a way to keep the notes in the key without transposing the actual intervals? This 3rd chord should be a D# dimished chord so the notes are D#, F# and A.
also, here is a function which appears to be what I need but it i schecked so it obviously isnt it else the notes would all be in ther key still.

