godot/doc/classes/AudioEffectFilter.xml
Rémi Verschelde 967bfb0c4a doc: Remove revision.module_config from version string
It is now "3.0-alpha" instead of "3.0.alpha.custom_build{,.mono}",
limits unnecessary diffs.
2017-11-15 20:41:16 +01:00

95 lines
2.4 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<class name="AudioEffectFilter" inherits="AudioEffect" category="Core" version="3.0-alpha">
<brief_description>
Adds a filter to the Audio Bus.
</brief_description>
<description>
Allows frequencies other than the [member cutoff_hz] to pass.
</description>
<tutorials>
</tutorials>
<demos>
</demos>
<methods>
<method name="get_cutoff" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="get_db" qualifiers="const">
<return type="int" enum="AudioEffectFilter.FilterDB">
</return>
<description>
</description>
</method>
<method name="get_gain" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="get_resonance" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="set_cutoff">
<return type="void">
</return>
<argument index="0" name="freq" type="float">
</argument>
<description>
</description>
</method>
<method name="set_db">
<return type="void">
</return>
<argument index="0" name="amount" type="int" enum="AudioEffectFilter.FilterDB">
</argument>
<description>
</description>
</method>
<method name="set_gain">
<return type="void">
</return>
<argument index="0" name="amount" type="float">
</argument>
<description>
</description>
</method>
<method name="set_resonance">
<return type="void">
</return>
<argument index="0" name="amount" type="float">
</argument>
<description>
</description>
</method>
</methods>
<members>
<member name="cutoff_hz" type="float" setter="set_cutoff" getter="get_cutoff">
Threshold frequency for the filter.
</member>
<member name="db" type="int" setter="set_db" getter="get_db" enum="AudioEffectFilter.FilterDB">
</member>
<member name="gain" type="float" setter="set_gain" getter="get_gain">
Gain amount of the frequencies after the filter.
</member>
<member name="resonance" type="float" setter="set_resonance" getter="get_resonance">
Amount of boost in the overtones near the cutoff frequency.
</member>
</members>
<constants>
<constant name="FILTER_6DB" value="0">
</constant>
<constant name="FILTER_12DB" value="1">
</constant>
<constant name="FILTER_18DB" value="2">
</constant>
<constant name="FILTER_24DB" value="3">
</constant>
</constants>
</class>