5#include "util/d_string.h"
10enum SyncType : uint8_t {
12 SYNC_TYPE_TRIPLET = 10,
13 SYNC_TYPE_DOTTED = 19,
17#define MIN_SWING_INERVAL 1
18#define MAX_SWING_INTERVAL (SYNC_TYPE_TRIPLET - 1)
19#define NUM_SWING_INTERVALS SYNC_TYPE_TRIPLET
22enum SyncLevel : uint8_t {
35#define MAX_SYNC_LEVEL 9
36#define NUM_SYNC_VALUES 28
38enum SyncLevel syncValueToSyncLevel(int32_t option);
40enum SyncType syncValueToSyncType(int32_t value);
42void syncValueToString(uint32_t value,
StringBuf& buffer, int32_t tickMagnitude);
45int32_t wrapSwingIntervalSyncLevel(int32_t value);
48int32_t clampSwingIntervalSyncLevel(int32_t value);
Definition d_string.h:106