TSMusic

A catch-all of miscellaneous Keen:Modding utilities.
Post Reply
User avatar
Flyingmouse
Posts: 92
Joined: Wed Aug 05, 2009 8:33 pm
Location: Pop Star

TSMusic

Post by Flyingmouse » Wed Jul 11, 2012 7:09 am

Can anyone post a download link for TSMusic? I've checked KeenWiki and it 's not provided in the article...

EDIT: Nevermind, I found it.

levellass
Posts: 2648
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass » Fri Jul 27, 2012 11:23 am

Link? Or should this topic be deleted?

User avatar
Flyingmouse
Posts: 92
Joined: Wed Aug 05, 2009 8:33 pm
Location: Pop Star

Post by Flyingmouse » Fri Jul 27, 2012 11:38 am


User avatar
Malvineous
Posts: 100
Joined: Sat Mar 13, 2004 12:54 am
Location: Brisbane, Australia
Contact:

Post by Malvineous » Sat Jul 28, 2012 1:51 am

I just uploaded a version with the source code. Possibly it was so hard for you to find as it's called TSRMusic, not TSMusic! I've renamed the wiki page.

User avatar
CommanderSpleen
Posts: 1005
Joined: Sun Aug 31, 2003 12:11 pm
Location: The Land of Sparkly Things
Contact:

Post by CommanderSpleen » Sat Dec 26, 2015 11:17 am

With a particular combination of tracks I'm using for a mod, there seems to be a glitch in which the map level takes on an instrument from one of the in-level songs, making it sound terrible and out of tune.

Possible theories so far:

a) Missing an instruction in the DRO capture via DOSBox

b) Using channel 0 which apparently causes issues with games that use AdLib sound effects - I wouldn't expect this to be an issue in Keen 1, but for all I know there could be some inherent issue in the format along these lines

c) TSRMus bug, my least preferred scenario

I'll be experimenting in the near future to see if certain changes and re-recordings will solve the problem. (Or just keeping all the instruments similar for each track.) But if anyone has some ideas in the meantime, that would be pretty cool.

User avatar
Malvineous
Posts: 100
Joined: Sat Mar 13, 2004 12:54 am
Location: Brisbane, Australia
Contact:

Post by Malvineous » Sun Dec 27, 2015 10:46 am

Using channel 0 definitely won't cause problems with Keen 1.

It's very, very easy to lose OPL instructions when capturing in DOSBox, so that's probably quite likely if your source is from a capture. This is because sometimes games set the instruments way before the music actually starts. DOSBox is supposed to write out the current state of all the OPL registers when the recording begins, but for some reason this doesn't always seem to work.

If you can run the Camoto command-line tools you can try using "gamemus" to read the .dro and write it back out again. This should cause any missing instrument instructions to be restored, although likely with a zero value which may or may not be what you're after. But it should at least allow the song to be consistent.

User avatar
Napalm
Posts: 18
Joined: Sat Oct 27, 2007 6:49 am
Location: UK

Post by Napalm » Wed Dec 30, 2015 8:53 pm

Wow, my TSR Music app is still going :) good to know :D

PS. Reducing the cycles of DOSBox might help.

User avatar
CommanderSpleen
Posts: 1005
Joined: Sun Aug 31, 2003 12:11 pm
Location: The Land of Sparkly Things
Contact:

Post by CommanderSpleen » Sun Jan 03, 2016 3:53 am

The music was captured directly from Adlib Tracker II. For all I know it could be setting the instrument data well before pressing the play key. There is a separate playback utility, so I'll try capturing from that to make things more predictable.

Is it fairly straightforward to remove silence from the start of a DRO/IMF and start it exactly on the first actual playback instruction if capturing is started a few seconds before playing the track so timing isn't an issue?

Skipping the Camoto plan for the moment unless it can be made to run with libpng++ 0.2.5 instead of 0.2.7.

User avatar
Malvineous
Posts: 100
Joined: Sat Mar 13, 2004 12:54 am
Location: Brisbane, Australia
Contact:

Post by Malvineous » Sun Jan 03, 2016 11:48 am

You could try DRO Trimmer to remove delays at the start and end of the recording.

If you skip Camoto Studio and the other libraries, and only compile libgamecommon then libgamemusic, then you won't need libpng at all and you'll get the gamemus utility.

User avatar
CommanderSpleen
Posts: 1005
Joined: Sun Aug 31, 2003 12:11 pm
Location: The Land of Sparkly Things
Contact:

Post by CommanderSpleen » Sun Jan 03, 2016 1:22 pm

Ah, well gamemus compiled successfully so I'll try that if the DRO Trimmer idea doesn't work.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest