VOGONS


First post, by trist007

User metadata
Rank Member
Rank
Member

So I enjoy playing midi files via dosbox so that I can send the midi out to one of my Roland synths. I'm running dosbox on a mac so I don't have windows media player.

However, I have been using playmid.exe. But it sucks to play one file at a time. I would like the ability to create a playlist. Is there something like this available for dos? Otherwise, is there a clever way to pipe in the filenames so that playmid can play them one by one?

Sure I can make a batch file with each filename in there prepended with playmid but that takes forever. Is there any clever dosbox commands that I can use to glob all the midi files in one command?

-Tristan

Reply 1 of 3, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

No, but with todays editors you can quickly copy the names of all midi files (I guess ls on the terminal can help you there - "ls *.mid > playmid.bat" perhaps) and prepend them with playmid.
Shouldn't take you long

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 2 of 3, by trist007

User metadata
Rank Member
Rank
Member

Ah ok great thanks.

Reply 3 of 3, by blinkingblythe

User metadata
Rank Newbie
Rank
Newbie
trist007 wrote:
So I enjoy playing midi files via dosbox so that I can send the midi out to one of my Roland synths. I'm running dosbox on a ma […]
Show full quote

So I enjoy playing midi files via dosbox so that I can send the midi out to one of my Roland synths. I'm running dosbox on a mac so I don't have windows media player.

However, I have been using playmid.exe. But it sucks to play one file at a time. I would like the ability to create a playlist. Is there something like this available for dos? Otherwise, is there a clever way to pipe in the filenames so that playmid can play them one by one?

Sure I can make a batch file with each filename in there prepended with playmid but that takes forever. Is there any clever dosbox commands that I can use to glob all the midi files in one command?

-Tristan

I'm not familiar with playmid but you could try something like:

rem this is pm.bat
command /c for %%a in (*.mid) do playmid [whatever parameters] %%a

(you have to download freedos's command com as Dosbox dosen't have the FOR statement built in
Download link: http://www.ibiblio.org/pub/micro/pc-stuff/fre … pre/command.com )

%%a represents all the files in the directory, and this should cause playmid to play them one by one. Hope this
helps.