-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2eff945
commit 7317d79
Showing
38 changed files
with
109 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
namespace SoundMaker.Sounds; | ||
/// <summary> | ||
/// 量子化ビット数の種類を表す列挙型 | ||
/// type of bit rate. 量子化ビット数の種類を表す列挙型 | ||
/// </summary> | ||
public enum BitRateType | ||
{ | ||
/// <summary> | ||
/// 16ビット | ||
/// 16bit | ||
/// </summary> | ||
SixteenBit = 16, | ||
/// <summary> | ||
/// 8ビット | ||
/// 8bit | ||
/// </summary> | ||
EightBit = 8 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
namespace SoundMaker.Sounds; | ||
/// <summary> | ||
/// チャンネル数を表す列挙型 | ||
/// type of channels count. チャンネル数を表す列挙型 | ||
/// </summary> | ||
public enum ChannelType | ||
{ | ||
/// <summary> | ||
/// モノラル1ch | ||
/// monaural(1ch) モノラル1ch | ||
/// </summary> | ||
Monaural, | ||
/// <summary> | ||
/// ステレオ2ch | ||
/// stereo(2ch) ステレオ2ch | ||
/// </summary> | ||
Stereo | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
namespace SoundMaker.Sounds; | ||
/// <summary> | ||
/// 波を表すインターフェイス | ||
/// interface for wave. 波を表すインターフェイス | ||
/// </summary> | ||
public interface IWave | ||
{ | ||
/// <summary> | ||
/// ミックス済みの波形の音量 | ||
/// volume. ミックス済みの波形の音量 | ||
/// </summary> | ||
int Volume { get; } | ||
|
||
/// <summary> | ||
/// 波形データの配列の長さ。ステレオの場合、GetBytes()の波形データの配列は、二倍の長さになる。 | ||
/// length of wave. if stereo wave, return 1/2 of GetWaves().Length. 波形データの配列の長さ。ステレオの場合、GetBytes()の波形データの配列は、二倍の長さになる。 | ||
/// </summary> | ||
int Length { get; } | ||
|
||
/// <summary> | ||
/// 波形データのバイト列を取得するメソッド。 | ||
/// get array of wave data. 波形データのバイト列を取得するメソッド。 | ||
/// </summary> | ||
/// <param name="bitRate">ビットレート</param> | ||
/// <returns>波形データのバイト列 : byte[]</returns> | ||
/// <param name="bitRate">bit rate. ビットレート</param> | ||
/// <returns>bytes of wave data. 波形データのバイト列 : byte[]</returns> | ||
byte[] GetBytes(BitRateType bitRate); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
namespace SoundMaker.Sounds.Score; | ||
/// <summary> | ||
/// 長さのタイプを列挙(音楽的な、「四分」音符、「全」休符のような長さを表す。) | ||
/// type of length. 長さのタイプを列挙(音楽的な、「四分」音符、「全」休符のような長さを表す。) | ||
/// </summary> | ||
public enum LengthType | ||
{ | ||
/// <summary> | ||
/// 全音符・休符 | ||
/// whole. 全音符・休符 | ||
/// </summary> | ||
Whole = 1, | ||
/// <summary> | ||
/// 二分音符・休符 | ||
/// half. 二分音符・休符 | ||
/// </summary> | ||
Half = 2, | ||
/// <summary> | ||
/// 四分音符・休符 | ||
/// quarter. 四分音符・休符 | ||
/// </summary> | ||
Quarter = 4, | ||
/// <summary> | ||
/// 八分音符・休符 | ||
/// 8. 八分音符・休符 | ||
/// </summary> | ||
Eighth = 8, | ||
/// <summary> | ||
/// 十六分音符・休符 | ||
/// 16. 十六分音符・休符 | ||
/// </summary> | ||
Sixteenth = 16, | ||
/// <summary> | ||
/// 三十二分音符・休符 | ||
/// 32. 三十二分音符・休符 | ||
/// </summary> | ||
ThrthirtySecond = 32, | ||
/// <summary> | ||
/// 六十四分音符・休符 | ||
/// 64. 六十四分音符・休符 | ||
/// </summary> | ||
SixtyFourth = 64, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
namespace SoundMaker.Sounds.Score; | ||
/// <summary> | ||
/// デューティ比の列挙型 | ||
/// type of duty cycle. デューティ比の列挙型 | ||
/// </summary> | ||
public enum SquareWaveRatio | ||
{ | ||
/// <summary> | ||
/// デューティ比 : 0.125 | ||
/// 12.5% | ||
/// </summary> | ||
Point125, | ||
/// <summary> | ||
/// デューティ比 : 0.25 | ||
/// 25% | ||
/// </summary> | ||
Point25, | ||
/// <summary> | ||
/// デューティ比 : 0.5 | ||
/// 50% | ||
/// </summary> | ||
Point5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
namespace SoundMaker.Sounds.SoundChannels; | ||
/// <summary> | ||
/// 左右どちらから音が出るかを表す列挙型 | ||
/// direction of hearing. 左右どちらから音が出るかを表す列挙型 | ||
/// </summary> | ||
public enum PanType | ||
{ | ||
/// <summary> | ||
/// 左右両方 | ||
/// both. 左右両方 | ||
/// </summary> | ||
Both, | ||
/// <summary> | ||
/// 右 | ||
/// right. 右 | ||
/// </summary> | ||
Right, | ||
/// <summary> | ||
/// 左 | ||
/// left. 左 | ||
/// </summary> | ||
Left | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.