Click here to Skip to main content
15,894,410 members
Articles / Programming Languages / C#

Audio DSP with C#

Rate me:
Please Sign up or sign in to vote.
4.55/5 (23 votes)
6 Sep 20032 min read 219.9K   8.7K   92  
A .NET class library for audio processing.
using System;

namespace Garbe.Sound
{
	/// <summary> Summary description for Ambient. </summary>
	public class Ambient
	{
		private float _temperature;
		
		/// <summary> Summary description for Ambient. </summary>
		public Ambient()
		{
			_temperature = 30 + 273;
		}

		/// <summary> Summary description for Ambient. </summary>
		public Ambient(float t)
		{
			_temperature = t + 273;
		}

		/// <summary> Get or set the temperature of the ambient. </summary>
		public float Temperature
		{
			get { return _temperature; }
			set {_temperature = value; }
		}

		/// <summary> Get velocity of the air in the ambient. </summary>
		public float Velocity
		{
			get { return((float)(20.06f * Math.Sqrt(this._temperature))); }
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Brazil Brazil
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions