Skip to content

Convert Blackrock ns5 or ns6 file to a wav file

Notifications You must be signed in to change notification settings

CerebusOSS/ns2audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Just a silly little script to convert Blackrock ns5 or ns6 files to audio.

Prerequisites

  • Install dependencies. I use uv.

Usage

As long as you have a Python environment with the required dependencies installed then it's just a matter of calling the ns2audio.py script with arguments.

I use uv so I typically run it with uv run ns2audio path/to/my.ns5

 Usage: ns2audio.py [OPTIONS] FILEPATH                                                                                                                                                           
                                                                                                                                                                                                 
╭─ Arguments ───────────────────────────────────────────────────────────────────────────────────
│ *    filepath      TEXT  [default: None] [required]                                           
╰───────────────────────────────────────────────────────────────────────────────────────────────
╭─ Options ─────────────────────────────────────────────────────────────────────────────────────
│ --chidx             INTEGER  [default: 1]                                                     
│ --start-time        FLOAT    [default: 0.0]                                                   
│ --duration          FLOAT    [default: None]                                                  
│ --help                       Show this message and exit.     
╰───────────────────────────────────────────────────────────────────────────────────────────────
  • chidx -- 1-based index to the channel that will be converted. You can provide more than 1 integer by editing the script if you want stereo audio files.
  • start-time -- in seconds since the beginning of the file

Tested in Python 3.12 on MacOS ARM.

About

Convert Blackrock ns5 or ns6 file to a wav file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages