Skip to main content
100%

sine wave for FFT

✓ Published2🌍 Public
DDonald Bagwell
Last edited Jul 1, 2024
Created on May 24, 2024

This example demonstrates how to combine multiple sine waves into a single signal and visualize the result. It generates three distinct sine waves at frequencies of 8, 15, and 5 Hz using a custom `sineGenerator` function, then sums them into a combined amplitude signal that is plotted as a line chart using D3's `scaleLinear` and `line` methods. The visualization includes labeled axes for data points and signal amplitude, with the chart rendered inside a gray rectangular region. While the code includes FFT utilities from the included `fft.js` and `fftutil.js` modules, the current view only displays the raw combined waveform rather than the frequency-domain analysis.

AI-generated description

Overview Time to dabble with the infamous FFT in javascript. Anyone consider themselves a Subject Matter Exper (SME) please feel free to offer up advice, tips etc. Goal is to generate a 80hz sine wave as test data. then perform a FFT, and power spectrum, and display results of all.

https://www.youtube.com/watch?v=mkGsMWi_j4Q

MIT Licensed

Similar vizzes