Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/slmml/Sample.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 57 - (hide annotations) (download)
Sat Apr 4 11:02:34 2009 UTC (15 years ago) by hikarin
File size: 441 byte(s)
[ocmml/slmml] * reduced noise significantly
1 hikarin 37 using System;
2    
3     namespace SlMML
4     {
5     public static class Sample
6     {
7     #region 定数の定義
8     public static readonly int RATE = 44100;
9     public static readonly int FREQUENCY_BASE = 440;
10     #endregion
11    
12     #region 公開メソッドの定義
13     public static short ToShort(this double s)
14     {
15 hikarin 57 return (short)Math.Round(s * 16384);
16 hikarin 37 }
17     #endregion
18     }
19     }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26