Skip to content
altstrument

libpo

Tool for PO-32 tonic, PO-33 K.O!, PO-35 speak, PO-133 Street Fighter and PO-137 Rick and Morty (Teenage Engineering)

Freestanding C99 library for Pocket Operator data transfers, covering the PO-32, PO-33, PO-133, PO-35 and PO-137, with backup decoding and encoding, sample conversion, drum and speech synthesis and command-line WAV tools.

by Eric Lewis

ActiveSource: openMIT
Front view of the PO-32 tonic, a black pocket-sized unit with a hanging tab at the top, a monochrome LCD showing a drawing, two grey knobs and a grid of round buttons labelled sound, pattern and bpm
Photo: Teenage Engineering, manufacturer product image, via teenage.engineering
Distribution
Build from source yourself
Source
github.com https://github.com/ericlewis/libpo

Quality

Established

Mature and widely used.

  • MaturityModerate

    0.7 years · 6 releases · 227 commits

  • PopularityStrong

    ★ 216 · 13 forks (3 active) · 5 watching

  • VitalityStrong

    227 commits last year · last activity 2026-11-21

  • Issue healthStrong

    0 closed / 0 open · 73 of 75 PRs merged

  • InfluenceLow

    0 catalog entries build on this

  • CommunityModerate

    3 contributors · bus factor 1

Data from GitHub, 2026-11-23. How ratings work.

Description

Formerly libpo32. The library builds and parses the patch, pattern and state packets the PO-32 receives, renders them to modem audio to play into the device, and decodes recorded transfer audio back into packets. Version 1.0.0 adds the stereo backup format of the PO-33 K.O! and PO-133 Street Fighter, with pattern, settings and sample-pool editing and sample conversion, and the PO-35 speak and PO-137 Rick and Morty, with speech analysis and synthesis. It also renders the PO-32 drum voice locally, so sounds can be previewed without the hardware. Version 2.0.0 removes the Go module that earlier versions carried and keeps the C library and native tools. Version 2.1.0 adds lossless state and pattern codecs, sample-pool inspection and edits for the PO-33 and PO-133, transactional speech and table replacement for the PO-35 and PO-137, and command-line tools for comparing frames and verifying transfers. The core uses caller-owned memory and no libc runtime, file I/O or audio APIs. The repository's example programs include a command-line pattern editor and tools that dump or rebuild packets from a transfer recording. The README and the 2.1.0 notes say only selected rebuilt PO-33 backups, sample edits and a PO-35 scale-only edit have been accepted on hardware, and that the PO-133 hardware and generated PO-35 and PO-137 speech are not established. It is not a replacement for the device's firmware.

Install notes

Build with CMake and a C99 compiler; the README shows configure, build, test and install steps. To use a generated transfer on the device, render it to audio and play it into the PO-32 while it is in its receive mode.

Version history

libpo version history
VersionDateNotes
2.1.02026-11-21
Adds lossless PO-32 state and pattern codecs, PO-33 and PO-133 sample-pool inspection and edits, PO-35 and PO-137 speech and table replacement with typed pattern controls, and command-line frame inspection and transfer readback checks. PO-35 and PO-137 speech analysis changes how new encodes fit coefficients, and decoders recover the first valid transfer after an interrupted attempt. The notes say selected PO-33 sample edits and a PO-35 scale-only edit were accepted on hardware, while generated PO-35 key edits and arbitrary speech are not validated.
2.0.02026-11-05
Removes the in-tree Go module and its generated C bundle, so Go users must pin an earlier revision. PO-32 capture decoding accepts extensible WAV input, and the parser reads the one-byte pattern-slot record found in older backups.
1.0.02026-11-05
Adds support for the PO-33, PO-133, PO-35 and PO-137, a single Go module for all model families, and corrected drum synth parameter maps.
0.3.02026-08-30
Go bindings, streaming audio APIs, fuzzing and sanitizer CI, and synth speedups.
0.2.12026-03-29
0.2.02026-03-28

Back to PO-32 tonic