rfft

real split radix FFT algorithm

npm install dsp-rfft

This is part of dsp-kit

Most of the code was adapted from dsp.js by @corbanbrook and some parts by @Spudd86

References

  • Original C implementation at http://www.jjj.de/fxt/
Source:
Example
const dsp = require('dsp-kit')
const forward = dsp.rfft(1024)
const result = forward(signal)

Methods

(static) rfft(buffer)

Performs a forward transform on the sample buffer. Converts a time domain signal to frequency domain spectra.

Parameters:
Name Type Description
buffer Array

The sample buffer. Buffer Length must be power of 2

Source:
Returns:

The frequency spectrum array