npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

smpltrek-builder

v1.0.0

Published

Packs a drum-pattern-engine song into a device-loadable Sonicware SmplTrek project Config. Includes SmplTrek genre presets. No runtime dependencies.

Readme

smpltrek-builder (JS)

Packs a drum-pattern-engine song into a device-loadable Sonicware SmplTrek project Config. No runtime dependencies.

It maps universal instrument roles to device notes (per-kit KIT_MAPS), writes notes + velocity + micro-timing + native swing + scene length/repeats/time-signature, and clones the bundled base template. Also ships the SmplTrek genre presets.

Install

npm install drum-pattern-engine smpltrek-builder

Usage

import { arrange } from 'drum-pattern-engine';
import { buildProject, template, GENRES, GENRE_METER } from 'smpltrek-builder';

const g = GENRES.JAZZ;
const params = { ...g.p, instrumentSpread: g.p.densitySpread, repetition: 0.7,
                 oddMeter: GENRE_METER.JAZZ.amount };
const song = arrange(params, { length: 'full', bpm: g.bpm, seed: 12345,
  structure: g.struct, feel: g.feel, meterMode: GENRE_METER.JAZZ.mode, meterSet: GENRE_METER.JAZZ.set });

const cfg = buildProject(template.bytes(), song, { kit: g.kit, bpm: g.bpm });
// cfg: Uint8Array -> write as SmplTrek/Project/<name>/Config

API

  • buildProject(templateBytes, song, { kit, bpm }) → Uint8Array device Config.
  • template.bytes() → bundled base Config to clone.
  • setStepAuto(d, ch, lane, step, value) → per-step LEVEL/PAN/SEND automation.
  • KIT_MAPS → role→note maps for the 15 factory kits.
  • GENRES, GENRE_METER → SmplTrek presets (params + kit + meter profile).

Reverse-engineered Config format (notes)

Config = nested 16-byte-header TLV chunks. Tempo: PJST +4, uint32 LE = BPM×10. Note cell (SQDT, 8 bytes): note · velocity · _ · timing(int8 ±99) · 0x32 · …. Clip (SQPR): byte2 length-in-steps, byte4 note-resolution, byte5 swing %. Scene (SCDT, 4 bytes): used · repeats · length-bars · time-sig. Automation (DRPL): lanes 0/1/2 = LEVEL/PAN/SEND.

Legal

SmplTrek and Sonicware are trademarks of Sonicware Inc. This is an independent, unofficial tool — not affiliated with, endorsed by, or sponsored by Sonicware.

License

MIT — Alexander Schornberg.