ux.Component.Panpot.Panpot C# (CSharp) Method

Panpot() public method

左右チャネルのレベルを制御するパンポット値を指定して新しい Panpot 構造体のインスタンスを初期化します。
public Panpot ( float value ) : System
value float パンポット値。
return System
        public Panpot(float value)
            : this()
        {
            this.l = value >= 0.0f ? (float)Math.Sin((value + 1f) * Math.PI / 2.0) : 1.0f;
            this.r = value <= 0.0f ? (float)Math.Sin((-value + 1f) * Math.PI / 2.0) : 1.0f;
        }

Same methods

Panpot::Panpot ( float lChannel, float rChannel ) : System
Panpot