Skip to content

retcon85/retcon-util-audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retcon audio utilities

Build

Overview

Part of the Retcon85 project, this is one of a set of tools aiming to provide a low barrier to entry to learning about computers by building a console:

Currently this tool only supports the PSG format for SMS/GG but as more canonical project builds are added it is designed to expand through new sub-commands.

The most useful things you can currently do with this tool is compress PSG files as well as visually debug them.

To convert from VGM to PSG format, it's recommended to use the vgm2psg tool under PSGLib, which is also available on toolchain-sms

If you're looking for a tracker to compose VGM music / sound effects, why not take a look at the Furnace project

Installation

As part of toolchain-sms

The toolchain-sms docker image contains this utility from version 0.9 onwards.

docker pull retcon85/toolchain-sms

Binaries

Download the latest releases from https://github.com/retcon85/retcon-util-audio/releases

Building from source

Go is the only prerequisite.

  1. Clone the repo
  2. Run go . run to run
  3. Run go . build to build

Optionally, if you have GNU make installed you can run the Makefile.

Usage

Global usage

Usage:

      retcon-audio <command> [options]

Available commands:

      psg           utilities for processing SMS PSG files

Global options:

      --debug       prints extra debug information for selected commands
  -h, --help        prints help about a command
      --no-banner   suppresses the banner text after this program runs
      --quiet       suppresses all output except errors and banner
      --silent      suppresses all output except errors

The psg sub-command usage

Usage:

  retcon-util-audio psg [options]
    see below for options reference

  retcon-util-audio psg [options] <psgfile>
    equivalent to "retcon-util-audio psg <options> --load <psgfile>"

  retcon-util-audio psg [options] <psgfile> <outfile>
    equivalent to "retcon-util-audio psg <options> --load <psgfile> --save <outfile>"

Options:

  -f, --load string     path of a PSG file to load, or "-" to read from standard input (default "-")
  -u, --no-compress     do not compress PSG output
  -o, --output string   output format. one of: psg | debug[=...] (default "psg")
  -s, --save string     path of the output file to generate, or "-" to write to standard output (default "-")

Debug format options:

  --output debug=(o|b|f|*)...
    o - print offset of byte from input source
    b - print raw byte(s) from input source
    f - print frame end markers
    * - print with all of the above options enabled

  --output debug
    print with none of the above options enabled

Global options:

      --debug       prints extra debug information for selected commands
  -h, --help        prints help about a command
      --no-banner   suppresses the banner text after this program runs
      --quiet       suppresses all output except errors and banner
      --silent      suppresses all output except errors