Skip to content

FFT Processes

Structs

struct HilbertWindow

Traits: AnyType, ComplexFFTProcessable, Copyable, ImplicitlyDestructible, Movable


HilbertWindow Functions

struct HilbertWindow . fn init

fn init Signature

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

fn init Arguments

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

fn init Returns : Self

Static Method

This is a static method.

struct HilbertWindow . fn get_messages

fn get_messages Signature

get_messages(mut self)

struct HilbertWindow . fn next_frame

fn next_frame Signature

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, ImplicitlyDestructible, Movable

Hilbert Parameters

Name Type Default Description
window_type Int WindowType.sine

Hilbert Functions

struct Hilbert . fn init

fn init Signature

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

fn init Arguments

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

fn init Returns : Self

Static Method

This is a static method.

struct Hilbert . fn next

Process one sample through the Hilbert transform, returning the delayed input sample and the Hilbert transform output sample.

fn next Signature

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]

struct SpectralFreezeWindow

Traits: AnyType, Copyable, FFTProcessable, ImplicitlyDestructible, Movable

SpectralFreezeWindow Parameters

Name Type Default Description
window_size Int

SpectralFreezeWindow Functions

struct SpectralFreezeWindow . fn init

fn init Signature

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

fn init Arguments

Name Type Default Description
world UnsafePointer[MMMWorld, MutExternalOrigin]

fn init Returns : Self

Static Method

This is a static method.

struct SpectralFreezeWindow . fn next_stereo_frame

fn next_stereo_frame Signature

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.0b1