# How can I enforce aliasing with Audacity?

I would like to hear how aliasing sounds like. How can I get this with Audacity?

(I was told that I should adjust the Fourier coefficients in Audacity. I have no idea where I can do so / how I should adjust them.)

• I don't know how to do it in Audacity, but there's actually an audio sample in the wikipedia article. Nov 24 '14 at 16:42
• I want to hear it on natural language. Nov 24 '14 at 16:46
• A simple method would be to take a recording, throw away every other sample, and play it at half the sampling rate. Alternatively, set every other sample to zero, and play at the original sampling rate. Nov 24 '14 at 16:49
• I don't think there's a way to do it in Audacity, it filters automatically Nov 24 '14 at 19:59
• @endolith Do you know any other program that can do so (Python scripts are ok, too) Nov 24 '14 at 20:02

Here's a Python script that does what Matt L said:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""Enforce aliasing by reducing an audio-file to every n'th frame."""

def main(inputFilename, outputFilename, n):
write(outputFilename, rate/n, data[::n])

if __name__ == "__main__":
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
parser = ArgumentParser(description=__doc__,
formatter_class=ArgumentDefaultsHelpFormatter)