This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Description
bpm <- Link.getTempo ss
is already available here, so it would be nice to add streamGetbpm
here:
|
streamGetcps :: Stream -> IO Double |
|
streamGetcps s = do |
|
let config = sConfig s |
|
ss <- Link.createAndCaptureAppSessionState (sLink s) |
|
bpm <- Link.getTempo ss |
|
return $! coerce $ bpm / (cBeatsPerCycle config) / 60 |