Skip to content

Commit

Permalink
direction threshold now properly works
Browse files Browse the repository at this point in the history
  • Loading branch information
CrookedToe committed Jan 26, 2025
1 parent 5726f73 commit d9995f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/OSCAudioReaction/OSCAudioReactionModule.cs
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@ protected override void OnPreLoad()
CreateSlider(AudioSetting.Gain, "Manual Gain", "Manual gain multiplier when AGC is disabled", 1.0f, 0.1f, 5.0f);
CreateToggle(AudioSetting.EnableAGC, "Auto Gain", "Enable automatic gain control", true);
CreateSlider(AudioSetting.Smoothing, "Smoothing", "Smoothing factor for volume and direction changes (0 = none, 1 = max)", 0.5f, 0.0f, 1.0f);
CreateSlider(AudioSetting.DirectionThreshold, "Direction Threshold", "Minimum volume level to calculate direction", 0.01f, 0.001f, 0.1f);
CreateSlider(AudioSetting.DirectionThreshold, "Direction Threshold", "Minimum volume level to calculate direction", 0.01f, 0.0f, 0.1f, 0.005f);

// Register parameters
RegisterParameter<float>(AudioParameter.AudioDirection, "audio_direction", ParameterMode.Write, "Audio Direction", "Direction of the sound (0 = left, 0.5 = center, 1 = right)");

0 comments on commit d9995f0

Please sign in to comment.