swharden / Spectrogram

.NET library for creating spectrograms (visual representations of frequency spectrum over time)
https://nuget.org/packages/Spectrogram
MIT License
308 stars 56 forks source link

Support for .NET standard 2.0 #51

Open ecsplendid opened 1 year ago

ecsplendid commented 1 year ago

Hello! Great library!

I wondered if you considered supported a different image rendering approach rather than using the system.drawing stuff. It's not been possible to get your component working in Unity. I think the guy here was pointing out the same thing -- https://github.com/swharden/Spectrogram/pull/49

Cheers Tim

swharden commented 1 year ago

Indeed! Using SkiaSharp (and not System.Drawing) is the primary change in ScottPlot 5 (currently in preview with limited features, but being actively developed)

http://scottplot.net/versions

swharden commented 1 year ago

Whoops, my bad! I didn't realize this is the Spectrogram library and not ScottPlot (another library I maintain) 😅

I will leave this issue open an prioritize this! It definitely seems achievable.

Related:

ecsplendid commented 1 year ago

No prob! Thanks for coming back to me. I was able to use your underlying FftSharp library and render the spectrogram to a texture in real-time. Didn't look quite as nice as your one though, but got the job done ;)