summaryrefslogtreecommitdiff
path: root/metronome.h
blob: 1a81778b022d50795970bef27cbbee31ae3c4e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef STEMSEP_METRONOME_H
#define STEMSEP_METRONOME_H

#include <stdbool.h>
#include <stddef.h>

#define METRONOME_DEFAULT_BEATS 4U

bool metronome_bpm_validate(const char *text, double *bpm, char *message,
                            size_t message_size);

bool metronome_beats_validate(const char *text, unsigned *beats, char *message,
                              size_t message_size);

int metronome_run(double bpm, unsigned beats_per_bar);

#endif