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

Aliasing and quantization distotion #19

Open
2 tasks
unfa opened this issue Jul 16, 2017 · 1 comment
Open
2 tasks

Aliasing and quantization distotion #19

unfa opened this issue Jul 16, 2017 · 1 comment

Comments

@unfa
Copy link

unfa commented Jul 16, 2017

I've noticed two problems with the sound quality, even when using the "HQ" option.

  • Aliasing distortion for high pitched notes (best heard with Saw waveforms)

  • Quantization distortion for quiet notes (best heard with quiet Sine wavesforms with long decay)

Here's a video demonstrating this (you'll need to listen loudly to be able to hear that, but the spectrogram shows the problems very cleanly):

https://youtu.be/8kb7at02WgM

@mkruselj
Copy link

mkruselj commented Nov 25, 2020

Quantization distortion is to be expected since bit-depth of waveforms is 11-bit...

#define WAVEFORM_BIT_DEPTH 11

FM usually works with mathematically precise waveforms (not band-limited oscillators), so yeah aliasing is inherent in it, especially with non-sine waveforms.

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

2 participants