llealloo / audiolink

Audio reactive prefabs for VRChat
Other
364 stars 40 forks source link

Updated Filtered AL Docs #223

Closed orels1 closed 1 year ago

orels1 commented 1 year ago

There was some discussion in Shader discord, and I think the docs might use a little bit of a bigger explanation of the feature, as it is really useful!

Current Docs

ALPASS_FILTEREDAUDIOLINK

This is just the initial audiolink values, but very heavily filtered, so they move very smoothly. This feature was added in version 2.5.

New Docs

ALPASS_FILTEREDAUDIOLINK

This is the most recent 4 Band AudioLink value, but heavily smoothed. This allows you to avoid potentially unwanted jerkiness/strobing when the 4 Band values are changing quickly.

There are 16 smoothing levels offered, starting with the most smoothed at X: 0. The least smoothed is at X: 15.

You can get a level 10 smoothed Bass value like this:

    return AudioLinkData( ALPASS_FILTEREDAUDIOLINK + int2(10, 0) ).rrrr;

This feature was added in version 2.5.