Waveform Generator & Synthesizer Back

Waveform Mixer | Sine Waves, RMS and Spectrum

Mix up to four sine, square, triangle or sawtooth components. Change amplitude, frequency and phase to compare the sampled waveform, RMS, peak, crest factor, approximate THD and spectrum.

Waveform Components
Component 1
Amplitude A
Frequency f (Hz)
Hz
Phase φ (°)
°
Component 2
Amplitude A
Frequency f (Hz)
Hz
Phase φ (°)
°
Component 3
Amplitude A
Frequency f (Hz)
Hz
Phase φ (°)
°
Component 4
Amplitude A
Frequency f (Hz)
Hz
Phase φ (°)
°
Composite Waveform Stats
Results
RMS
Peak
Crest Factor
THD (%)
Time-domain waveform & frequency spectrum (DFT)
Time
Theory & Key Formulas
Square: $\dfrac{4A}{\pi}\sum_{n=1,3,5...}\dfrac{1}{n}\sin(n\omega t)$
Triangle: $\dfrac{8A}{\pi^2}\sum_{n=0}^{\infty}\dfrac{(-1)^n}{(2n+1)^2}\sin((2n+1)\omega t)$
Sawtooth: $\dfrac{2A}{\pi}\sum_{n=1}^{\infty}\dfrac{(-1)^{n+1}}{n}\sin(n\omega t)$

TRY THE SAME CONDITIONS

Worked example

Enable only component 1: sine, A=1.0 (amplitude input 10), 50Hz and phase 0°. RMS=0.707, peak=1.000, crest factor=1.414 and THD=0.0%. Add an identical component at 180° to see cancellation.

Calculator ↑

Model and scope

The time record has 512 samples over two periods of the lowest enabled frequency. Square and triangle waves use 20 odd harmonics; sawtooth uses 20 harmonics. The spectrum uses a 64-point DFT after 8:1 decimation. Approximate THD takes the strongest component as its reference and checks multiples 2–8.

Questions and answers

Why is the amplitude input different from A?

The input uses a factor-of-ten scale: 10 means A=1.0 and 100 means A=10.0. No physical amplitude unit is imposed. If interpreting it as voltage, use that same unit for the waveform and RMS.

Why does a square-wave peak exceed A?

A finite harmonic series approximates a discontinuity with overshoot. The sampled approximation therefore need not have the ideal square wave's peak or RMS.

Why can high-frequency components appear in the wrong place?

Spectrum decimation has no antialiasing filter, so harmonics can fold back. The plot is also limited to 600Hz. Do not treat it as a precision spectrum analyzer or THD measurement.

Can I combine frequencies that are not integer multiples?

Yes, but components containing a noninteger number of cycles in the observation window produce spectral leakage. Phase and window length affect the sampled metrics. Start with integer multiples to understand the display.

Theory reference (not certification of this tool)

NI: Sampling and aliasing

Explanation updated: 6 September 2026

🎬 Watch it in motion

At the Closest Point to the Magnet, the Voltage Is Zero | Generator Explained
At the Closest Point to the Magnet, the Voltage Is Zero | Generator Explained
Motion Becomes Electricity | How a Generator Works
Motion Becomes Electricity | How a Generator Works
Motion Becomes Electricity | How a Generator Works
Motion Becomes Electricity | How a Generator Works
Every power plant does one thing | How a Generator works #Shorts
Every power plant does one thing | How a Generator works #Shorts
Spin faster, get more volts | How a Generator works #Shorts
Spin faster, get more volts | How a Generator works #Shorts
Why wall power is AC | How a Generator works #Shorts
Why wall power is AC | How a Generator works #Shorts
Why does a spinning magnet make power? | How a Generator works #Shorts
Why does a spinning magnet make power? | How a Generator works #Shorts