đĩAudio Sample
Sample a region of audio frequencies to drive motion
Last updated
Sample a region of audio frequencies to drive motion
Last updated
Use this behavior to generate audio amplitude from a range of frequencies to drive audio-reactive behaviors. This requires an Audio Spectrum to provide the spectrum data for calculation.
Add multiple instances of Audio Sample to separate low, mid, and high frequencies.
Use Channel Link to link behaviors to Amplitude to drive audio-reactive effects.
Select the object to view its settings in the Inspector.
For common features, please see Menu Bar and Update Settings.
Assign the Audio Spectrum to provide spectrum data for this sample.
Average: calculates the average amplitude value over the frequency range.
Maximum: returns the maximum value over the frequency range.
Average is usually preferred since it results in a more stable calculation over time, whereas Maximum will jump any time there is a spike in the
If this button appears, click it to register this Audio Sample to receive data from the Audio Spectrum. This might occur if the Audio Spectrum reference has been changed.
Set the range of frequencies to sample, from about 20Hz to 20000Hz.
Frequencies are distributed logarithmically from low to high. For lower frequencies, a smaller range is usually best, while higher ranges may span larger values.
To help identify active frequency ranges in the audio, use the graph display in Audio Spectrum and adjust the range to preview.
Sets the minimum amplitude or lower threshold (RMS) for detecting changes in amplitude. Everything below this level is ignored.
Use Threshold similar to a gate filter, only reacting to spikes in the audio above the minimum audio range. This is helpful to filter out low level noise and isolate specific instruments.
Sets time in seconds for amplitude to decrease, effectively applying temporal smoothing. Set to 0 to disable.
Use this to sustain audio-reactive hits a bit longer after the initial impulse of an increase in amplitude. Since spectrum data can by very dynamic and change dramatically from one frame to the next, this helps stabilize amplitude values over time.
Scales the final amplitude.
Use Multiply to overall increase or decrease the intensity of the amplitude calculated.
Scales the current object by the final amplitude. This is primarily a preview function however may be used in production as well.
To map Audio Sample to additional properties, use Audio Reactive or Channel Link to route the Amplitude value where desired.
If enabled, the named global property is set with the current amplitude on each update affecting all shaders with the named property.
This is an efficient way to animate properties across all materials using specific shaders.
To target a global property defined in Shader Graph, make sure the variable name matches exactly and is not exposed in the editor.
Audio sampling data may be "baked" meaning that its values are recorded and stored for subsequent replays without reprocessing audio. This may be advantageous for performance and to overcome any limitations with real-time audio processing and target devices.
Click to enable recording of data for the Audio Sample. The UI displays in red while capturing.
Data is only recorded when Timeflow is played in edit mode.
To record data, rewind Timeflow and play it from the beginning (while still in edit mode). Data is only recorded on the frames played. Any areas of the timeline not capture are left empty and have no effect during playback.
Click Stop Baking when done recording. The baked data is now used in place of audio sampling as long as Use Baked Data is enabled.
Use these buttons to enable / disable recording on all instances of Audio Sample in the scene.
The bulk operation to start, stop, turn off, and clear all are useful when preparing scenes for rendering and then removing all the baked data when finished.
Disables Use Baked Data for all Audio Sample instances in the scene.
Clears all baked data and turns off Used Baked Data for all Audio Sample instances.