开发者

Make a musical note [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

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 question

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜