So far, I have implemented the algorithm found on this blog with limited success.
The concept of my program is to initialize the sine wave, then change the frequency according to the position of the mouse on the screen - move the mouse up, and the sine wave will become higher and vice versa (in essence, this is an instrument such as a temporary type, a mouse).
The problem with what I have implemented so far is that when the sine wave frequency is updated, there is an audible click that instead of providing a smooth frequency sweep makes it sound like there are discrete frequencies, I searched high and low on the forums NAudio is here, but it doesnβt seem like anyone else is trying to do such things using NAudio, or, for that matter, any other sound module β all similar programs that run similarly to using equipment such as Kinect, using virtual GOVERNMENTAL midi-cable and an existing software module, but I would like to implement the same concept without relying on external software packages.
I posted a section of my code related to this issue on the NAudio forum here , and as you can see, I follow the MarkHeath recommendations here to try to find a solution to my problem.
source share