Esempio n. 1
0
        /// <summary>
        /// Constructs <see cref="FadeInOutBuilder"/> around <paramref name="builder"/>.
        /// </summary>
        /// <param name="builder">Underlying signal builder</param>
        public FadeInOutBuilder(SignalBuilder builder)
        {
            _builder = builder;
            _index   = 0;

            Length       = _builder.Length;
            SamplingRate = _builder.SamplingRate;
        }
Esempio n. 2
0
        public static SignalBuilder SetAmplitudes(this SignalBuilder builder, float[] amplitudes)
        {
            PadSynthBuilder padSynth = builder as PadSynthBuilder;

            if (padSynth == null)
            {
                return(builder);
            }

            padSynth.SetAmplitudeArray(amplitudes);

            return(padSynth);
        }