-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclicks.ts
43 lines (39 loc) · 1.3 KB
/
clicks.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { SynctrackTempo } from "./src/ts/schemas/music/tempo";
export interface ClickPayload {
id: string;
clickIndex: number;
duration: number;
}
export interface ClicksBase {
readonly id: string;
readonly temposHeartbeats: SynctrackTempo | Array<SynctrackTempo>;
readonly tempos: number | Array<number>;
readonly heartbeats: number | Array<number>;
readonly groupRepeats: number | Array<number>;
readonly clickRepeats: number | Array<number>;
readonly numberOfClicksPerGroup: number | Array<number>;
readonly numberOfClicksPerClickGroup: number | Array<number>;
readonly delays: number | Array<number>;
tempoHeartbeatIndex: number;
groupRepeatIndex: number;
clickRepeatIndex: number;
clickGroupIndex: number;
clickPerClickGroupIndex: number;
delayIndex: number;
clickIndex: number;
clickPerClickGroupValue: number;
clickPerGroupValue: number;
clickRepeatValue: number;
groupRepeatValue: number;
tempoHeartbeatValue: SynctrackTempo;
tempoValue: number;
heartbeatValue: number;
readonly click?: (click: ClickPayload) => void;
}
export interface Clicks extends ClicksBase {
readonly subclicks?: Array<ClicksBase>;
}
export interface MetronomeClicks {
presetId?: string;
clicks: Clicks | Array<Clicks>;
}