Skip to content

dsego/odin-pffft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PFFFT, a pretty fast Fourier Transform bindings for Odin.

Example:

import "./odin-pffft"

fft: []complex64
samples: []f32

pffft_setup := pffft.new_setup(fft_size, pffft.Transform.REAL)
defer pffft.destroy_setup(pffft_setup)

pffft.transform_ordered(
    pffft_setup,
    raw_data(samples),
    raw_data(mem.slice_data_cast([]f32, fft)),
    nil,
    pffft.Direction.FORWARD
)

Building pffft on MacOS:

clang pffft.c pffft.h -c -O2 -Os -fPIC
ar rcs pffft.a pffft.o

About

Pffft bindings for odin-lang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages