in answer to Albert, a bass line of C E E C would be pretty boring playing on the leading seventh back to the tonic.

But you could certainly choose say, C G E E, C Bb E E, C A E E or C D E E or any combinations thereof quite easily.

And this need not be for the entire pattern on the seventh, as you could, but just for the last measure with the earlier measure(s) playing normally. You can choose the note(s) to be affected by the chord change, and those that are not.

Something similar to a dynamic accompaniment type of effect without the velocity triggering, but with 7th triggereing in this particular example.