Debian Codegraph @

doc/classes/AudioEffectSpectrumAnalyzerInstance.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <class name="AudioEffectSpectrumAnalyzerInstance" inherits="AudioEffectInstance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Queryable instance of an [AudioEffectSpectrumAnalyzer].
5 </brief_description>
6 <description>
7 The runtime part of an [AudioEffectSpectrumAnalyzer], which can be used to query the magnitude of a frequency range on its host bus.
8 An instance of this class can be obtained with [method AudioServer.get_bus_effect_instance].
9 </description>
10 <tutorials>
11 <link title="Audio Spectrum Visualizer Demo">https://godotengine.org/asset-library/asset/2762</link>
12 </tutorials>
13 <methods>
14 <method name="get_magnitude_for_frequency_range" qualifiers="const">
15 <return type="Vector2" />
16 <param index="0" name="from_hz" type="float" />
17 <param index="1" name="to_hz" type="float" />
18 <param index="2" name="mode" type="int" enum="AudioEffectSpectrumAnalyzerInstance.MagnitudeMode" default="1" />
19 <description>
20 Returns the magnitude of the frequencies from [param from_hz] to [param to_hz] in linear energy as a Vector2. The [code]x[/code] component of the return value represents the left stereo channel, and [code]y[/code] represents the right channel.
21 [param mode] determines how the frequency range will be processed.
22 </description>
23 </method>
24 </methods>
25 <constants>
26 <constant name="MAGNITUDE_AVERAGE" value="0" enum="MagnitudeMode">
27 Use the average value across the frequency range as magnitude.
28 </constant>
29 <constant name="MAGNITUDE_MAX" value="1" enum="MagnitudeMode">
30 Use the maximum value of the frequency range as magnitude.
31 </constant>
32 </constants>
33 </class>