timebase

Manage musical time primitives and tempo conversion with integer tick arithmetic.

13|1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/Generous-Corp/pulp --skill timebase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: timebase
Source: https://github.com/Generous-Corp/pulp/tree/main/.agents/skills/timebase
Command: npx skills add https://github.com/Generous-Corp/pulp --skill timebase

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill resolves complex synchronization issues in audio applications by providing a robust, integer-based framework for musical time, tempo maps, and transport quantization.

Core Features & Use Cases

  • Sample-Accurate Timing: Manages musical positions using high-precision integer tick arithmetic to prevent floating-point drift.
  • Tempo and Meter Mapping: Provides immutable, compile-ready tempo and meter maps with support for linear tempo ramps.
  • Use Case: Use this skill when implementing a custom transport engine or audio sequencer that requires exact sample-to-tick alignment and consistent playback behavior across different sample rates.

Quick Start

Use the timebase skill to calculate the sample position for a specific beat in a project with a complex tempo map.

Frequently Asked Questions about timebase

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I achieve sample-accurate audio playback timing in a C++20 plugin?

Sample-accurate audio playback timing in C++20 plugins is achieved by using integer-based tick arithmetic to calculate exact sample positions, which prevents the floating-point drift that typically degrades timeline synchronization during transport playback.

What is the best way to handle tempo conversion with linear ramps in an audio sequencer?

Tempo conversion with linear ramps in an audio sequencer is handled by compiling immutable tempo maps that define precise linear tempo transitions, ensuring accurate musical time progression and consistent synchronization across variable playback speeds.

Why does floating-point drift happen in musical transport engines and how can I prevent it?

Floating-point drift in musical transport engines happens because fractional sample calculations accumulate rounding errors over time; preventing it requires saturating 64-bit integer tick arithmetic to maintain exact sample-to-tick alignment.

Can I use integer-based tick arithmetic for transport quantization across different audio sample rates?

Integer-based tick arithmetic for transport quantization supports different audio sample rates by calculating exact sample-to-tick alignment, ensuring consistent playback behavior and timeline synchronization regardless of the host environment's sample rate.

When do I need an immutable tempo map for DSP audio application development?

An immutable tempo map for DSP audio application development is needed when implementing a custom transport engine that requires exact, compile-ready tempo and meter definitions to maintain strict timeline synchronization during complex playback operations.