Skip to content
python implementation of the WTPA2 sample packer/extracter
Branch: master
Clone or download
Pull request Compare This branch is 5 commits ahead of mdooley:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
wtpa2.py

README.md

wtpa2-python

python implementation of the WTPA2 sample packer/extractor

Commands take the form of python wtpa2.py COMMAND ARGUMENTS

Currently supported commands:

  • pack - create a WTPA2 readable binary file from a list of AIFF files and directories
  • packmap - create a WTPA2 readable binary file from a file that is a list of AIFFs where each line(-1) corresponds to a sample slot
  • extract - extract all samples from a WTPA2 formatted binary file or raw device to a target directory. An optional argument can be supplied to limit the number of sample slots examined

Usage

Here are some example uses:

python wtpa2.py pack samples.bin file1.aiff dir1/ dir2/ file2.aiff
python wtpa2.py packmap samples.bin samples.txt
python wtpa2.py extract samples.bin samples/
python wtpa2.py extract --slots 8 /dev/sdc samples/
You can’t perform that action at this time.