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

add streamGetbpm to Stream.hs #1018

Closed
@jarmitage

Description

@jarmitage

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    StreamIssues related to the Stream functionality of playing Tidal patterns

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions