"WriteMIDI" command

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
Ilya_Efimov
Posts: 5
Joined: Tue Apr 30, 2024 1:27 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10

"WriteMIDI" command

Post by Ilya_Efimov »

Hello! Well, I'm not sure that it was discussed before, but how to use "writemidi" command properly? It's not as simple as it is in Zandronum. In Zandronum you should just set some music track to play, then use "writemidi" command and write a filename with .mid at the end. After that a MIDI track is saved inside Zandronum directory. But when trying to use this command in GZDoom it doesn't save the MIDI track in a MIDI format, it doesn't even open and play it. In older versions of GZDoom this command acted the same as it is in Zandronum, but later this command was "improved" somehow. Can you, please, tell me, what do I do wrong?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49184
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: "WriteMIDI" command

Post by Graf Zahl »

It looks lke there's a small bug in there. The command was supposed to be 'writemidi musicname filename' but it always uses the musicname as file name as well, so if you want to write d_runnin you have to say "writemidi d_runnin blah" but the file will be named 'd_runnin'. That's why writing the playing track with 'writemidi * filename' won't work, because * is not a valid file name to write to.

I think it says a lot that in the 4 years this bug existed it has not been reported.
User avatar
Rachael
Posts: 13794
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: "WriteMIDI" command

Post by Rachael »

Graf Zahl wrote: Thu Dec 05, 2024 12:43 am I think it says a lot that in the 4 years this bug existed it has not been reported.
Don't be deceived. It's true that it could say something about the usefulness of the command, but it equally could also be true that it may have something to do with how well known the command is or how well documented it is.

Return to “Bugs [GZDoom]”