There is a program called Hubi's Loopback that can route midi between different applications. I haven't heared of it being used with PD, but it is popular with the Csound communitty. It was also reviewed in last novembers issue of Electronic Musician.