By Tim King · Updated
MOD Sample Extractor
Rip Every Sample From a Tracker Module as WAV With Loop Points Kept
OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.
How the MOD Sample Extractor works
Drop a MOD, XM, S3M or IT module and this MOD sample extractor lists every sample in it with its bit depth, rate, length and loop. Preview plays one sample by its number in the list, and Export saves all of them as separate WAV files in a zip, at their original rate, with each loop point written into the file so samplers loop it the way the tracker did. The module is read inside this tab and never uploaded.
What the MOD sample extractor saves
Each sample becomes one WAV file named with its number and its name from the module, such as 03-bass.wav. Samples are written as 16-bit PCM at the rate the tracker played middle C, so 8-bit Amiga samples convert without any change to their sound and nothing is resampled. Empty slots, which old MODs often used to carry text, are skipped.
Loop points and the smpl chunk
A sustained instrument in a tracker plays its sample once, then repeats a loop section for as long as the note holds. The extractor writes that loop into a standard smpl chunk in the WAV, the same one sampler plugins, Renoise, OpenMPT, Kontakt and hardware samplers read, so the sound loops seamlessly when you load it. Ping-pong loops are saved as plain forward loops.
Sample rates by format
Sample rates the extractor writes for each module format
| Format | Bit depth | Rate written |
|---|---|---|
| MOD | 8-bit | 8363 Hz, the Amiga rate for middle C |
| S3M | 8 or 16-bit | The C4 speed stored with each sample |
| XM | 8 or 16-bit | Worked out from the relative note and finetune |
| IT | 8 or 16-bit, mono or stereo | The C5 speed stored with each sample, compressed samples included |
Finding a sample to preview
The stats under the settings number every sample with sound. Type that number in Preview sample number and press Preview to hear it alone. To read the rest of the module's details, use the module info viewer, and to hear the whole song use the MOD player.
FAQ
Why does the extracted sample sound lower or higher than in the song?
The WAV holds the sample at the pitch the tracker treats as middle C. In the song each note plays it faster or slower, so a bass line written two octaves down sounds deeper than the file. Load it into a sampler, map it to middle C and play the same notes to hear it as the composer did.
Can I extract samples from other module formats?
This page reads MOD, XM, S3M and IT, which hold most tracker music. Rarer formats such as MED, MTM or 669 can still be played and converted on the MOD to WAV converter, but their samples cannot be extracted here yet.
Are the samples free to use?
Not automatically. Many classic modules used samples taken from synthesizers, records and sample CDs, and the composer's own sounds belong to them. Credit the module and its author, and check the licence before using a sample in a release.
Is my module uploaded?
No. The module is parsed by JavaScript running in this tab and the WAV files are built in memory on your computer. Nothing is sent to a server, and closing the tab clears the module and every extracted sample.
See also: all Tracker Music tools, Images, Audio, Video & Screen, PDF, SVG, Simulations & Screensavers, Generative Art, Chart Makers, 3D Model Viewers, Drawing Pads, Mockups & 3D Making, Diagram Makers, 3D Science.
Related tools
Module Info Viewer
Read the title, tracker, channels and hidden message of any module.
MOD Player
Play MOD, XM, S3M and IT tracker modules with a playlist and loop.
MOD To WAV Converter
Convert MOD, XM, S3M and IT modules to WAV or MP3, in bulk.
MOD Pattern Viewer
Watch a module's notes and effects scroll in time with the music.
MOD Channel Muter
Mute or solo channels of a tracker module and save the result.