WARNING: Currently impossible to change default midi device in Win8

Getting old Windows games working.

Re: WARNING: Currently impossible to change default midi device in Win8

Postby HunterZ » 2016-6-14 @ 04:21

Well if he's going to make you sign up then I'll just attach it here:
Attachments
CoolSoft_MIDIMapper_0.9.0-beta1.zip
(223.25 KiB) Downloaded 181 times
User avatar
HunterZ
l33t++
 
Posts: 6050
Joined: 2003-1-31 @ 19:04
Location: Seattle

Re: WARNING: Currently impossible to change default midi device in Win8

Postby collector » 2016-6-14 @ 06:15

Thank you. I have been aware of this guy for a while and he has a tendency to not open source his projects, even when he is dealing with open source stuff, like his NSIS Dialog Designer. I wanted to see his alterations to the fast colored textbox control (an open source C# control) for the syntax hightlighting and NSIS is open source, but he keeps it closed.
Last edited by collector on 2016-6-14 @ 16:05, edited 1 time in total.
User avatar
collector
l33t
 
Posts: 4004
Joined: 2003-1-15 @ 10:39

Re: WARNING: Currently impossible to change default midi device in Win8

Postby Silanda » 2016-6-14 @ 10:49

Cool. I'll give it a try later.
Silanda
Member
 
Posts: 141
Joined: 2005-9-08 @ 01:24

Re: WARNING: Currently impossible to change default midi device in Win8

Postby HunterZ » 2016-6-17 @ 18:42

Here's beta 2. It's only useful for Windows Vista/7, where it only adds a GUI for configuring the existing Microsoft MIDI Mapper. There is no functional change for Windows 8/10, where it still installs the same MIDI routing device as the default, along with the configuration GUI.
Attachments
CoolSoft_MIDIMapper_0.9.0-beta2.zip
(224.25 KiB) Downloaded 68 times
User avatar
HunterZ
l33t++
 
Posts: 6050
Joined: 2003-1-31 @ 19:04
Location: Seattle

Re: WARNING: Currently impossible to change default midi device in Win8

Postby Great Hierophant » 2016-6-18 @ 17:51

Such a simple, little program, yet it works and does wonders. Its allows me to change between the MT-32 Synth Emulator, the Microsoft GS Wavetable Synth and the CoolSoft VirtualMIDISynth. VirtualMIDISynth will show CoolSoft MIDIMapper as the Windows Media Player default device, so the two programs do not stomp on each other there.

One interesting thing is that the MT-32 Synth Emulator only show up in the 32bit drop down list whereas the other two devices appear both in the 32bit and 64bit lists. I suppose that MUNT is a 32-bit driver and the other two are either 64-bit drivers and are 32-bit compatible. Not that it matters much, I doubt any MIDI program will refuse to use a device with only a 32-bit driver.
User avatar
Great Hierophant
l33t
 
Posts: 2324
Joined: 2003-4-27 @ 08:20

Re: WARNING: Currently impossible to change default midi device in Win8

Postby HunterZ » 2016-6-18 @ 18:48

Yeah, the latest version of Munt on sourceforge is 32-bit only. There's an older 64-bit 1.5.0-updates build on Sourceforge.

I doubt there are any 64-bit-only applications out there that use MIDI and can't use a 32-bit driver.

What's weird is that the Microsoft GS Synth doesn't show up for me under 64-bit either. I guess Microsoft is lazy?
User avatar
HunterZ
l33t++
 
Posts: 6050
Joined: 2003-1-31 @ 19:04
Location: Seattle

Re: WARNING: Currently impossible to change default midi device in Win8

Postby Silanda » 2016-6-19 @ 15:45

HunterZ wrote:What's weird is that the Microsoft GS Synth doesn't show up for me under 64-bit either. I guess Microsoft is lazy?


That would be fair, I don't think they've substantially updated it since 1999. It's one of the things that most irritates me about Microsoft: there are features like this one that they clearly don't give a damn about keeping functionally modern, yet they obfuscate or, worse yet, remove functionality that allows users to use an alternative.
Silanda
Member
 
Posts: 141
Joined: 2005-9-08 @ 01:24

Re: WARNING: Currently impossible to change default midi device in Win8

Postby mudlord » 2016-6-21 @ 08:54

HunterZ wrote:Edit: I've been thinking that it should be possible to make a fake winmm.dll that intercepts the call to midiOutOpen() and forwards the call to the real winmm.dll, but with a device ID parameter from a config file instead of whatever was passed in. Unfortunately I don't know how to do this (but I'm sure someone on here does). Here's the Microsoft documentation for the method in question: https://msdn.microsoft.com/en-us/library/windows/desktop/dd798476(v=vs.85).aspx


However, doesn't Win10 have issues with proxy dlls for components like winmm.dll?
User avatar
mudlord
Newbie
 
Posts: 66
Joined: 2010-12-20 @ 09:08

Re: WARNING: Currently impossible to change default midi device in Win8

Postby Great Hierophant » 2016-6-21 @ 18:00

HunterZ wrote:
I doubt there are any 64-bit-only applications out there that use MIDI and can't use a 32-bit driver.

What's weird is that the Microsoft GS Synth doesn't show up for me under 64-bit either. I guess Microsoft is lazy?


Microsoft GS Synth does show up for me in the CoolSoft MIDI Mapper's 64-bit drop down box on my computer. I'm running Windows 8.1 64-bit.
User avatar
Great Hierophant
l33t
 
Posts: 2324
Joined: 2003-4-27 @ 08:20

Re: WARNING: Currently impossible to change default midi device in Win8

Postby mudlord » 2016-6-23 @ 22:19

Maybe then for Windows 10, the best course of action is indeed a hook DLL to force a MIDI synth for a particular app. Could just hook the appropriate winmm call and use other calls to get the appropriate "device" ID.

I'm kinda interested to do such a thing since Coolsoft always makes everything closed source, when thats not really a problem if you use x64dbg/Ollydbg/IDA Pro (native mode) or dnSpy (for .NET apps).

The Coolsoft MIDI mapper GUI stuff is based off .NET anyway.
User avatar
mudlord
Newbie
 
Posts: 66
Joined: 2010-12-20 @ 09:08

Re: WARNING: Currently impossible to change default midi device in Win8

Postby HunterZ » 2016-6-23 @ 22:32

Well if anyone has a source code example for a hook/proxy DLL, I'd be willing to take a stab at something.
User avatar
HunterZ
l33t++
 
Posts: 6050
Joined: 2003-1-31 @ 19:04
Location: Seattle

Re: WARNING: Currently impossible to change default midi device in Win8

Postby mudlord » 2016-6-26 @ 04:21

HunterZ wrote:Here's beta 2. It's only useful for Windows Vista/7, where it only adds a GUI for configuring the existing Microsoft MIDI Mapper. There is no functional change for Windows 8/10, where it still installs the same MIDI routing device as the default, along with the configuration GUI.


Thanks very much, guess I have to start spying to see how that DLL works in that installer..
User avatar
mudlord
Newbie
 
Posts: 66
Joined: 2010-12-20 @ 09:08

Re: WARNING: Currently impossible to change default midi device in Win8

Postby HunterZ » 2016-7-13 @ 05:00

beta4 released:
v.0.9.0-beta3 - 2016-06-27
- DLL now acts as a real MIDIMapper and not as a
MIDI driver anymore.
- Prepared for future integration with VirtualMIDISynth 2.

v.0.9.0-beta4 - 2016-07-12
- Selected device is now the same between x86 and x64 versions
- Improved configurator devices list to show available devices bitness
Attachments
CoolSoft_MIDIMapper_0.9.0-beta4.zip
(226.54 KiB) Downloaded 47 times
User avatar
HunterZ
l33t++
 
Posts: 6050
Joined: 2003-1-31 @ 19:04
Location: Seattle

Re: WARNING: Currently impossible to change default midi device in Win8

Postby HunterZ » 2016-7-22 @ 18:16

Update: beta3 and beta4 don't seem to be working correctly, so I recommend sticking with beta2 for now.
User avatar
HunterZ
l33t++
 
Posts: 6050
Joined: 2003-1-31 @ 19:04
Location: Seattle

Re: WARNING: Currently impossible to change default midi device in Win8

Postby nicorac » 2016-7-28 @ 19:37

Hello everyone, I'm the author of both VirtualMIDISynth and CoolSoft MIDIMapper.
I'm here thanks to some users of this forum ;)

HunterZ wrote:Update: beta3 and beta4 don't seem to be working correctly, so I recommend sticking with beta2 for now.

I've just released beta5 that reverts the change done in beta3 (how MIDIMapper show up in the system).
Please check it out below...

HunterZ wrote:Well if he's going to make you sign up then I'll just attach it here:

My intention wasn't to increase my user base; I only like to filter out "disappearing" users:
it already happened in the past, people asking for features (or bug fixes) with their first comment then, after spending some days to implement the feature... no more feedback.
If an user spends some time to subscribe then he's likely give further feedback in the future.
Anyway, I've attached the setup of beta5 here, so VOGONS users could test it easily.

collector wrote:I have been aware of this guy for a while and he has a tendency to not open source his projects, even when he is dealing with open source stuff, like his NSIS Dialog Designer.

Sadly the dialog designer component of NSISDialogDesigner can't actually be published.
It was code I wrote some time ago for another project of mine (as a freelance) and I only got the permission to use it for freeware (but not open source) programs. Sorry.

collector wrote:I wanted to see his alterations to the fast colored textbox control (an open source C# control) for the syntax hightlighting and NSIS is open source, but he keeps it closed.

That C# control was included as-is, no changes to its code AFAIR.
I only created (and configured) the NSIS language definition to let it colorize .nsi files.
That's why I haven't published anything... maybe I shall mention in into readme file, will do it ASAP.
If you need NSIS definition feel free to PM.
...oops, I'm going a bit OT

mudlord wrote:The Coolsoft MIDI mapper GUI stuff is based off .NET anyway.

You're right, it's the quickest way to implement such a simple task ;).
MIDIMapper stores/retrieves the selected MIDI device to/from the same well-known XP/Vista/7 key, even if it was removed in Win8.
This way it should be compatible with other MIDIMapper configurators (like Vista MIDI Tool).
Again, Coolsoft MIDIMapper can also be installed on Vista/7 but on these OSes only the configurator is installed since the mapper is already available.

Sorry for such a long first post.
Will try to look at this forum too but please post bug MIDIMapper reports/requests here
http://coolsoft.altervista.org/midimapper
(anonymous posting is accepted, no need to register ;))
Attachments
CoolSoft_MIDIMapper_0.9.0-beta5.zip
CoolSoft_MIDIMapper_0.9.0-beta5
(259.11 KiB) Downloaded 169 times
nicorac
Newbie
 
Posts: 1
Joined: 2016-7-28 @ 14:11

Re: WARNING: Currently impossible to change default midi device in Win8

Postby HunterZ » 2016-7-29 @ 18:03

Thanks for taking the time to stop by, and for posting the latest version here.
User avatar
HunterZ
l33t++
 
Posts: 6050
Joined: 2003-1-31 @ 19:04
Location: Seattle

Re: WARNING: Currently impossible to change default midi device in Win8

Postby HunterZ » 2017-8-21 @ 15:03

Here is 1.0rc1.
Attachments
CoolSoft_MIDIMapper_1.0.0-rc1.zip
(257.35 KiB) Downloaded 174 times
User avatar
HunterZ
l33t++
 
Posts: 6050
Joined: 2003-1-31 @ 19:04
Location: Seattle

Re: WARNING: Currently impossible to change default midi device in Win8

Postby HunterZ » 2017-10-19 @ 03:24

Here's 1.0.0-rc2
Attachments
CoolSoft_MIDIMapper_1.0.0-rc2.zip
(282.79 KiB) Downloaded 29 times
User avatar
HunterZ
l33t++
 
Posts: 6050
Joined: 2003-1-31 @ 19:04
Location: Seattle

Previous

Return to Windows

Who is online

Users browsing this forum: No registered users and 3 guests