Skip to content

Phase Aligner


1. Overview

Phase Aligner is Mantrika Tools' phase-alignment tool for multiple time-overlapping media items. Its purpose is "load several multi-mic / multi-take clips of the same origin → analyze → align with one click".

phase-aligner-01

It solves two typical problems:

  • Multiple microphones recording the same source (drum in/out, snare top/bottom, main/secondary vocal mics — have timing differences from a few milliseconds to tens of milliseconds; when summed, phase cancellation makes the sound thin.
  • Multiple takes intended to be layered for thickness are offset by a few samples, sounding muddy and unfocused.

It does two things:

  • Measure: analyze the time delay and polarity of each item relative to a reference item, giving correlation / summed-gain metrics.
  • Modify: nudge the position of checked items into alignment and invert polarity if needed. It modifies item position and polarity only; it does not render or destroy waveforms.

The whole workflow revolves around "a group of time-overlapping items" — select them, Load → Analyze → check Fix → Apply.


2. How to Open

Menu entry:

Extensions → Mantrika Tools → Phase aligner

Or search in the Action List:

Action namePurpose
mantrika : Process - Phase AlignerOpen / close the Phase Aligner window

3. Main Window Overview

phase-aligner-02
AreaDescription
Mode selectionPhase Align or Max Energy, for different purposes (see §5)
Max DelayMaximum alignment displacement allowed; Phase Align defaults to 50 ms, Max Energy defaults to 10 ms
Focus (Max Energy only)Which frequency band to focus on for alignment: Sub Bass / Low / Mid / Full
LoadLoad the currently selected items from the Arrange view into the table
AnalyzeAnalyze the offset of all items relative to the Reference
Fix columnChecked items are aligned when Apply is pressed
Ref columnSingle-select — designates which item stays still as the reference
Status barLoad / analysis progress and results
Select AllCheck / uncheck all at once (auto-skips low-correlation items)
ApplyActually performs alignment: nudges position, inverts polarity if necessary

The reference item is temporarily colored dark blue in the Arrange view to help you confirm which one is the reference. The color is automatically restored when the window closes or the reference changes.


4. Basic Usage — Three Steps

1. In the Arrange view, marquee-select all items to align (must be ≥2 and overlap in time)
2. Open Phase Aligner → click Load
3. In the Ref column, click a circle to set the reference
4. Click Analyze
5. Read the Delay / Phase / Corr columns
6. Check the Fix column for the rows you want to fix (or click Select All)
7. Click Apply

What Apply does:

  • Time-shifts the position of each checked item along the timeline to align it with the Reference.
  • If polarity inversion is detected (the Phase column shows ⚠️), it flips that take's volume once (equivalent to inverting polarity).

After Apply, the window automatically runs Analyze again so you can immediately see the alignment effect — ideally all Delay values become close to 0 and Phase shows ✓

Apply modifies item position + polarity; the original audio files are untouched. To undo, simply press Ctrl+Z once.


5. How to Choose the Two Modes

5.1 Phase Align (Default)

Best for: aligning multiple sensors/takes of the same source (multi-mic drum recording, layered vocal takes, stereo left/right mic matching).

  • Uses cross-correlation to find each item's time offset relative to the reference.
  • Polarity determination is based on waveform-shape comparison.
  • Max Delay range is larger (up to 200 ms), suitable for cases where sensor distances are larger.
  • The last column is named Corr, showing a correlation coefficient from 0.0 to 1.0.

How to read Corr:

ValueMeaning
High (≥ 0.7)Strong correlation, result is reliable, feel safe to Apply
Medium (0.3 ~ 0.7)Weak correlation, alignment possible, but listen before deciding
Low (< 0.3, gray)Too weak — likely not from the same source; the Fix checkbox for that row is disabled

5.2 Max Energy

Best for: when you don't care about the geometric meaning of phase "alignment" and just want multiple items to sum louder / with less cancellation (typical scenarios: bass DI + mic, kick sub-alignment, synth layering for energy maximization)

  • Exhaustively tries displacements within the Max Delay window and picks the offset that maximizes summed energy.
  • Adds a Focus frequency band selector — energy is evaluated only in the specified band, especially useful for low-frequency alignment (bass / kick).
  • The Ref column becomes Lock (🔒) — designates locked item
  • The last column becomes Gain (dB):
ValueMeaningColor
≥ +2.5 dBSignificantly louder when summed, strongly recommended to ApplyGreen
0 ~ +2.5 dBSlight improvementYellow
< 0 dBQuieter after alignment — suggested to leave uncheckedRed

Switching modes clears the previous analysis results; you must click Analyze again.


6. Table Column Quick Reference

ColumnPhase Align modeMax Energy mode
FixChecked items are aligned when Apply is pressedSame
RefSingle-select radio ◉/○, designates reference itemSingle-select 🔒/·, designates locked item
NameTake nameSame
DelayTime offset relative to reference; REF = reference itselfSame; LOCK = locked item itself
Phase✓ normal polarity / ⚠️ inverted (Apply auto-flips)Same
Corr / GainCorrelation coefficient 0~1 (< 0.3 gray, unfixable)Summed gain in dB (color coding see §5.2)

7. Which Items Are Loaded

When you click Load, items are filtered from the current Arrange selection:

TypeLoaded?
≥2 audio items selected
Overlaps in time with at least one other selected item (> 10 ms)
Selection count < 2❌ Status shows Select at least 2 items
Items with no time overlap❌ Status shows No overlapping items found
MIDI take❌ Silently skipped
No active take❌ Silently skipped

Overlap is what matters — two clips that don't overlap in time cannot meaningfully be "aligned".


8. Status Feedback

The status bar at the bottom of the main window reports results:

Display textMeaning
N items loadedLoad successful
Select at least 2 itemsFewer than 2 audio items in the selection
No overlapping items foundSelected items do not overlap in time
Analysis complete: K resultsK valid results 🟢
Low correlation - items may not share a common sourceAll correlations are low; likely not the same source
No valid analysis resultsNo valid results for any item
Fixed K itemsApply complete 🟢
Selection changed, click Load to refreshYou changed the selection in the Arrange view; need to Reload
Mode changed, re-analyze requiredMode switched; need to re-Analyze
Reference changed, re-analyze requiredReference changed; need to re-Analyze

9. Typical Workflows

Workflow A: Multi-mic drum phase alignment (most common)

1. Select KickIn + KickOut + KickSub items
2. Open Phase Aligner → Load
3. Default Phase Align mode
4. Set KickIn as Ref (the most direct-sounding one)
5. Analyze
6. Read Corr column: > 0.7 is very reliable
7. Select All → Apply
8. Listen to the summed result — low end should be noticeably firmer

Workflow B: Bass DI + mic for maximum summed level

1. Select BassDI + BassMic
2. Load → switch to Max Energy mode
3. Focus → Low (200 Hz)
4. Set BassDI as Lock (keeps it still)
5. Analyze
6. Read Gain column — only check rows ≥ 0 dB (skip red rows)
7. Apply

Workflow C: Layered vocal takes

1. Select all vocal takes to layer
2. Load → Phase Align mode
3. Ref → the main take with the best feel
4. Reduce Max Delay a bit (10~20 ms, take differences are usually small)
5. Analyze → Select All → Apply

10. Troubleshooting

SymptomCauseFix
Load shows Select at least 2 itemsFewer than 2 audio items in selectionSelect more
Load shows No overlapping items foundSelected items don't overlap in timeDrag them to an overlapping range, or use different material
After Analyze all rows are gray, Fix checkbox unclickableIn Phase Align mode all correlations < 0.3, likely not the same sourceTry Max Energy mode, or confirm the right items are selected
Status shows Selection changed, click Load to refreshYou changed selection / deleted an item in ArrangeClick Load to reload
Apply sounds worse (Max Energy mode)Checked a row with negative GainCtrl+Z to undo, then skip red rows
Reference item turned dark blueTemporary window highlightColor restores automatically when switching Ref or closing window
Can't find polarity-inverted itemsLook for the ⚠️ icon in the Phase column 🟠Apply automatically flips polarity; no manual action needed
Want to undo the whole alignmentCtrl+Z onceApply is one undo block