Skip to content

FFT Processes

Structs

struct HilbertWindow

Traits: AnyType, ComplexFFTProcessable, Copyable, ImplicitlyDeletable, Movable


HilbertWindow Functions

struct HilbertWindow . fn init

fn init Signature

def __init__(out self, world: UnsafePointer[MMMWorld, MutUntrackedOrigin], window_size: Int)

fn init Arguments

Name Type Default Description
world UnsafePointer[MMMWorld, MutUntrackedOrigin]
window_size Int

fn init Returns : Self

Static Method

This is a static method.

struct HilbertWindow . fn get_messages

fn get_messages Signature

def get_messages(mut self)

struct HilbertWindow . fn next_frame

fn next_frame Signature

def next_frame(mut self, mut complex: List[ComplexSIMD[DType.float64, 1]])

fn next_frame Arguments

Name Type Default Description
complex List[ComplexSIMD[DType.float64, 1]]

struct Hilbert

Traits: AnyType, Copyable, ImplicitlyDeletable, Movable

Hilbert Parameters

Name Type Default Description
window_type WindowType WindowType.sine

Hilbert Functions

struct Hilbert . fn init

fn init Signature

def __init__(out self, window_size: Int, hop_size: Int, world: UnsafePointer[MMMWorld, MutUntrackedOrigin])

fn init Arguments

Name Type Default Description
window_size Int
hop_size Int
world UnsafePointer[MMMWorld, MutUntrackedOrigin]

fn init Returns : Self

Static Method

This is a static method.

struct Hilbert . fn next

Process one sample through the Hilbert transform.

fn next Signature

def next(mut self, input: Float64, radians: Float64) -> Tuple[Float64, Float64]

fn next Arguments

Name Type Default Description
input Float64 The input sample to process.
radians Float64 The angle in radians to rotate the Hilbert transform output by.

fn next Returns : Tuple[Float64, Float64] The delayed dry sample and the Hilbert-transformed output sample.

struct SpectralFreezeWindow

Traits: AnyType, Copyable, FFTProcessable, ImplicitlyDeletable, Movable

SpectralFreezeWindow Parameters

Name Type Default Description
window_size Int

SpectralFreezeWindow Functions

struct SpectralFreezeWindow . fn init

fn init Signature

def __init__(out self, world: UnsafePointer[MMMWorld, MutUntrackedOrigin])

fn init Arguments

Name Type Default Description
world UnsafePointer[MMMWorld, MutUntrackedOrigin]

fn init Returns : Self

Static Method

This is a static method.

struct SpectralFreezeWindow . fn next_stereo_frame

fn next_stereo_frame Signature

def next_stereo_frame(mut self, mut mags: List[SIMD[DType.float64, 2]], mut phases: List[SIMD[DType.float64, 2]])

fn next_stereo_frame Arguments

Name Type Default Description
mags List[SIMD[DType.float64, 2]]
phases List[SIMD[DType.float64, 2]]

Documentation generated with mojo doc from Mojo version 1.0.0b2