Adapted from: Color all Half Step Notes (Sharps & Flats) Red
This plugin takes the notes of a melody and turns them into a tone row. It "serializes" the first twelve notes of the piece and then repeats that tone row throughout the rest of the piece.
Download for MuseScore 3 (unfortunately broken)
serializer.qml (take this instead, works for MuseScore 4 too)