How do I specify which MIDI device that should be used to play MIDI files loaded into DirectMusic?

I know how to set a DirectSound device. It's as simple as Set Ds = Dx.DirectSoundCreate(guid)

But when I create a DirectMusic Loader and Performance I am not able to specify anything. Anyone know how to help?