From f922ede48bfeb296e6aaebf8c17577ae72fd4268 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 13 Feb 2024 23:33:44 -0800 Subject: [PATCH] feat: OBS.Beat.Cosine ( Fixes #193 ) --- Types/OBS.Beat/get_Cosine.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Types/OBS.Beat/get_Cosine.ps1 diff --git a/Types/OBS.Beat/get_Cosine.ps1 b/Types/OBS.Beat/get_Cosine.ps1 new file mode 100644 index 000000000..211865988 --- /dev/null +++ b/Types/OBS.Beat/get_Cosine.ps1 @@ -0,0 +1,9 @@ +<# +.SYNOPSIS + Gets the Beat Cosine +.DESCRIPTION + Gets the Cosine of the BeatCount. + + Since this starts at 1, this would be at its highest value during the top of the beat. +#> +[Math]::Cos($this.BeatCount * [Math]::PI/2) \ No newline at end of file