SampleToNES
SampleToNES
Overview
SampleToNES (sampletones) is a desktop tool for people writing music for the NES 2A03 sound chip, mainly in FamiTracker or Bitphase.
The core idea is to approximate an audio sample using only the chip's basic oscillators — two pulse channels, a triangle, and noise — without any DPCM samples.
A built-in sequencer lets you arrange the reconstructed samples into patterns and play them back inside the application, so you can experiment with the results before exporting the instruments into FamiTracker.
With it you can:
- convert your own recordings — WAV, MP3, FLAC, OGG, AIFF or AU — into NES instruments
- choose which of the four channels each recording may use, and how loud it plays on them
- arrange the results into a song and play it back in the app
- export instruments and songs for:
- FamiTracker
- Bitphase
.nsfprogram- audio
.wavfile
Installation
You can install SampleToNES in three ways:
-
Download a release for Windows or Linux from the releases page, extract it, and start
sampletones. -
Install from PyPI on Windows, macOS or Linux. You need Python 3.12 or newer. On Linux and macOS, install the audio and file dialog libraries first:
sudo apt-get install libportaudio2 libasound2 python3-tk # Debian and Ubuntu brew install portaudio # macOS
Then install the app and start it:
uv tool install sampletones # or: pipx install sampletones sampletones
-
Run from source with Python 3.12 or newer and uv:
make system-deps,make setup, thenmake run.
An NVIDIA graphics card can speed up conversion. The installation guide covers the system libraries each way needs, GPU support, and building a standalone app yourself.
Usage
sampletones starts the app. Your work is saved in a SampleToNES folder inside your documents
folder.
Every operation is also a named command — sampletones convert <audio-path> reconstructs a
recording without the interface, for example. Run sampletones --help for the list, and see the
command-line guide.
Documentation
The user guide explains how to use the app, step by step. The app opens it in your browser from Help ▸ Documentation. The rest of docs/ covers the reconstruction algorithms, the file formats, the Python API and the developer notes.
License
SampleToNES is released under the MIT License.
The bundled fonts are third-party works under their own licenses (SIL Open Font License 1.1 and the Bitstream Vera license) and are not covered by the MIT License.
The standalone bundles on the releases page
additionally contain the Python runtime and every dependency, including several LGPL-licensed
libraries. THIRD-PARTY-NOTICES.md
lists everything they redistribute and what its license requires; the full license texts are in
THIRD-PARTY-LICENSES.txt
and ship inside each bundle.
Metadata
Release files for sampletones 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sampletones-0.3.2.tar.gz | 5.6 MB | With provenance | Details for sampletones-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sampletones-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for sampletones-0.3.2-py3-none-any.whl |
Total release size: 11.2 MB
Release files / sampletones-0.3.2.tar.gz
| Download URL | sampletones-0.3.2.tar.gz |
|---|---|
| Size | 5.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3a9f00497f89cec00f3c0e5be42ba4eafdcfd2fc5fdfb909ffa10de994b33e7
|
|
BLAKE2b-256 checksum How to use checksums |
23d949951e60a2fad6e58a48739cf833f1aec7086fb448ac9140fcba85a4b396
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logRelease files / sampletones-0.3.2-py3-none-any.whl
| Download URL | sampletones-0.3.2-py3-none-any.whl |
|---|---|
| Size | 5.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5cd6b590d3ddc307e23b77630d6c6196ae42ec5c6d2ae6c41e69555be0b8b619
|
|
BLAKE2b-256 checksum How to use checksums |
a45e36d0b3ac4f9031e7f2ba7a5a6ebf8f4737153a23e64933b27027d58046bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logSecurity for sampletones 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sampletones-0.3.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.