-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSekvojModulePool.h
53 lines (44 loc) · 1.37 KB
/
SekvojModulePool.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
/*
* SekvojModulePool.h
*
* Created on: Jan 11, 2015
* Author: martin
*/
#ifndef SEKVOJMODULEPOOL_H_
#define SEKVOJMODULEPOOL_H_
#include <Player.h>
#include <IStepMemory.h>
#include <PlayerSettings.h>
#include <BastlMetronome.h>
#include <StepRecorder.h>
#include "InstrumentBar.h"
#include "IButtonMap.h"
#include <StepSynchronizer.h>
#include <ITapper.h>
#include "SekvojRackSDPreset.h"
/* This class is bit dangerous to the system but shall save a lot of memory needed
* for program so we take that risk and do it!
*/
class SekvojModulePool
{
public:
static Player * player_;
static StepRecorder recorder_;
static IStepMemory * memory_;
static PlayerSettings * settings_;
static InstrumentBar * instrumentBar_;
static IButtonMap * buttonMap_;
static SekvojRackSDPreset sd_;
static StepSynchronizer synchronizer_;
static ITapper * tapper_;
static unsigned char buttonMap_getSubStepButtonIndex(unsigned char index) {
return buttonMap_->getSubStepButtonIndex(index);
}
static unsigned char * buttonMap_getInstrumentButtonArray() {
return buttonMap_->getInstrumentButtonArray();
}
static unsigned char * buttonMap_getSubStepButtonArray() {
return buttonMap_->getSubStepButtonArray();
}
};
#endif /* SEKVOJMODULEPOOL_H_ */