swharden / Spectrogram

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

SetColormap deprecated replacement ? #41

Closed mprevot closed 2 years ago

mprevot commented 2 years ago

I have:

var sg = new SpectrogramGenerator(_sampleRate, fftSize, stepSize, 20, maxFreq);
sg.Add(_audio);
sg.SetColormap(Colormap.Blues); // deprecated

What is the replacement for SetColormap ?

swharden commented 2 years ago

Hi @mprevot, it looks like you can assign directly to the Colormap field:

var sg = new SpectrogramGenerator(_sampleRate, fftSize, stepSize, 20, maxFreq);
sg.Add(_audio);
sg.Colormap = Colormap.Blues;