Maximum Tone Duration in Audacity
This article provides an overview of the maximum duration possible when generating a single tone in Audacity. It covers the technical constraints established by the software's sample-tracking architecture across different software versions, the input limits of the tone generator interface, and the practical storage limitations that affect audio generation.
Software Architecture Limits
The maximum duration of a generated tone depends primarily on the version of Audacity in use:
- Audacity 2.1.3 and Newer: Modern releases of Audacity use a 64-bit integer to track audio samples. Under this architecture, the theoretical sample limit is \(2^{63} - 1\) samples. At a standard sample rate of 44,100 Hz, this allows for a continuous tone lasting millions of years, effectively making software duration limits infinite for practical use.
- Audacity 2.1.2 and Older: Older legacy versions tracked samples using a signed 32-bit integer, capping track length at \(2^{31} - 1\) samples (2,147,483,647 samples). At a sample rate of 44,100 Hz, this capped the maximum single tone duration at approximately 13.5 hours. At higher sample rates, such as 96,000 Hz, the maximum duration was reduced to approximately 6.2 hours.
Tone Generator Interface Constraints
When using the Generate > Tone tool, duration is
determined by the selection format configured in the dialog box.
Audacity allows users to define duration using formats such as
hh:mm:ss, samples, or seconds. The numerical input fields
accept arbitrarily large numbers of hours, meaning the user interface
does not enforce an artificial cap below the engine's sample limit.
Practical Storage Constraints
While modern Audacity versions can calculate tone durations of virtually any length, real-world generation is constrained by system storage and file limits:
- Disk Space: Audacity works with uncompressed 32-bit float audio by default. A mono tone generated at 44,100 Hz requires approximately 10.58 megabytes of disk space per minute, or roughly 635 megabytes per hour. A stereo tone doubles this requirement to approximately 1.27 gigabytes per hour.
- Project File Limits: Since Audacity 3.0.0, projects
are stored in a single unified database file (
.aup3). SQLite limits individual database files to 140 terabytes, which sets the ultimate hard limit on continuous project length based on drive capacity and file system support.