Files
story-studio/remotion/node_modules/@remotion/media-utils/dist/fft/exponent.js
2026-02-21 10:33:18 +01:00

14 lines
506 B
JavaScript

"use strict";
// Adapted from node-fft project by Joshua Wong and Ben Bryan
// https://github.com/vail-systems/node-fft
Object.defineProperty(exports, "__esModule", { value: true });
exports.exponent = void 0;
const mapExponent = {};
const exponent = function (k, N) {
const x = -2 * Math.PI * (k / N);
mapExponent[N] = mapExponent[N] || {};
mapExponent[N][k] = mapExponent[N][k] || [Math.cos(x), Math.sin(x)]; // [Real, Imaginary]
return mapExponent[N][k];
};
exports.exponent = exponent;