tracker-lib is a TypeScript-based library for reading, writing, and creating files compatible with the Polyend Tracker family of devices (1, 2, 3).
It provides easy-to-use utilities for manipulating Instruments (.pti), Patterns (.mtp), and Projects (.mt) files.
This library was possible thanks to Polyend's effort to document the Tracker's file format.
File objects).Simply install via npm:
npm install @polyend/tracker-lib
import Tracker from '@polyend/tracker-lib';
async function loadInstrument() {
// In NodeJS, provide the file path. In the browser, provide a File object.
const instrument = await Tracker.readInstrument('./path/to/instrument.pti');
console.log(instrument);
}
import Tracker from '@polyend/tracker-lib';
// Create a new pattern with 8 tracks and 64 steps
const pattern = Tracker.createPattern(8, 64);
// Write the pattern to a file
await Tracker.writePattern(pattern, 'pattern_01.mtp');
Explore the modules and API references to learn more about everything the library can do:
Sandroid has created two example projects to demonstrate how you could use this library:
We hope, these examples will spark some ideas of what you can build with tracker-lib.
Please share any and all creative uses of the library with us, over at the Polyend Backstage Forum.
If you have any questions or feedback, feel free to reach out on the Polyend Backstage Forum.
The MIT License (MIT)
Copyright (c) 2026 Polyend
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.