Make a musical note [closed]
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve thi开发者_C百科s questionIs 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.
精彩评论