FftSharp 1.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package FftSharp --version 1.1.2
                    
NuGet\Install-Package FftSharp -Version 1.1.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FftSharp" Version="1.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FftSharp" Version="1.1.2" />
                    
Directory.Packages.props
<PackageReference Include="FftSharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FftSharp --version 1.1.2
                    
#r "nuget: FftSharp, 1.1.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FftSharp@1.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FftSharp&version=1.1.2
                    
Install as a Cake Addin
#tool nuget:?package=FftSharp&version=1.1.2
                    
Install as a Cake Tool

FftSharp is a collection of Fast Fourier Transform (FFT) tools for .NET. Tools are available to calculate forward and inverse FFT, generate and apply window functions, perform Mel Scaling, and more. See https://github.com/swharden/FftSharp for examples.

Quickstart: Power Spectrum Analysis

// Begin with sample data
int sampleRate = 48000;
double[] audio = FftSharp.SampleData.SampleAudio1();

// Window the audio signal
double[] window = FftSharp.Window.Hanning(audio.Length);
FftSharp.Window.ApplyInPlace(window, audio);

// Calculate power spectral density (dB)
double[] fftPower = FftSharp.Transform.FFTpower(audio);

// Calculate the frequencies for each data point
double[] freqs = FftSharp.Transform.FFTfreq(sampleRate, fftPower.Length);

Quickstart: Calculate the FFT of Complex Data

// Begin with sample data
double[] audio = FftSharp.SampleData.SampleAudio1();

// convert the data to an array of complex numbers
Complex[] buffer = new Complex[audio.Length];
for (int i=0; i<buffer.Length; i++)
    buffer[i] = new Complex(audio[i], 0);

// compute the FFT in-place
FftSharp.Transform.FFT(buffer);
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (14)

Showing the top 5 NuGet packages that depend on FftSharp:

Package Downloads
VL.Audio

Audio engine for VL based on NAudio

Spectrogram

A .NET Standard library for creating spectrograms

VoiceNET.Library

.NET Library makes it easy and fast to create Voice Command Control functionality. It helps develop voice control in real-time on software or the web. It free supports online and offline use.

VoiceNET.Lib.WebAPI

VoiceNET.Lib.WebAPI is an extension of VoiceNET.Library that supports Web API.

AiDotNet

A comprehensive .NET library for machine learning, deep learning, NLP, computer vision, and AI model serving. Licensed under BSL 1.1 — free for non-commercial use, community license available at aidotnet.dev. Model save/load requires a free or paid license after a 10-operation trial. Optional anonymous telemetry (opt-in via AIDOTNET_TELEMETRY=true) collects usage metrics — no PII or model data is collected.

GitHub repositories (6)

Showing the top 6 popular GitHub repositories that depend on FftSharp:

Repository Stars
seerge/g-helper
Fast, native tool for tuning performance, fans, GPU, battery, and RGB on any Asus laptop or handheld - ROG Zephyrus, Flow, Strix, TUF, Vivobook, Zenbook, ProArt, Ally, and beyond.
swharden/Csharp-Data-Visualization
Resources for visualizing data using C# and the .NET platform
protyposis/Aurio
Audio Fingerprinting & Retrieval for .NET
Victoare/SR-WLED-audio-server-win
SoundReactive WLED audio streamer for windows
SlimeNull/AudioVisualizer
使用 NAudio, GDI+ 以及 Direct2D 实现的音频可视化器; Audio Visualizer using NAudio, GDI+ and Direct2D
TheAjaykrishnanR/sambar
Status bar for Windows 11
Version Downloads Last Updated
2.2.0 45,493 11/16/2024
2.1.0 75,847 8/22/2023
2.0.0 13,841 5/17/2023
1.1.6 55,379 6/16/2022
1.1.5 11,316 3/24/2022
1.1.4 13,170 11/17/2021
1.1.3 1,315 10/27/2021
1.1.2 2,378 10/27/2021
1.0.12 2,032 10/7/2021
1.0.10 1,236 9/13/2021
1.0.9 2,012 8/27/2021
1.0.8 19,519 11/1/2020
1.0.7 1,483 8/22/2020
1.0.6 2,180 7/15/2020
1.0.5 2,684 6/12/2020
1.0.4 1,215 6/6/2020
1.0.3 1,144 5/27/2020
1.0.2 1,188 5/26/2020
1.0.1 1,187 5/26/2020
1.0.0 1,398 5/25/2020