Component:TestSineWaveSource: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
 
Line 3: Line 3:
|Name=Test Sine Wave Source
|Name=Test Sine Wave Source
}}
}}
{{stub}}
The '''TestSineWaveSource''' component acts the same as a [[Component:SineWaveClip|SineWaveClip]] if it were continuously playing as an [[Component:AudioClipPlayer|AudioClipPlayer]]. The main difference though is it allows constant and quick changes in <code>Frequency</code> and <code>Amplitude</code> without needing time to recalculate.


== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Frequency|Float|
|Frequency|Float| The pitch of the audio streamed whistle tone.
|Amplitude|Float|
|Amplitude|Float| The loudness of the streamed whistle tone.
}}
}}


== Behavior ==
== Usage ==
Attach to a slot and insert into a [[Component:AudioOutput]] to hear the streamed whistle tone.


== Examples ==
== Examples ==
Can be used to test frequencies or be used for a whistle type instrument with quick changes without having to change the speed or volume of a [[Component:AudioClipPlayer]]


== See Also ==
== See Also ==
* [[Component:SineWaveClip]]


[[Category:Components:Debug{{#translation:}}|Test Sine Wave Source]]
[[Category:Components:Debug{{#translation:}}|Test Sine Wave Source]]
[[Category:Components{{#translation:}}|Test Sine Wave Source]]
[[Category:Components{{#translation:}}|Test Sine Wave Source]]
[[Category:ComponentStubs]]

Latest revision as of 21:05, 3 February 2025

Component image 
Test Sine Wave Source component as seen in the Scene Inspector

The TestSineWaveSource component acts the same as a SineWaveClip if it were continuously playing as an AudioClipPlayer. The main difference though is it allows constant and quick changes in Frequency and Amplitude without needing time to recalculate.

Usage

Fields
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. Some components stop their functionality when this field is disabled, but some don't.
Frequency Float The pitch of the audio streamed whistle tone.
Amplitude Float The loudness of the streamed whistle tone.

Usage

Attach to a slot and insert into a Component:AudioOutput to hear the streamed whistle tone.

Examples

Can be used to test frequencies or be used for a whistle type instrument with quick changes without having to change the speed or volume of a Component:AudioClipPlayer

See Also