🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

mod-sample-extractor

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mod-sample-extractor

Extracts PCM samples from MOD files

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
0
Created
Source

mod-sample-extractor

mod-sample-extractor is a Node.js command-line tool for extracting raw PCM sample data from ProTracker MOD files.

Prerequisites

  • Node.js:
    This tool requires Node.js (version 10 or higher). If you don't have Node.js installed, please follow these steps:

    • Download and Install:
      Visit the official Node.js website and download the installer for your operating system. Follow the installation instructions provided on the website.

    • Verify Installation:
      Once installed, open a terminal or command prompt and run:

      node -v
      

      This should output the version of Node.js you installed.

Installation

To install the tool, run:

npm install -g mod-sample-extractor

Alternate Installation

In case it has been 10 years and the npm package repository ceased to exist, you can still clone this repository and run the tool manually:

  • Clone the Repository:
git clone https://github.com/andormade/mod-sample-extractor.git
cd mod-sample-extractor
  • Install
npm install -g

Usage

Once installed, you can run the tool from anywhere:

mod-sample-extractor path/to/yourfile.mod

The tool reads the provided MOD file, parses the header and sample descriptors, and then extracts the PCM sample data into separate files in the current directory.

PCM Specification

Each PCM file exported by the tool has the following characteristics:

  • Format: Raw PCM data (no header or metadata)
  • Bit Depth: 8-bit (signed)
  • Channel: Mono

Keywords

mod

FAQs

Package last updated on 15 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts