Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support mel scaling #14

Closed
swharden opened this issue Jul 1, 2020 · 2 comments
Closed

support mel scaling #14

swharden opened this issue Jul 1, 2020 · 2 comments

Comments

@swharden
Copy link
Owner

swharden commented Jul 1, 2020

add a method to Spectrogram which returns a mel-scaled 2D array

@swharden
Copy link
Owner Author

swharden commented Jul 1, 2020

wrote some working code, but still not sure where to put it

Mel Scaled Data

image

Linearly Scaled Data

image

@swharden
Copy link
Owner Author

swharden commented Jul 2, 2020

You can now create a Mel spectrogram like this:

Bitmap bmp = spec.GetBitmapMel(melSizePoints: 250, intensity: 4, dB: true);
bmp.Save("halMel.png", ImageFormat.Png);
Cropped Linear Scale (0-1kHz) Full Linear Scale (0-22 kHz) Mel Scale (0-22 kHz)
image image image

@swharden swharden closed this as completed Jul 2, 2020
swharden added a commit that referenced this issue Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant