Component:StaticAudioClip: Difference between revisions

From Resonite Wiki
add see also and needed info
add sync delegate desc
 
(2 intermediate revisions by one other user not shown)
Line 19: Line 19:
== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|Normalize()|[[Type:Func`1|Func`1]]| Makes the volume during the audio clip consistent.
|Normalize:[[Type:Func`1|Func`1]]<[[Type:Task`1|Task`1]]<[[Type:Bool|Bool]]>>|[[Type:Func`1|Func`1]]<[[Type:Task`1|Task`1]]<[[Type:Bool|Bool]]>>|false| Makes the volume during the audio clip consistent.
|AdjustVolume()|[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]]: ratio&gt;| multiplies the volume of this audio clip by <code>ratio</code>
|AdjustVolume:[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| Makes the volume louder or quieter.
|ExtractSides()|[[Type:Func`1|Func`1]]| Split the audio into two or more clips for different audio tracks.
|ExtractSides:[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| Split the audio into two or more clips for different audio tracks.
|Denoise()|[[Type:Func`1|Func`1]]| Removes noise from the audio clip
|Denoise:[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| Removes noise from the audio clip
|TrimSilence()|[[Type:Func`1|Func`1]]| removes the silence from the start and end of the audio clip
|TrimSilence:[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| removes the silence from the start and end of the audio clip
|TrimStartSilence()|[[Type:Func`1|Func`1]]| removes the silence from the start of the clip.
|TrimStartSilence:[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| removes the silence from the start of the clip.
|TrimEndSilence()|[[Type:Func`1|Func`1]]| removes the silence from the end of the clip.
|TrimEndSilence:[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| removes the silence from the end of the clip.
|TrimStart()|[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]]: duration&gt;| removes <code>duration</code> seconds from the start of the clip.
|TrimStart:[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| cuts off audio data from the start of the audio clip.
|TrimEnd()|[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]]: duration&gt;| removes <code>duration</code> seconds from the end of the clip
|TrimEnd:[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| cuts off audio data from the end of the audio clip.
|FadeIn()|[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]]: duration&gt;| makes the audios volume increase from 0 to original over <code>duration</code> seconds at the start of the clip.
|FadeIn:[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| Makes the audio fade in over x seconds.
|FadeOut()|[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]]: duration&gt;| makes the audios volume decrease from original volume to 0 over <code>duration</seconds> seconds at the end of the clip.
|FadeOut:[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| Makes the audio fade out over x seconds.
|MakeFadeLoop()|[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]]: duration&gt;| blends the start and end of the clips by <code>duration</code> seconds to make the audio seem seamless.
|MakeFadeLoop:[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`2|Func`2]]&lt;[[Type:Float|Float]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| Makes the audio loopable, using a cross fade of x seconds.
|ConvertToWAV()|[[Type:Func`1|Func`1]]| converts the audio clip type to Windows audio vodec.
|ConvertToWAV:[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| converts the audio clip type to Windows audio vodec.
|ConvertToVorbis()|[[Type:Func`1|Func`1]]| converts the audio clip type to Vorbis.
|ConvertToVorbis:[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| converts the audio clip type to Vorbis.
|ConvertToFLAC()|[[Type:Func`1|Func`1]]| Converts the audio clip type to FLAC.
|ConvertToFLAC:[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`1|Func`1]]&lt;[[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| Converts the audio clip type to FLAC.
|ApplyZitaReverb:[[Type:Func`2|Func`2]]&lt;[[Type:ZitaParameters|ZitaParameters]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|[[Type:Func`2|Func`2]]&lt;[[Type:ZitaParameters|ZitaParameters]], [[Type:Task`1|Task`1]]&lt;[[Type:Bool|Bool]]&gt;&gt;|false| Uses [[Type:ZitaParameters|ZitaParameters]] to create a reverberation sound effect on this audio clip.
|Normalize:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Makes the volume during the audio clip consistent.
|ExtractSides:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Split the audio into two or more clips for different audio tracks.
|Denoise:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Removes noise from the audio clip
|TrimSilence:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|true| removes the silence from the start and end of the audio clip
|TrimStartSilence:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|true| removes the silence from the start of the clip.
|TrimEndSilence:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|true| removes the silence from the end of the clip.
|TrimStart:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|true| cuts off audio data from the start of the audio clip.
|TrimEnd:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|true| cuts off audio data from the end of the audio clip.
|FadeIn:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|true| Makes the audio fade in over x seconds.
|FadeOut:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|true| Makes the audio fade out over x seconds.
|MakeLoopable:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|true| Makes the audio loopable, using a cross fade of x seconds.
|ConvertToWAV:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|true| converts the audio clip type to Windows audio vodec.
|ConvertToVorbis:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|true| converts the audio clip type to Vorbis.
|ConvertToFLAC:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]&lt;[[Component:FloatTextEditorParser|FloatTextEditorParser]]&gt;|true| Converts the audio clip type to FLAC.
}}
}}



Latest revision as of 16:26, 12 April 2025


This article or section is a Stub. You can help the Resonite Wiki by expanding it.

Component image 
Static Audio Clip component as seen in the Scene Inspector

The StaticAudioClip component is what stores pre recorded audio data for components that play audio like Component:AudioClipPlayer. This component is auto generated when a sound file is imported into the game as part of an audio clip object.

Fields

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.
URL Uri The audio clip data location to load.
LoadMode AudioLoadMode How and when to load the audio
SampleRateMode SampleRateMode How to sample the audio's audio data.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
Normalize:Func`1<Task`1<Bool>> Func`1<Task`1<Bool>> X Makes the volume during the audio clip consistent.
AdjustVolume:Func`2<Float, Task`1<Bool>> Func`2<Float, Task`1<Bool>> X Makes the volume louder or quieter.
ExtractSides:Func`1<Task`1<Bool>> Func`1<Task`1<Bool>> X Split the audio into two or more clips for different audio tracks.
Denoise:Func`1<Task`1<Bool>> Func`1<Task`1<Bool>> X Removes noise from the audio clip
TrimSilence:Func`1<Task`1<Bool>> Func`1<Task`1<Bool>> X removes the silence from the start and end of the audio clip
TrimStartSilence:Func`1<Task`1<Bool>> Func`1<Task`1<Bool>> X removes the silence from the start of the clip.
TrimEndSilence:Func`1<Task`1<Bool>> Func`1<Task`1<Bool>> X removes the silence from the end of the clip.
TrimStart:Func`2<Float, Task`1<Bool>> Func`2<Float, Task`1<Bool>> X cuts off audio data from the start of the audio clip.
TrimEnd:Func`2<Float, Task`1<Bool>> Func`2<Float, Task`1<Bool>> X cuts off audio data from the end of the audio clip.
FadeIn:Func`2<Float, Task`1<Bool>> Func`2<Float, Task`1<Bool>> X Makes the audio fade in over x seconds.
FadeOut:Func`2<Float, Task`1<Bool>> Func`2<Float, Task`1<Bool>> X Makes the audio fade out over x seconds.
MakeFadeLoop:Func`2<Float, Task`1<Bool>> Func`2<Float, Task`1<Bool>> X Makes the audio loopable, using a cross fade of x seconds.
ConvertToWAV:Func`1<Task`1<Bool>> Func`1<Task`1<Bool>> X converts the audio clip type to Windows audio vodec.
ConvertToVorbis:Func`1<Task`1<Bool>> Func`1<Task`1<Bool>> X converts the audio clip type to Vorbis.
ConvertToFLAC:Func`1<Task`1<Bool>> Func`1<Task`1<Bool>> X Converts the audio clip type to FLAC.
ApplyZitaReverb:Func`2<ZitaParameters, Task`1<Bool>> Func`2<ZitaParameters, Task`1<Bool>> X Uses ZitaParameters to create a reverberation sound effect on this audio clip.
Normalize:ButtonEventHandler ButtonEventHandler Makes the volume during the audio clip consistent.
ExtractSides:ButtonEventHandler ButtonEventHandler Split the audio into two or more clips for different audio tracks.
Denoise:ButtonEventHandler ButtonEventHandler Removes noise from the audio clip
TrimSilence:ButtonEventHandler`1<FloatTextEditorParser> ButtonEventHandler`1<FloatTextEditorParser> removes the silence from the start and end of the audio clip
TrimStartSilence:ButtonEventHandler`1<FloatTextEditorParser> ButtonEventHandler`1<FloatTextEditorParser> removes the silence from the start of the clip.
TrimEndSilence:ButtonEventHandler`1<FloatTextEditorParser> ButtonEventHandler`1<FloatTextEditorParser> removes the silence from the end of the clip.
TrimStart:ButtonEventHandler`1<FloatTextEditorParser> ButtonEventHandler`1<FloatTextEditorParser> cuts off audio data from the start of the audio clip.
TrimEnd:ButtonEventHandler`1<FloatTextEditorParser> ButtonEventHandler`1<FloatTextEditorParser> cuts off audio data from the end of the audio clip.
FadeIn:ButtonEventHandler`1<FloatTextEditorParser> ButtonEventHandler`1<FloatTextEditorParser> Makes the audio fade in over x seconds.
FadeOut:ButtonEventHandler`1<FloatTextEditorParser> ButtonEventHandler`1<FloatTextEditorParser> Makes the audio fade out over x seconds.
MakeLoopable:ButtonEventHandler`1<FloatTextEditorParser> ButtonEventHandler`1<FloatTextEditorParser> Makes the audio loopable, using a cross fade of x seconds.
ConvertToWAV:ButtonEventHandler`1<FloatTextEditorParser> ButtonEventHandler`1<FloatTextEditorParser> converts the audio clip type to Windows audio vodec.
ConvertToVorbis:ButtonEventHandler`1<FloatTextEditorParser> ButtonEventHandler`1<FloatTextEditorParser> converts the audio clip type to Vorbis.
ConvertToFLAC:ButtonEventHandler`1<FloatTextEditorParser> ButtonEventHandler`1<FloatTextEditorParser> Converts the audio clip type to FLAC.

Usage

Examples

See Also