Thomas Piacentini
← Workshop
← All concepts

Signals and frequencies

Concept 1 / 5

Change concept
01 · Sinusoid sums and sound

Sinusoid sums and sound

A complicated signal can be split into simpler oscillations at different frequencies.

Your turn

4
Signal: 4 samples1234X₀ = 4 × 2.5 = 10|X0|10|X1|2.828|X2|2|X3|2.828
SamplesFrequenciesDC component

Dashed: the mean of the four samples.

Split into frequencies10

The four amplitudes are an unnormalized DFT; X₀ is highlighted.

Build
Final result · coefficient X₀10

Understand the calculation, step by step

A signal can be represented by sinusoid amplitudes and phases. For N samples, DFT Xₖ=Σₙxₙexp(−2πikn/N). Bin zero carries the constant component. The inverse includes 1/N in this convention. Amplitudes alone lose the phase needed for reconstruction.

DFT DC coefficient

signal=(1,2,3,x) ; X₀=Σsignal ; mean=X₀/4

Check my understanding

For Fourth sample = 8, what is the value of « coefficient X₀ » ?

Keep a thought in my notebook
Read the source and go further

The extended record combines confirmed reading, interaction, correct answer and a note of at least 40 characters. You can continue at any time.

02 · Harmonics and compression

Harmonics and compression

Removing frequencies simplifies a signal but may erase useful information.

Your turn

5
f = 5 Hzfₛ = 64 Hz · |f alias| = 5 Hz
InputTransformationResult

Dashed: the aliased signal with adjusted phase.

See aliasing5

Above 32 Hz, a lower frequency gives the same samples with adjusted phase.

Build
Final result · aliased frequency5

Understand the calculation, step by step

An ideal square wave needs infinitely many harmonics; truncation oscillates near discontinuities (Gibbs). Removing coefficients can compress data but erase useful signal. Real audio codecs do more than threshold a DFT. Compare error against clean signal, not just visual smoothness.

Harmonic and sampling

fₛ=64 Hz ; aliased frequency = min(f,64−f)

Check my understanding

For Frequency in Hz = 40, what is the value of « aliased frequency » ?

Keep a thought in my notebook
Read the source and go further

The extended record combines confirmed reading, interaction, correct answer and a note of at least 40 characters. You can continue at any time.

03 · Complex numbers and epicycles

Complex numbers and epicycles

Adding circular movements can reconstruct a drawing.

Your turn

30
xyL = 230°x = 1.732 y = 1
ArmAnglePosition

Dashed: your starting setting.

Read x and y(1.732 ; 1)

The projections give horizontal and vertical position; their squared lengths sum to 4.

Build
Final result · Horizontal position1.732

Understand the calculation, step by step

Encode a plane drawing as z(t)=x(t)+iy(t). Each term cₖexp(2πikt/T) rotates in the complex plane and their sum traces the curve. Negative frequencies rotate oppositely. Time parametrization matters: traversing the same contour at a different speed changes coefficients.

Angle and components

x = 2 cos(θ) ; y = 2 sin(θ)

Check my understanding

For Angle θ (degrees) = 60, what is the value of « x coordinate » ?

Keep a thought in my notebook
Read the source and go further

The extended record combines confirmed reading, interaction, correct answer and a note of at least 40 characters. You can continue at any time.

04 · 2D bases and JPEG

2D bases and JPEG

Simple patterns can reconstruct an image at an adjustable level of detail.

Your turn

2
Block2222DCT× ½CoefficientsDC4AC0AC0AC0DC = 4 × 2 / 2 = 4
InputTransformationResult

Read coefficients4

Only the DC coefficient is nonzero; this small calculation is not a JPEG encoder.

Build
Final result · DC coefficient4

Understand the calculation, step by step

A 2D image basis combines horizontal and vertical patterns. JPEG uses an 8×8 block DCT followed by quantization and coding; quantization causes most loss. Our constant 2×2 orthonormal DCT isolates the DC coefficient. This is not a JPEG encoder and omits colour conversions.

Constant block and DCT

constant 2×2 block c ; orthonormal DCT: DC coefficient = 2c ; AC=0

Check my understanding

For Pixel value c = 3, what is the value of « DC coefficient » ?

Keep a thought in my notebook
Read the source and go further

The extended record combines confirmed reading, interaction, correct answer and a note of at least 40 characters. You can continue at any time.

05 · Continuous, discrete, FFT and windows

Continuous, discrete, FFT and windows

A short window localizes a change; a long window better distinguishes nearby frequencies.

Your turn

5
f = 5 Hzfₛ = 64 Hz · |f alias| = 5 Hz
InputTransformationResult

Dashed: the aliased signal with adjusted phase.

See aliasing5

Above 32 Hz, a lower frequency gives the same samples with adjusted phase.

Build
Final result · aliased frequency5

Understand the calculation, step by step

The continuous transform is an integral; a discrete-time sequence has a frequency-continuous DTFT; a DFT gives N values for N samples. FFT computes that same DFT faster. A whole song can be analyzed with successive windows (STFT): long and short windows trade time against frequency resolution. Frequencies beyond Nyquist alias.

Harmonic and sampling

fₛ=64 Hz ; aliased frequency = min(f,64−f)

Check my understanding

For Frequency in Hz = 40, what is the value of « aliased frequency » ?

Keep a thought in my notebook
Read the source and go further

The extended record combines confirmed reading, interaction, correct answer and a note of at least 40 characters. You can continue at any time.

Take this further

atomsh / lab