Skip to content

Is there documentation on clap_event_transport #164

Answered by robbert-vdh
sagantech asked this question in Q&A
Discussion options

You must be logged in to vote

There's a comment on how to use these fixed point numbers just above that definition for clap_beattime:

/// We use fixed point representation of beat time and seconds time
/// Usage:
/// double x = ...; // in beats
/// clap_beattime y = round(CLAP_BEATTIME_FACTOR * x);
// This will never change
static const CLAP_CONSTEXPR int64_t CLAP_BEATTIME_FACTOR = 1LL << 31;
static const CLAP_CONSTEXPR int64_t CLAP_SECTIME_FACTOR = 1LL << 31;
typedef int64_t clap_beattime;
typedef int64_t clap_sectime;

And the length of a beat is determined by the tempo. So at a tempo of 174 bea…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sagantech
Comment options

@baconpaul
Comment options

@sagantech
Comment options

Answer selected by sagantech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants