XMPlay MIDI plugin

Started by Ian @ un4seen,

Rich Nagel

#80
Quote from: Ian @ un4seenThe "use the chosen preset if present in the soundfont" thing is in there now.

It works great Ian, thanks! :thumbsup: -:) BTW, a small feature request (if possible): The ability to select a specific preset/patch from the replacement SF2 to replace the clicked-on patch number. In other words, I noticed that if there isn't a matching patch number in the replacement SF2, the plugin defaults to to the first preset/patch number within it. Would be handy to be able to select any of the patch/preset numbers within the SF2 -:)

P.S. If it's not possible, then I'd say that "That's a wrap!" (i.e. ready for final release) for the MIDI plugin... if it is possible, then after that feature I'd say "That's a wrap!" <BG> -:) Again, thanks for all of your hard work on this thing, and especially for listening to all of my inane sensless babble <G> -:)


Quote from: Ian @ un4seenSupport for the custom loop-point thing is in now too, but requires an EXE update...

:thumbsup: -:)

WingZero

#81
Quote from: Ian @ un4seenThe "use the chosen preset if present in the soundfont" thing is in there now. Support for the custom loop-point thing is in now too, but requires an EXE update...

   www.un4seen.com/stuff/xmplay.exe

Note the "MOD only" looping option includes MIDI files now, as they have proper loop detection (the loopstart marker), rather than the generic "if there's sound at the end, let's loop" :)

   Just downloaded this and now all my shortcuts default to "Open with XMPlay" instead of their normal shortcut-to-some-other-executable-ness. I suspect it has something to do with that "XMPlay resetting itself" thread.

{edit}
Actually, it seems that it wasn't the shortcuts, but all applications are associated with XMPlay now, making it pretty hard to do, well, anything, really. I can't seem to find the broken .EXE setting under Tools->Folder Options; have to go look in the Registry, if I could get it to open, that is.
{/edit}

WingZero

Ah, I see; the XM-EXE plugin automatically associates XMPlay with EXE's but it doesn't show up in the Integration tab :o . I'd rather the archive plugins not have their extensions associated with XMPlay automatically, so ZIPs and stuff open in an archive manager and EXE's actually open like they should. I'm not sure why this never happened before...

Zarggg

Quote from: Ian @ un4seenNote the "MOD only" looping option includes MIDI files now, as they have proper loop detection (the loopstart marker), rather than the generic "if there's sound at the end, let's loop" :)

Yay!!!!!

Quote from: WingZeroAh, I see; the XM-EXE plugin automatically associates XMPlay with EXE's but it doesn't show up in the Integration tab :o .

Ouch...

Ian @ un4seen

Quote from: Rich NagelBTW, a small feature request (if possible): The ability to select a specific preset/patch from the replacement SF2 to replace the clicked-on patch number. In other words, I noticed that if there isn't a matching patch number in the replacement SF2, the plugin defaults to to the first preset/patch number within it. Would be handy to be able to select any of the patch/preset numbers within the SF2 -:)

But that'd require the hassle of a popup window ;D

I think I'll save it for later. Another update is up now though, with auto looping configuration (determines when to "auto loop").

Quote from: WingZeroJust downloaded this and now all my shortcuts default to "Open with XMPlay" instead of their normal shortcut-to-some-other-executable-ness. I suspect it has something to do with that "XMPlay resetting itself" thread.

I don't think it's related to that (or the XM-EXE plugin ;)), but it could possibly be the "another update to try". There was a little bug (uninitialized variable) in there. It seems unlikely, but I guess if you were freakishly unlucky, it could've associated itself with bad stuff :) ... That bug is fixed in the "stuff" version now.

Can you run REGEDIT? If so, check the "HKEY_CURRENT_USER\Software\Classes" branch. Any entries that XMPlay created should be in there.

WingZero

Quote from: Ian @ un4seenCan you run REGEDIT? If so, check the "HKEY_CURRENT_USER\Software\Classes" branch. Any entries that XMPlay created should be in there.

Well, I managed to fix it by importing the HKCR\.exe key and now everything seems to be behaving well.

Ian @ un4seen

Actually, now that I think about it, the "unintialized variable" bug I mentioned couldn't have caused what you had happen. It could've only setup a random one of the normal registry entries, eg. something like Brian's "Add to XMPlay-library" thing.

So I don't really know what could've caused your problem. Did you find any funny entries at the registry branch I mentioned?

Rich Nagel

#87
Quote from: Ian @ un4seenBut that'd require the hassle of a popup window ;D I think I'll save it for later.

No problem -:) I'd say "that's a wrap" then, everything seems to be working properly :thumbsup: -:)

WingZero

Quote from: Ian @ un4seenSo I don't really know what could've caused your problem. Did you find any funny entries at the registry branch I mentioned?

   Unfortunately, I could only open the Registry Editor after importing the fixed key. Everything seemed to be fine after that, so I can only assume that XMPlay changed the "Default" setting from "exefile" to "XMPlay". However, deleting "ContentType" or "PersistentHandler" does not show any appreciable difference, so I cannot be certain whether XMPlay only changed the "Default" setting or replaced the entire HKCR\.exe section. The HKCR\exefile section seems to have been left alone. Since HKCR is a merged view of HKCU\Classes and HKLM\Classes, I can't tell you which one was changed (they're both correct now), but I assume XMPlay only changed HKCU\Classes.

Mattias

This is absolutely awesome. After adding the soundfont below my laptop suddenly sounds like a real piano and not like some cheap synthetic thing.

http://www.sf2midi.com/index.php?page=sdet&id=6654

Just out of curiosity - would it be possible to add support for MIDI input devices? I think that would definitely be a cool feature.  ;)

Kudos to Ian for his excellent piece of work!

Rich Nagel

Quote from: MattiasThis is absolutely awesome. After adding the soundfont below my laptop suddenly sounds like a real piano and not like some cheap synthetic thing.

Hehe, the miracles of the ever-mysterious SoundFont <BG> -:) This is why I've always loved EMU(AWE) based MIDI hardware/sound cards... with a few quality or commercial soundfonts, one can generate quite realistic sounding music, even on a budget. A few good examples of the above here -> http://www.cmoo.com/~snor/weeds/ttmusic.htm -:)


Quote from: MattiasJust out of curiosity - would it be possible to add support for MIDI input devices? I think that would definitely be a cool feature.  ;)

That would be extremely cool, the ability to preview various soundfonts via your MIDI keyboard -:)


Quote from: MattiasKudos to Ian for his excellent piece of work!

I've said it once (or rather, several times <GB>), I'll say it again... a BIG ditto to that! :thumbsup: -:)

Ian @ un4seen

Quote from: MattiasJust out of curiosity - would it be possible to add support for MIDI input devices? I think that would definitely be a cool feature.  ;)

I reckon that'd be slightly extravagant/unnecessary for an audio player :)

But I intend to use the same code to create a MIDI add-on for BASS, with support for real-time events (not just files). So the sort of thing you're ask for could be done with that.

Mattias

Quote from: Ian @ un4seenI reckon that'd be slightly extravagant/unnecessary for an audio player :)

Yeah, it might be slightly extravagant. ;)

Quote from: Ian @ un4seenBut I intend to use the same code to create a MIDI add-on for BASS, with support for real-time events (not just files). So the sort of thing you're ask for could be done with that.

Sounds superb. I've used both BASS and MIDI in my Delphi projects before, so I'll probably figure out how to implement this.

iCorp

Quote from: Ian @ un4seenBut I intend to use the same code to create a MIDI add-on for BASS, with support for real-time events (not just files). So the sort of thing you're ask for could be done with that.

Ian, at first thanks for XMPlay MIDI plugin!
When do you plan to release midi add-on for BASS?
If you need a beta tester, please let me know! :)
Now I use selfwritten DMO filter for converting midi files to wav via hardware device.
But I think your midi add-on will be much better!
Thank you!

Ian @ un4seen

Quote from: iCorpWhen do you plan to release midi add-on for BASS?

I'm not sure at this point. I'm concentrating on BASS 2.3 at the moment, and I'm not planning to release the MIDI add-on before then, but I've not decided yet whether to have it ready for the BASS 2.3 release, or shortly after.

piovrauz

What about adding in the MIDI plugin (in the config window) the ability to tweak sounfont bank/istruments parameters, like the Creative soundfont manager has?

I think it could be nice being able to tweak some intruments without modding the sounfont (example: you lower some percussion or synths that are too high).

Cosworth

It is interesting to me,at you the sound this MIDI is audible? , at me for some reason a sound is not audible. http://www.sendspace.com/file/bjmvx1

piovrauz

Here it's playing fine. Be aware that music ripped from keygens may be corrupted, since sometime the ripper may be not very skilled. Anyway, playing with XMplay, MIDI plugin and chorium.sf2, I can hear it.

ZipoB

Would it be possible to make midi plugin that can use hardware, 'cos i just can't spare CPU-time for some softsynth which doesn't even have real effects-processor... It just doesn't sound good enough after real synth.