SoundEffectInstance.Pitch Property (Microsoft.Xna.Framework.Audio)

Gets or sets the pitch adjustment.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public float Pitch { get; set; }

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Property Value

Type: System.Single
Pitch adjustment, ranging from -1.0 (down an octave) to 0.0 (no change) to 1.0 (up an octave). Values outside of this range will throw an Exception.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop