-
Notifications
You must be signed in to change notification settings - Fork 16
/
ModuleKitSelect.h
58 lines (48 loc) · 1.11 KB
/
ModuleKitSelect.h
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* +----------------------+
* | ModuleKitSelect |
* |----------------------|
* > kit_selection_input |
* | |
* | kick_output>
* | snare_output>
* | hihat_output>
* +----------------------+
*
*/
// =============================================================================
//
// ModuleKitSelect is a helper module for SynthDrumPlayer that outputs three
// values depending on the kit selection input.
//
#ifndef ModuleKitSelect_h
#define ModuleKitSelect_h
#include "Arduino.h"
#include "Module.h"
#include "ModuleOutput.h"
class ModuleKitSelect : public Module
{
public:
ModuleKitSelect();
uint16_t compute();
// The number in the kits array are the indexes of
// the sounds in ModuleSamplePlayer.php
uint8_t kits[3][3] = {
{
0,1,2
},
{
3,4,5
},
{
6,7,8
}
};
// Inputs
Module *kit_selection_input;
// Outputs
ModuleOutput *kick_output;
ModuleOutput *snare_output;
ModuleOutput *hihat_output;
};
#endif