AudioEffectFilter.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="AudioEffectFilter" inherits="AudioEffect" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Adds a filter to the audio bus.
  5. </brief_description>
  6. <description>
  7. Allows frequencies other than the [member cutoff_hz] to pass.
  8. </description>
  9. <tutorials>
  10. <link title="Audio buses">$DOCS_URL/tutorials/audio/audio_buses.html</link>
  11. </tutorials>
  12. <methods>
  13. </methods>
  14. <members>
  15. <member name="cutoff_hz" type="float" setter="set_cutoff" getter="get_cutoff" default="2000.0">
  16. Threshold frequency for the filter, in Hz.
  17. </member>
  18. <member name="db" type="int" setter="set_db" getter="get_db" enum="AudioEffectFilter.FilterDB" default="0">
  19. </member>
  20. <member name="gain" type="float" setter="set_gain" getter="get_gain" default="1.0">
  21. Gain amount of the frequencies after the filter.
  22. </member>
  23. <member name="resonance" type="float" setter="set_resonance" getter="get_resonance" default="0.5">
  24. Amount of boost in the frequency range near the cutoff frequency.
  25. </member>
  26. </members>
  27. <constants>
  28. <constant name="FILTER_6DB" value="0" enum="FilterDB">
  29. </constant>
  30. <constant name="FILTER_12DB" value="1" enum="FilterDB">
  31. </constant>
  32. <constant name="FILTER_18DB" value="2" enum="FilterDB">
  33. </constant>
  34. <constant name="FILTER_24DB" value="3" enum="FilterDB">
  35. </constant>
  36. </constants>
  37. </class>