looks more like B major to me if the bass line is to be believed you have B - F# - D#m - B
so for each chord you are looking at
B-D#-F#-A#-C#-E-G#
F#-A#-C#-E-G#-B-D#
D#-F#-A#-C#-E-G#-B
the first three notes are the chord the next 4 notes are the 7th, 9th, 11th and 13th
playing the 7th, 9th, 11th and 13th and resolving the last three down to the root, 3rd or 5th and the 7th up to the root or down through the 13th to the 5th is usual practice in writing these types of lines
you may also want to think of using upper and lower neighbour tones (sometimes called mordants), and the various turns - upper followed by lower NT or vice versa
e.g. over the B chord
F#-G#-F# is an upper neighbour tone
D#-C#-D# is a lower neighbour tone
F#-G#-F#-E-F# is an inverted turn
F#-E-F#-G#-F# is a turn
applying the idea of the turn or inverted turn we then get lines that can run like so
F#-G#-F#-E-F#-E-D#-E-D#-C#-D#-C#-B-C#-B-A#-B-A#-G#-A#-G#-F#-etc
or
F#-E-F#-G#-F#-G#-A#-G#-A#-B-A#-B-C#-B-C#-D#-C#-D#-E-D#-E-F#-etc
then apply ideas like fatback horn writing or chordal planing (search bandcoach and fatback here at fp to find more on these ideas)