Skip to content

Commit

Permalink
Add more content in Aliasing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
iver56 committed Mar 15, 2024
1 parent da8bf62 commit 6d5115b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/waveform_transforms/aliasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ Downsample the audio to a lower sample rate by linear interpolation, without low
filtering it first, resulting in aliasing artifacts. You get aliasing artifacts when
there is high-frequency audio in the input audio that falls above the nyquist frequency
of the chosen target sample rate. Audio with frequencies above the nyquist frequency
cannot be reproduced accurately and get "reflected"/mirrored to other frequencies.
cannot be reproduced accurately and get "reflected"/mirrored to other frequencies. The
aliasing artifacts "replace" the original high frequency signals. The result can be
described as coarse and metallic.

After the downsampling, the signal gets upsampled to the original signal again, so the
length of the output becomes the same as the length of the input.

For more information, see

* [Sample rate reduction :octicons-link-external-16:](https://en.wikipedia.org/wiki/Bitcrusher#Sample_rate_reduction){target=_blank} on Wikipedia
* [Intro to downsampling :octicons-link-external-16:](http://gdsp.hf.ntnu.no/lessons/1/3/){target=_blank} by NTNU, Department of Music, Music Technology. Note: that article describes a slightly different downsampling technique, called sample-and-hold, while audiomentations implements linear interpolation. However, both methods lead to aliasing artifacts.
* [Intro to downsampling :octicons-link-external-16:](http://gdsp.hf.ntnu.no/lessons/1/3/){target=_blank} by NTNU, Department of Music, Music Technology. Note: that article describes a slightly different downsampling technique, called sample-and-hold, while `Aliasing` in audiomentations currently implements linear interpolation. However, both methods lead to aliasing artifacts.

## Input-output example

Expand Down

0 comments on commit 6d5115b

Please sign in to comment.