OBS.Beat
pseudotype will help manage BPM-related functionality
#177
Labels
enhancement
New feature or request
Having a central beat clock will make things easier to manage, at least when it comes to music.
Starting basic, we'll need to expose the psuedotype within the OBS object:
$OBS.Beat
should be anOBS.Beat
singleton #186OBS.Beat.BPM
should get and set the BPM #187To do anything extra fun, we'll also need to know when the beat started:
OBS.Beat.BeatStart
should get and set the [DateTime] the beat started #188Once we have this piece of information, we can begin to derive more information:
OBS.Beat.Duration
should get (and set) the duration of the beat #189OBS.Beat.BeatCount
should return the number of beats since the beat started #190We'll want to make setting a
.BPM
and.BeatStart
easy:OBS.Beat.TapBPM()
should let a BPM be tapped out #191Then we'll want to get creative:
OBS.Beat.Sin/Sine
should return the sine of the current beat #192OBS.Beat.Cos/Cosine
should return the cosine of the current beat #193OBS.Beat.Angle
should get the current beat, expressed as an angle #194We will want to manage BPM with timers and events
OBS.Beat.Timer
should get and set the[Timer]
used to track BPM #195The text was updated successfully, but these errors were encountered: