Is there any way to make a musical note in C# / javascript? So you specify frequency, pitch, etc. and it plays something?
C#, yes. JavaScript, not really (you could use Ajax and the HTML5 <audio />
tag but that's not really a great idea).
In C#, you would do:
Console.Beep(frequencyInHertz, durationInMilliseconds);
. There are also various other ways to do about the same thing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With