Last active
August 3, 2023 19:17
-
-
Save reisir/80393374a04e4a2725788d107d4e69b0 to your computer and use it in GitHub Desktop.
Optimal AudioLevel setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Optimal AudioLevel setup | |
; Thanks to @kodikuu for the math | |
[Variables] | |
; How many bands to generate | |
Bands=50 | |
; How many frames of data to keep (an integer higher than 0) | |
; Higher accuracy also means higher latency | |
Accuracy=5 | |
; How many bands to skip, it's recommended to skip the first band because of AudioLevel inaccuracies | |
SkipBands=1 | |
FreqMin=20 | |
FreqMax=20000 | |
Sensitivity=25 | |
FFTAttack=0 | |
FFTDecay=0 | |
; Assuming Update=16 | |
FPS=60 | |
; Get the current audio devices sampling rate | |
[MeasureSamplingRate] | |
Measure=Plugin | |
Plugin=AudioLevel | |
Type=Format | |
RegExpSubstitute=1 | |
Substitute="(Hz.*)$":"" | |
UpdateDivider=-1 | |
[MeasureAudio] | |
Measure=Plugin | |
Plugin=AudioLevel | |
DynamicVariables=1 | |
FFTSize=([MeasureSamplingRate] * #Accuracy# / #FPS#) | |
FFTOverlap=([MeasureSamplingRate] * (#Accuracy# - 1) / #FPS#) | |
FFTAttack=#FFTAttack# | |
FFTDecay=#FFTDecay# | |
Bands=(#Bands# + #SkipBands#) | |
FreqMin=#FreqMin# | |
FreqMax=#FreqMax# | |
Sensitivity=#Sensitivity# | |
; An example Factory.lua generator setup | |
; [MeasureBandFactory] | |
; Measure=Script | |
; ScriptFile=#@#Factory.lua | |
; IncFile=#@#BandMeasures.inc | |
; Number=#Bands# | |
; SectionName=%% | |
; Option0=Measure | |
; Value0=Plugin | |
; Option1=Plugin | |
; Value1=AudioLevel | |
; Option2=Parent | |
; Value2=MeasureAudio | |
; Option3=Type | |
; Value3=Band | |
; Option4=BandIdx | |
; Value4={%% + #SkipBands#} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment