bbbradsmith / nsfplay

Nintendo NES sound file NSF music player
https://bbbradsmith.github.io/nsfplay/
277 stars 42 forks source link

nsf2wav: disable apu tri & noise phase randomization #69

Closed tsone closed 1 year ago

tsone commented 1 year ago

Disabled nsf2wav randomized noise & tri phases.

This is for my regression tests that compare nsf wav output to a reference. The phases can't be random for these tests to work well.

bbbradsmith commented 1 year ago

The pull request looks OK but I'm surprised it is needed. Does nsf2wav not have a way to set the user configuration?

tsone commented 1 year ago

Nope.

% ./nsf2wav --help
Usage: ./nsf2wav [options] (/path/to/nsf[e] | nez m3u entry) [out.wav]
Convert an NSF[e] file to WAV.

The file to convert can either be a path to an NSF or NSFe file, or can be a
Nez M3U playlist entry. See http://www.vgmpf.com/Wiki/index.php/NEZ_Plug for
the Nez M3U format.

If no output file is specified, nsf2wav will print information about the NSF
to the screen and then exit without performing any conversion.

Options:
 -c, --channels=1        The number of audio channels to output.
 -f, --fade_ms=5000      The length of time in milliseconds to fade out at the
                         end of the song.
 -h, --help              Show this help message.
 -l, --length_ms=300000  The length in milliseconds to output. The final file
                         may be shorter than specified if the NSF program
                         terminates before outputting the specified amount of
                         audio.
 -q, --quiet             Suppress all non-error output.
 -s, --samplerate=48000  The audio sample rate.
 -t, --track=1           Track number, starting with 1.
tsone commented 1 year ago

Thanks! 👍