You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicclassFixedTriangleChannel:SoundChannelBase{/// <summary>/// constructor コンストラクタ/// </summary>/// <param name="format">format of the sound. 音のフォーマット</param>/// <param name="tempo">quarter note/rest per minute. 一分間の四分音符・休符の数</param>/// <param name="panType">sound direction. 左右どちらから音が出るか</param>/// <param name="capacity">the total number of sound components the internal data structure can hold without resizing. 内部データ構造がリサイズされずに保持できるサウンドコンポーネントの総数。</param>/// <exception cref="ArgumentOutOfRangeException">Tempo must be non-negative and greater than 0.</exception>/// <exception cref="ArgumentOutOfRangeException">Capacity must be non-negative.</exception>publicFixedTriangleChannel(inttempo,SoundFormatformat,PanTypepanType,intcapacity):base(tempo, format, panType, capacity){}/// <summary>/// constructor コンストラクタ/// </summary>/// <param name="format">format of the sound. 音のフォーマット</param>/// <param name="tempo">quarter note/rest per minute. 一分間の四分音符・休符の数</param>/// <param name="panType">sound direction. 左右どちらから音が出るか</param>/// <exception cref="ArgumentOutOfRangeException">Tempo must be non-negative and greater than 0.</exception>publicFixedTriangleChannel(inttempo,SoundFormatformat,PanTypepanType):base(tempo, format, panType){}publicoverrideushort[]GenerateWave(){varresult=newList<ushort>();foreach(var soundComponent in SoundComponents){varwave= soundComponent.GenerateWave(Format, Tempo,new FixedTriangleWave());
FadeInOut(wave);
result.AddRange(wave);}return result.ToArray();}}
Workaround
Create a original sound channel.
FixedTriangleChannel class
FixedTriangleWave
The text was updated successfully, but these errors were encountered: