MCPcopy Create free account
hub / github.com/LabSound/LabSound / TempoSyncToIndex

Function TempoSyncToIndex

src/extended/BPMDelay.cpp:19–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace lab
18{
19inline int TempoSyncToIndex(TempoSync in)
20{
21 switch (in)
22 {
23 case TS_32:
24 return 0;
25 case TS_16T:
26 return 1;
27 case TS_32D:
28 return 2;
29 case TS_16:
30 return 3;
31 case TS_8T:
32 return 4;
33 case TS_16D:
34 return 5;
35 case TS_8:
36 return 6;
37 case TS_4T:
38 return 7;
39 case TS_8D:
40 return 8;
41 case TS_4:
42 return 9;
43 case TS_2T:
44 return 10;
45 case TS_4D:
46 return 11;
47 case TS_2:
48 return 12;
49 case TS_2D:
50 return 13;
51 default:
52 return 0;
53 }
54}
55
56BPMDelay::BPMDelay(AudioContext & ac, float tempo)
57 : lab::DelayNode(ac, 8.0f)

Callers 1

SetDelayIndexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected