AudioEffectFilter.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="AudioEffectFilter" inherits="AudioEffect" category="Core" version="3.0.alpha.custom_build">
  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. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="get_cutoff" qualifiers="const">
  15. <return type="float">
  16. </return>
  17. <description>
  18. </description>
  19. </method>
  20. <method name="get_db" qualifiers="const">
  21. <return type="int" enum="AudioEffectFilter.FilterDB">
  22. </return>
  23. <description>
  24. </description>
  25. </method>
  26. <method name="get_gain" qualifiers="const">
  27. <return type="float">
  28. </return>
  29. <description>
  30. </description>
  31. </method>
  32. <method name="get_resonance" qualifiers="const">
  33. <return type="float">
  34. </return>
  35. <description>
  36. </description>
  37. </method>
  38. <method name="set_cutoff">
  39. <return type="void">
  40. </return>
  41. <argument index="0" name="freq" type="float">
  42. </argument>
  43. <description>
  44. </description>
  45. </method>
  46. <method name="set_db">
  47. <return type="void">
  48. </return>
  49. <argument index="0" name="amount" type="int" enum="AudioEffectFilter.FilterDB">
  50. </argument>
  51. <description>
  52. </description>
  53. </method>
  54. <method name="set_gain">
  55. <return type="void">
  56. </return>
  57. <argument index="0" name="amount" type="float">
  58. </argument>
  59. <description>
  60. </description>
  61. </method>
  62. <method name="set_resonance">
  63. <return type="void">
  64. </return>
  65. <argument index="0" name="amount" type="float">
  66. </argument>
  67. <description>
  68. </description>
  69. </method>
  70. </methods>
  71. <members>
  72. <member name="cutoff_hz" type="float" setter="set_cutoff" getter="get_cutoff">
  73. Threshold frequency for the filter.
  74. </member>
  75. <member name="db" type="int" setter="set_db" getter="get_db" enum="AudioEffectFilter.FilterDB">
  76. </member>
  77. <member name="gain" type="float" setter="set_gain" getter="get_gain">
  78. Gain amount of the frequencies after the filter.
  79. </member>
  80. <member name="resonance" type="float" setter="set_resonance" getter="get_resonance">
  81. Amount of boost in the overtones near the cutoff frequency.
  82. </member>
  83. </members>
  84. <constants>
  85. <constant name="FILTER_6DB" value="0">
  86. </constant>
  87. <constant name="FILTER_12DB" value="1">
  88. </constant>
  89. <constant name="FILTER_18DB" value="2">
  90. </constant>
  91. <constant name="FILTER_24DB" value="3">
  92. </constant>
  93. </constants>
  94. </class>