ビブラート生成用パラメータ。
Esempio n. 1
0
		/// <summary>
		/// ビブラートパラメータと元となる Sound を指定して生成。
		/// </summary>
		/// <param name="parameter">ビブラートパラメータ</param>
		/// <param name="sound">元となる音</param>
		public Vibrato(VibratoParameter parameter, Sound sound)
		{
			if(sound.Length < parameter.delay)
				throw new ArgumentException("音が短すぎ");

			this.parameter = parameter;
			this.sound = sound;

			this.delay = new FractionalDelay(2 * parameter.depth);
			this.delay.DelayTime = parameter.depth;
		}
Esempio n. 2
0
        /// <summary>
        /// ビブラートパラメータと元となる Sound を指定して生成。
        /// </summary>
        /// <param name="parameter">ビブラートパラメータ</param>
        /// <param name="sound">元となる音</param>
        public Vibrato(VibratoParameter parameter, Sound sound)
        {
            if (sound.Length < parameter.delay)
            {
                throw new ArgumentException("音が短すぎ");
            }

            this.parameter = parameter;
            this.sound     = sound;

            this.delay           = new FractionalDelay(2 * parameter.depth);
            this.delay.DelayTime = parameter.depth;
        }