Table of Contents

Class SetGain

Namespace
Bonsai.Mixer
Assembly
Bonsai.Mixer.dll

Represents an operator that sets the source gain of every mixer source in the sequence to a target level over a specified duration.

public class SetGain : Sink<MixerSourceContext>
Inheritance
SetGain
Inherited Members

Remarks

The source gain scales every output channel uniformly and is independent of the per-channel gain set by SetChannelGain. The effective gain applied to a channel is the product of the source gain and the per-channel gain for that channel.

Properties

Duration

Gets or sets the duration of the gain ramp, in seconds.

Gain

Gets or sets the target source gain level, where 1 represents the original signal amplitude.

Methods

Process(IObservable<MixerSourceContext>)

Sets the source gain of every mixer source in an observable sequence to the target level over the specified duration.