Relative Content

Tag Archive for c#audiowavaudio-player

Why do I get a higher pitched sound or artifacts when sliding between notes?

I’m building a system to create melodies using specific sound waves, I’m using C# and writing into WAV files. The process is creating a melody as an array of frequencies, which indicates the frequency of the sound at one point in time. A sound is simply defined as a function to be sampled at a point in time. The final sound is created by tuning this sound to the frequency defined by the melody at each point and sampling that to generate a final array of offsets to generate the sound. I’m using notes in 12-tet 440hz and calculating their frequencies.