Skip to content

Commit

Permalink
feat: OBS.Beat.Sine ( Fixes #192 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Feb 14, 2024
2 parents c8c41ab + 827ba6c commit 391d6ec
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/OBS/Beat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
* [set_BeatStart](set_BeatStart.md)
* [get_BPM](get_BPM.md)
* [set_BPM](set_BPM.md)
* [get_Cosine](get_Cosine.md)
* [get_Duration](get_Duration.md)
* [set_Duration](set_Duration.md)
15 changes: 15 additions & 0 deletions docs/OBS/Beat/get_Cosine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
OBS.Beat.get_Cosine()
---------------------

### 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.

---
14 changes: 14 additions & 0 deletions obs-powershell.types.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,20 @@ $this | Add-Member NoteProperty ".BPM" $BPM -Force -PassThru

</SetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Cosine</Name>
<GetScriptBlock>
&lt;#
.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.
#&gt;
[Math]::Cos($this.BeatCount * [Math]::PI/2)
</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Duration</Name>
<GetScriptBlock>
Expand Down

0 comments on commit 391d6ec

Please sign in to comment.