Skip to content
altstrument

NSD.Lib

Tool for NES / Famicom (Nintendo)

NES sound driver for cc65 and ca65 projects together with an MML compiler that turns music text into ca65 source for games or into NSF files.

by Shaw02

ActiveSource: openBSD-2-Clause
Grey Nintendo Entertainment System console with its rectangular body and a wired rectangular controller beside it, shown against a white background
Photo: Evan-Amos, via Wikimedia Commons, public domain, via commons.wikimedia.org
Distribution
Build from source yourself
Requires stock
cc65 toolchain; NES or emulator to play the result
License notes
LICENSE.md is the BSD 2-Clause License with the copyright holder given as S.W.
Source
github.com https://github.com/Shaw02/nsdlib
Homepage
shaw02.github.io https://shaw02.github.io/nsdlib/

Quality

Established

Mature and widely used.

  • MaturityStrong

    7.6 years · 49 releases · 269 commits

  • PopularityModerate

    ★ 33 · 2 forks (1 active) · 5 watching

  • VitalityStrong

    14 commits last year · last activity 2026-10-15

  • Issue healthStrong

    10 closed / 2 open · 31 of 31 PRs merged

  • InfluenceLow

    0 catalog entries build on this

  • CommunityModerate

    2 contributors · bus factor 1

Data from GitHub, 2026-11-23. How ratings work.

Description

The sound driver runs on the console's 2A03 and is called once per frame from a game, with music and sound effects played from compiled data and DPCM samples supported. The nsc compiler reads a short MML-style music language and writes ca65 assembly to link into a game or a standalone NSF file, with options for NSFe and NSF version 2 output. The repository also holds the driver and compiler source, include files, sample programs and a Japanese manual. The newest GitHub release is v1.30 from December 2020, while development continues on the develop branch. The compiler runs on a computer, and the driver runs on the NES; it is listed here as a tool for the console.

Install notes

Follow the manual: write music in MML, compile it with nsc, then assemble and link it with the driver library into a cc65 or ca65 NES program, or compile straight to an NSF file for an emulator or NSF player. The manual is in Japanese.

Version history

NSD.Lib version history
VersionDateNotes
develop @ 477e14c2026-10-15
Latest commit on the develop branch, which is ahead of the newest release.
v1.302020-12-29
Fixes playback in Mesen and adds NSFe and NSF version 2 output and metadata commands.

Back to NES / Famicom