Go Down

Topic: Play a wave file at a certain freq and pulse (Read 573 times) previous topic - next topic



I need to play a .wav file (same wave file) at different frequencies and pulses.

tone() is not good enough since it plays the only a square wave sound (at different frequencies).

Anyone has an idea of how to do it?

Thanks in advance to all helpers


What do you mean by
and pulses
Playing a wav file back at different sample rates will shift the frequency to a certain extent but could produce aliasing which will sound like grating noises added to the sound.
The only way to do this correctly is to resample the waveform and store it under a different name. What is it exactly you want to produce?

Go Up