Skip to content

Commit

Permalink
feat: Integrating TapBPM with OBS.Beat.Timer ( Fixes #195 )
Browse files Browse the repository at this point in the history
Casting average to [timespan]
  • Loading branch information
James Brundage committed Feb 14, 2024
1 parent 2f8a8c4 commit aac89c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Types/OBS.Beat/TapBPM.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $beatTimes = do {
$averageTimeBetweenBeats =
$beatTimes.TotalMilliseconds | Measure-Object -Average | Select-Object -ExpandProperty Average

$this.Duration = $averageTimeBetweenBeats
$this.Duration = [Timespan]::FromMilliseconds($averageTimeBetweenBeats)
$this.BeatStart = $beatTimes[-1]
$TappedBpm

Expand Down

0 comments on commit aac89c8

Please sign in to comment.