Skip to content

Instantly share code, notes, and snippets.

@cgurleyuk
cgurleyuk / pinkingWithInverseFFT.py
Last active April 21, 2024 18:49
accompanying code to colored noise: frequency domain filtering blog post at https://zeptoblog.com/2024/04/21/colored-noise-frequency-domain-filtering.html
import numpy as np
from typing import Any
from nptyping import NDArray, Shape, Float, ComplexFloating
import matplotlib.pyplot as plt
def generateShapingFunction(n_pts: int,
exp: float
) -> NDArray[Shape['Any'], Float]:
f = np.ones(n_pts)