Skip to content
/ nsfp Public

A command-line player of Nintendo NES/Famicom music files (.nsf/.nsfe)

License

Notifications You must be signed in to change notification settings

munshkr/nsfp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nsfp

A command-line player of Nintendo NES/Famicom music files (.nsf/.nsfe)

Based on the Game Music Emu library.

Usage

nsfp 0.1 - NSF/NSFE player
Usage:
  ./nsfp [OPTION...] INPUT

      --input arg  Input file
  -i, --info       Only show info (default: false)
  -t, --track arg  Start playing from track NUM (default: 0)
  -s, --single     Stop after playing current track (default: false)
  -h, --help       Print this message (default: false)

For example, the following plays only track 3

$ nsfp Kirby.nes -t 3 -s
nsfp 0.1 - Simple command-line player of NSF/NSFE files
Game:      Kirby's Adventure
Author:    Hirokazu Ando, Jun Ishikawa
Copyright: 1993 HAL Laboratory, Nintendo

Kirby's Adventure: 3/57  (2:30)
...

When running you can also use the following key to control the player:

  • left: Play previous track
  • right: Play next track
  • space: Pause/resume playing
  • q, ctrl+c: Exit

Dependencies

On Debian/Ubuntu you need a recent GCC compiler, and the development files forSDL 2.0 and Game Music Emu:

sudo apt-get install build-essential libsdl2-dev libgme-dev libncurses-dev

Install

After cloning the repository, go to the directory and run the following to compile and install the player:

make
sudo make install

Disable ncurses

nsfp uses the ncurses library for key handling. You can disable it by passing -DCURSES=OFF on the cmake line:

mkdir build && cd build
cmake -DCURSES=OFF ..
make
sudo make install

License

Source code is released under Apache 2.0 license. Please refer to LICENSE.

About

A command-line player of Nintendo NES/Famicom music files (.nsf/.nsfe)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages