Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - PSGTool - A VGM to PSG convertor

Reply to topic
Author Message
  • Joined: 14 Apr 2013
  • Posts: 623
Reply with quote
PSGTool - A VGM to PSG convertor
Post Posted: Mon Jan 22, 2018 9:34 pm
Last edited by Calindro on Tue Mar 21, 2023 9:48 pm; edited 6 times in total
Some time ago sverx asked me to release the PSG tools of KiddEd as a standalone tool.
It took a while but here it is now.
It takes VGM files and converts them into PSG files for use with sverx's PSGlib.

Usage is simple:
java -jar PSGTool.jar INPUTFILE [OUTPUTFILE] [2|3|23] [OPTIONS]

Possible options are:
-split           Split large files into multiple files.
-uncompressed    Don't compress output.
-framerate       The target framerate. E.g. 60 for NTSC. If not specified, the input framerate is used.

PSGTool.zip (13.16 KB)

  View user's profile Send private message Visit poster's website
  • Joined: 28 Jan 2017
  • Posts: 540
  • Location: Málaga, Spain
Reply with quote
Post Posted: Mon Jan 22, 2018 10:12 pm
Great!!!! Good compression with this tool!!!
  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 3758
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Tue Jan 23, 2018 9:11 am
This is the tool I suggest to use for all your PSG conversions.
(I mean, instead of my vgm2psg and psgcomp that aren't even nearly as good as this...)

Great work, pal! :)
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14685
  • Location: London
Reply with quote
Post Posted: Tue Jan 23, 2018 9:30 am
Any chance of source code?
  View user's profile Send private message Visit poster's website
  • Joined: 18 Dec 2014
  • Posts: 95
  • Location: Canada
Reply with quote
Post Posted: Sat Jan 27, 2018 10:30 am
Thanks Calindro.
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14685
  • Location: London
Reply with quote
Post Posted: Tue Jun 11, 2019 6:45 pm
I noticed the jar was updated in July 2018 - was there anything interesting about the update?
  View user's profile Send private message Visit poster's website
  • Joined: 14 Apr 2013
  • Posts: 623
Reply with quote
Post Posted: Tue Jun 11, 2019 6:52 pm
Maxim wrote
I noticed the jar was updated in July 2018 - was there anything interesting about the update?

I don't remember exactly but it was a minor bugfix. I think it was something like if the input file was an already compressed psg file it would "compress" the compressed file. That would effectively produce an invalid psg file.
Now in that case it will just write out the original compressed file.
  View user's profile Send private message Visit poster's website
  • Joined: 01 Feb 2014
  • Posts: 844
Reply with quote
Post Posted: Wed Jun 12, 2019 6:37 am
Excellent. Can‘t wait to use it in my next project.
  View user's profile Send private message
  • Joined: 14 Apr 2013
  • Posts: 623
Reply with quote
Post Posted: Thu Apr 02, 2020 11:28 pm
I have uploaded an update of PSGTool to the initial post in here. PSGTool had crashed if neither the input VGM file specified a samplerate nor a samplerate was specified via commandline argument.
It will now fallback to NTSC's 60 Hz in that case.
  View user's profile Send private message Visit poster's website
  • Joined: 14 Apr 2013
  • Posts: 623
Reply with quote
Post Posted: Tue Mar 21, 2023 9:51 pm
I have uploaded a new version of PSGTool to the original post.

I have bad news and good news.

Bad news first: There has been a bug in the compressor that could result in slightly corrupted output (1 or 2 wrong notes in a 1 minute song).

Good news: Armixer24 and slogra encountered the issue, reported it and I managed to fix it. Additionally, while the fixed compressor produces bigger output for a few files (presumably for ones that suffered from corruption before), it also produces smaller output for other files. :)
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!