Automated: create new component page |
finish info for now |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
}} | }} | ||
{{stub}} | {{stub}} | ||
Channel Volume meter is a component that is used to read the volume of an audio source with multiple channels. The amount of channels can vary from 1, 2, and even to beyond 4. Usually this component is used to split the Left and Right audio volumes of an <code>.OGG</code> clip. | |||
== Usage == | == Usage == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|Smoothing|Float| | |Smoothing|Float| How much to smooth the value changes of the outputs in <code>ChannelVolumes</code> | ||
|Power|Float| | |Power|Float| The maximum value the outputs in <code>ChannelVolumes</code> will go to. | ||
|Method|VolumeMeterMethod| | |Method|VolumeMeterMethod| Whether the outputted value should be the current volume, or the change in volume over time (delta) | ||
|Source|IAudioSource| | |Source|IAudioSource| The source to read the audio volumes for each channel from. | ||
|CurrentChannels|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv4=true| | |CurrentChannels|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv4=true| How many channels <code>Source</code> has. | ||
|ChannelVolumes|{{RootFieldType|SyncList`1|[[Type:RawOutput`1|RawOutput`1]]<[[Type:Float|Float]]>}}|TypeAdv5=true| | |ChannelVolumes|{{RootFieldType|SyncList`1|[[Type:RawOutput`1|RawOutput`1]]<[[Type:Float|Float]]>}}|TypeAdv5=true| The output volumes of each channel <code>Source</code> has. | ||
|DoNotRemoveExcessFields|Bool| | |DoNotRemoveExcessFields|Bool| Don't remove excess fields whenever a new audio clip is inserted and the fields are outside the amount of channels the audio clip has. | ||
}} | }} | ||
Line 19: | Line 20: | ||
== Examples == | == Examples == | ||
This can be used for audio visualizers, or to read the individual volume of the left and right volume of an OGG for L and R speaker visualization. | |||
== See Also == | == See Also == | ||
Line 24: | Line 26: | ||
[[Category:Components:Media:Utility{{#translation:}}|Channel Volume Meter]] | [[Category:Components:Media:Utility{{#translation:}}|Channel Volume Meter]] | ||
[[Category:Components{{#translation:}}|Channel Volume Meter]] | [[Category:Components{{#translation:}}|Channel Volume Meter]] | ||
Latest revision as of 14:28, 20 October 2024
Component image
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Channel Volume meter is a component that is used to read the volume of an audio source with multiple channels. The amount of channels can vary from 1, 2, and even to beyond 4. Usually this component is used to split the Left and Right audio volumes of an .OGG
clip.
Usage
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
Smoothing
|
Float | How much to smooth the value changes of the outputs in ChannelVolumes
|
Power
|
Float | The maximum value the outputs in ChannelVolumes will go to.
|
Method
|
VolumeMeterMethod | Whether the outputted value should be the current volume, or the change in volume over time (delta) |
Source
|
IAudioSource | The source to read the audio volumes for each channel from. |
CurrentChannels
|
raw output of Int | How many channels Source has.
|
ChannelVolumes
|
list of RawOutput`1<Float> | The output volumes of each channel Source has.
|
DoNotRemoveExcessFields
|
Bool | Don't remove excess fields whenever a new audio clip is inserted and the fields are outside the amount of channels the audio clip has. |
Behavior
Examples
This can be used for audio visualizers, or to read the individual volume of the left and right volume of an OGG for L and R speaker visualization.