I am creating a small project that eventually will be used in my final year project next year.
So right now I have created a small sensor using USB (virtual COM port) and returning a set a values from 0 to 100. I have a progress bar which basically goes up and down depending the return value from the sensor via the virtual COM port.
Now my problem lies here. When the sensor in pushed hard enough and a value of 100 is returned I want to sound a small blip (this part is done and working). But I also want that when the values of the sensor range from 50 to round 95, a tone is generated and is output via the speakers.
The tone should be continuous, so if the user presses the sensor, and let's say the value is 65, if the user does not remove pressure from the sensor, it should continue to output a flat tone. If the user presses a little harder and let's say a value of 75 is returned, I want to increase the tone frequency.
The most important thing is that it is a continuous tone for values that come from the sensor that are from 50 to 95 where 50 will sound a low frequency and 95 will be output a higher frequency. This should be in real time.
The code is all done via C# and I would like to use a library for C#. I never used DirectX and am not really willing to download a huge library if not really necessary.
I am willing to buy some small library or use an open source library as long as the price of the library is not more than $50 or in that range.