Skip to content

unhelpful error message when saving empty spectrogram #13

@swharden

Description

@swharden

If you create a Spectrogram and forget to add data, saving fails with an unhelpful divide-by-zero error

var spec = new Spectrogram.Spectrogram(sampleRate, fftSize, stepSize, 0, 2000);
//spec.Add(audio);
spec.SaveImage("test.png");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions