Questions tagged [directmusic]

5 questions
5
votes
2 answers

Play a single note with DirectMusic

I'm using DirectMusic for MIDI playback in an application I'm developing. Does anyone know if it's possible to use DirectMusic to play individual notes? Currently, I'm converting an in-memory data structure that represents entire 'songs' into a MIDI…
Rob
  • 25,984
  • 32
  • 109
  • 155
2
votes
2 answers

ANSI or OEM Codepage when using MME and DirectMusic?

I noticed that when reading MIDI port names from MME, the names are multi-byte strings encoded using the ANSI Codepage, which my app uses by default. When receiving those names from the DirectMusic driver, the names are wide-character strings…
Carl Seleborg
  • 13,125
  • 11
  • 58
  • 70
1
vote
0 answers

DirectMusic Playing Two MIdis Simultaneously on 2 Channel Groups

Can someone provide sample code on how in one Performance, one MusicPort, load and play two midis (Channels 0-15 in midi 1 and use another channel group to play midi 2's 0-15?) I tried AssignPChannelBlock on music port and SetPChannel on segment,…
Mary Ellen Bench
  • 589
  • 1
  • 8
  • 28
0
votes
1 answer

How can I convert an old game, which uses DirectMusic to play MIDI internally, to output raw MIDI to the default device instead?

I have an old game which plays MIDI files with the following: IDirectMusicPerformance8* m_pDMPerformance; IDirectMusicLoader8* m_pDMLoader; CoCreateInstance(CLSID_DirectMusicLoader, NULL, CLSCTX_INPROC, IID_IDirectMusicLoader8,…
rufus
  • 23
  • 1
  • 5
0
votes
1 answer

DirectMusic, including

The problem is: When I include , I get following errors: dmdls.h:81: error: declaration of `WLOOP _DMUS_REGION::WLOOP[1]' dls1.h:264: error: changes meaning of `WLOOP' from `typedef struct _rloop WLOOP' An example: using namespace…
Vladimir
  • 1
  • 1