I've been working with this recently. Put a chord into a sequencer or a loop station and then improvise with it with no real time. I find the results much better than shedding through scales and positions and it's a much more musical way of practicing said scales. At the moment i'm going through the melodic minor sound world as I'm not the strongest with any of the modes within this scale, and trying to get through lydian sharp 9 too. I also try and close my eyes for the whole time and really let my ear guide me, and after some time it all starts falling under my fingers and some interesting patterns start to come out.
Has anyone else tried something similar?