Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

standalone converters for hmp and hmi? #181

Open
sezero opened this issue Aug 5, 2017 · 11 comments
Open

standalone converters for hmp and hmi? #181

sezero opened this issue Aug 5, 2017 · 11 comments

Comments

@sezero
Copy link
Contributor

sezero commented Aug 5, 2017

@psi29a: Do you plan on adding standalone hmp and hmi converters like
those we have for mus and xmi? I vaguely remember that you had intended
to do so quite some time ago (I can't find the relevant thread at all),
but it would be nice if we had them.

@psi29a
Copy link
Member

psi29a commented Aug 5, 2017

I originally wanted just one decoder per format, not two... :/
I had no idea that Chris would be writing his own when I had already implemented both.

@sezero
Copy link
Contributor Author

sezero commented Aug 5, 2017

Well, I do trust my memory but I can't find the reference for it :/

Your versions have the advantage that one doesn't have to initialize the
library for them and are very portable across other projects. That's why
I wanted to have hmp and hmi versions of them.

@psi29a
Copy link
Member

psi29a commented Aug 6, 2017

Me too... I'll try to implement one one of these days. ;) Sadly work, house and 4 children make it hard to find time.

@sezero
Copy link
Contributor Author

sezero commented Nov 3, 2017

Making this a wishlist item.

@sezero sezero added this to the 1.0 - Wishlist milestone Nov 3, 2017
@sezero
Copy link
Contributor Author

sezero commented Nov 20, 2018

I'll try to implement one one of these days. ;)
Sadly work, house and 4 children make it hard to find time.

Had any luck looking into this?

@psi29a
Copy link
Member

psi29a commented Nov 21, 2018

No, still for the wishlist. I still want to do it but anyone else wants to, they are free to do so. ;)

@psi29a
Copy link
Member

psi29a commented Nov 22, 2018

I take that back... i might have something...

@sezero
Copy link
Contributor Author

sezero commented Nov 22, 2018

I take that back... i might have something...

OK, I'd like to see when they're available.

@psi29a
Copy link
Member

psi29a commented Nov 22, 2018

I know it's been forever... but I'm really tired and this is just baffling me:

wildmidi -x ./03\ -\ At\ Doom\'s\ Gate.mus
ERROR: No midi file given
wildmidi -x ./03\ -\ At\ Doom\'s\ Gate.mus test.mid
Conversion failed: System Error (_WM_BufferFile:216) test.mid (Unable to stat) : No such file or directory.

Derp... I seem to remember this working and dump directly to file. :/

@sezero
Copy link
Contributor Author

sezero commented Nov 22, 2018

I know it's been forever... but I'm really tired and this is just baffling me:

wildmidi -x ./03\ -\ At\ Doom\'s\ Gate.mus
ERROR: No midi file given
wildmidi -x ./03\ -\ At\ Doom\'s\ Gate.mus test.mid
Conversion failed: System Error (_WM_BufferFile:216) test.mid (Unable to stat) : No such file or directory.

Derp... I seem to remember this working and dump directly to file. :/

Move the target output midi name right after -x:
wildmidi -x test.mid ./03\ -\ At\ Doom\'s\ Gate.mus

@psi29a
Copy link
Member

psi29a commented Nov 23, 2018

RIght... O.o I got something to compile without errors to support HMP but it isn't 'hooked' up yet to properly count the buffer to give a proper outsize. It was originally meant to write to file a few bytes at a time, so I'm tricking it to write to a buffer.

It's LGPLv2 code from Descent (DX1). It should give us a baseline for comparison to our in-house f_hmp.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants