class_audioeffectpitchshift.rst 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the AudioEffectPitchShift.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_AudioEffectPitchShift:
  5. AudioEffectPitchShift
  6. =====================
  7. **Inherits:** :ref:`AudioEffect<class_audioeffect>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Adds a Pitch shift audio effect to an Audio bus.
  12. Raises or lowers the pitch of original sound.
  13. Member Functions
  14. ----------------
  15. +----------------------------+------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`float<class_float>` | :ref:`get_pitch_scale<class_AudioEffectPitchShift_get_pitch_scale>` **(** **)** const |
  17. +----------------------------+------------------------------------------------------------------------------------------------------------------+
  18. | void | :ref:`set_pitch_scale<class_AudioEffectPitchShift_set_pitch_scale>` **(** :ref:`float<class_float>` rate **)** |
  19. +----------------------------+------------------------------------------------------------------------------------------------------------------+
  20. Member Variables
  21. ----------------
  22. - :ref:`float<class_float>` **pitch_scale** - Pitch value. Can range from 0 (-1 octave) to 16 (+16 octaves).
  23. Description
  24. -----------
  25. Allows modulation of pitch independently of tempo. All frequencies can be increased/decreased with minimal effect on transients.
  26. Member Function Description
  27. ---------------------------
  28. .. _class_AudioEffectPitchShift_get_pitch_scale:
  29. - :ref:`float<class_float>` **get_pitch_scale** **(** **)** const
  30. .. _class_AudioEffectPitchShift_set_pitch_scale:
  31. - void **set_pitch_scale** **(** :ref:`float<class_float>` rate **)**