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.)
Signal Processing Stack Exchange is a question and answer site for practitioners of the art and science of signal, image and video processing. It only takes a minute to sign up.Sign up to join this community
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.""" from scipy.io.wavfile import read, write def main(inputFilename, outputFilename, n): rate, data = read(inputFilename) write(outputFilename, rate/n, data[::n]) if __name__ == "__main__": from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter parser = ArgumentParser(description=__doc__, formatter_class=ArgumentDefaultsHelpFormatter) parser.add_argument("-i", "--input", dest="inputfile", help="input WAV file", metavar="FILE") parser.add_argument("-o", "--output", dest="outputfile", help="output WAV file", metavar="FILE") parser.add_argument("-n", dest="n", default=2, type=int, help="every n'th frame gets played") args = parser.parse_args() main(args.inputfile, args.outputfile, args.n)
It might not be audible at factor = 2. Try other powers of 2.