SoundEffectInstance.Pitch Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the pitch adjustment for the SoundEffectInstance.

Namespace:  Microsoft.Xna.Framework.Audio
Assembly:  Microsoft.Xna.Framework (in Microsoft.Xna.Framework.dll)

Syntax

'Declaration
Public Property Pitch As Single
public float Pitch { get; set; }

Property Value

Type: System.Single
Pitch adjustment, ranging from -1.0f (down one octave) to 1.0f (up one octave). 0.0f is unity (normal) pitch.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.