MLS Sequence Length Calculator for Audio Tests

MLS Sequence Length Calculator

Calculate maximum length sequence order, samples, period time, impulse-response window, repeat averaging time, and acoustic path limits for MLS measurement work.

🎧 MLS Measurement Presets

Pick a measurement scenario to load a practical MLS order and capture plan. The calculator checks whether the circular MLS period is long enough for the expected decay and room path.

📏 Sequence And Capture Settings
Sequence length is 2^m - 1 samples.
Playback and capture clock for one MLS chip per sample.
Oversampled chips lengthen the period and lower the Nyquist band.
Completed MLS periods summed after synchronization.
Periods played before averaging to settle buffers and levels.
Expected usable IR or RT window in seconds.
Speaker-to-reflection or delay path in feet.
Used for speed of sound, in °C.
Used for memory and stored-capture estimates.

For classic binary MLS, the order m is the shift-register length and the period contains every non-zero register state exactly once.

MLS Sequence Length
16,383
samples, order 14
One-Period Time
341 ms
48 kHz chip clock
Usable IR Window
0.341 s
384 ft one-way sound path
Full Capture Time
3.07 s
8 averages, +9.0 dB

Calculation Breakdown

MLS length formula2^14 - 1 = 16,383 samples
Effective chip rate48,000 chips/s
Frequency-bin spacing2.93 Hz
Target decay coverageCovered with 61 ms spare
Longest path checkWrap-safe by 324 ft
Samples captured147,447 samples total
Capture storage estimate0.42 MB mono
Linear correlation work0.13 million multiply-adds
MLS Spec Grid
2^m - 1
Period length formula
-1/N
Off-peak autocorrelation
N/Fs
Circular IR window
3 dB
Noise gain per 2 averages
📊 Order Length Reference
MLS order Sequence length Period at 48 kHz Frequency spacing Typical measurement use
m = 101,023 samples21.3 ms46.92 HzVery short device checks and latency spotting.
m = 124,095 samples85.3 ms11.72 HzFast loudspeaker close-mic checks.
m = 1416,383 samples341 ms2.93 HzSmall-room impulse windows and monitor tuning.
m = 1665,535 samples1.37 s0.73 HzRoom decay, studio RT work, and longer reflections.
m = 18262,143 samples5.46 s0.18 HzQuiet measurements and reverberant spaces.
m = 201,048,575 samples21.85 s0.046 HzLong captures where repeat time is acceptable.
🎚 Measurement Comparison Grid
Method Signal shape Best strength Watch item Length planning note
MLSBinary pseudo-randomFast repeat averagingNonlinear distortion folds into the IRPeriod must exceed the room response.
Log sweepSine sweepSeparates harmonic distortionNeeds deconvolution sweep fileSweep duration sets SNR and low-frequency time.
Linear sweepSine sweepSimple generator setupLess efficient at low frequenciesUse longer sweeps for bass resolution.
Pink noiseRandom noiseRealtime spectral balanceNot a direct impulse responseAverage time controls display stability.
📍 Common Project Size Table
Measurement project Suggested order 48 kHz period Path window Starting repeats
Nearfield woofer responsem = 1285 ms96 ft4 averages
Vocal booth reflection mapm = 13171 ms192 ft8 averages
Small control room IRm = 14341 ms384 ft8 averages
Studio decay estimatem = 161.37 s1,535 ft12 averages
Lecture hall responsem = 172.73 s3,071 ft16 averages
Reverberant sanctuarym = 185.46 s6,142 ft16 averages
🧮 Primitive Tap Reference
Order One common feedback polynomial Length Autocorrelation peak Use note
10x^10 + x^3 + 11,0231,023Good for electronics and nearfield checks.
12x^12 + x^6 + x^4 + x + 14,0954,095Short loudspeaker tests with quick repeats.
14x^14 + x^5 + x^3 + x + 116,38316,383Useful default for small-room MLS work.
16x^16 + x^5 + x^3 + x^2 + 165,53565,535Longer decay windows without very slow tests.
18x^18 + x^7 + 1262,143262,143Large rooms or low ambient SNR.
MLS wrap tip: keep the MLS period longer than the entire impulse response you want to see. Late decay that exceeds the period wraps back into the start of the recovered IR.
Averaging tip: every doubling of accepted MLS periods improves random-noise averaging by about 3 dB, but it cannot remove loudspeaker distortion or clipping artifacts.
Clock tip: use the same stable sample clock for playback and capture where possible. Small drift across repeated periods blurs the recovered correlation peak.
Order tip: raise the order when the decay target or path check turns yellow. Lower the order when you need rapid iterative placement checks.

It would be simple if you could just generate some sound and see how long it takes until you hear an echo of yourself. That’s actualy quite complicated. You want a consistant signal. This lets you tell your room’s acoustic properties apart from other potential problems, such as the speakers themselves or electronics in your playback chain (i.e., system background hum).

One solution is called a Maximum Length Sequence (MLS), which are basically binary patterns (think digital white noise) that has ideal autocorrelation properties. That is, when you correlate what comes out back against itself you get a perfect impulse response. But there’s a catch: you have to use the right length.

How to Choose the Right MLS Length

What is the key variable? It’s the order of the sequence. At whatever sample rate you select, this means that calculator will tell you how many samples it can fit in a given period. This helps prevent common mistakes. Higher order result in a longer period. There is more elapsed time between the start of one signal repeat and the next before it starts to wrap around on itself.

Late energy folds back into beginning of the impulse response if the MLS period is too short for your room’s long decay tail. Then you end up measuring ghosts. The sequence length isn’t aligned with what acoustically exists in space. Start by considering the decay time.

Twelve or fourteen are usually plenty for a small vocal booth with lots of absorption; it makes measurement fast while reducing exposure to system drift. Attempting the same order in a large reverberant hall cut off the tail end before it has a chance to die out. The trick here is getting more than enough time so that sound doesn’t matter anymore different than your noise floor.

If there are long reflection paths or a delayed speaker array, then you also need to be sure that overall path length fits into the sequence window. Averaging plays an overlooked role. Once the sync lock is stabilized, you can increase number of measurements (the signal-to-noise ratio improves). However, the initial few cycles may be contaminated by level adjustments or startup transients; the tool discards these warm-up periods. It makes a difference if you attempt to resolve fine details of frequency response, and throwing away the first few does clean up result.

And this all depends on sample rate too. For example, most audio work runs at forty-eight kilohertz, because that gives enough bandwidth to cover audible frequencies without requiring excess storage space. Higher rates give more resolution but increase time it takes to process any single command (which may not be worth the extra work). The calculator will show you total time required to capture and help match those factors.

Twenty seconds on your test? Chances are you’re working with some high averaging count or an exceedingly long sequence. MLS treats nonlinear distortion differently than sweeps do. Early artifacts is harmonic distortions that fold back into the impulse response through the amplifier or speaker. If your playback chain is clean, this isn’t necessarily bad and can be an indicator of what to listen for.

To help ensure a clean response, keep levels moderate so no clipping occurs on the peak of binary sequence. Most people tend to crank up the volume thinking it’s helping them; it doesn’t and usually just breaks the straight-line assumption. In reality, selecting the proper MLS length is a compromise between dynamic range, resolution and time.

It must be short enough to record the complete acoustic picture but not so short that it miss information. It must be long enough to average out unwanted ambient noise without wasting time. You should of checked your settings first. In a usual recording scenario, the reference table provides a starting point, such as when comparing nearfield checks to room decay analysis.

For generic studio work, start with something reasonable such as fourteen. That’s a decent compromise between window size and speed. Tweak upwards if it’s wrapping and downwards if all you’re after is a quick frequency check on a driver. Remember: this isn’t about getting every metric perfect; it’s about having a consistant representation of the space.

After capturing the clean impulse response, the rest falls out naturaly; measure the room, not the artifacts of your test setup.

MLS Sequence Length Calculator for Audio Tests

Leave a Comment