blob: 290156082a4a7dd1b42d9a8348db43d9c89df0fc (
plain)
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
|
#pragma once
#include <vector>
#include <string>
struct DrumkitDOM;
struct InstrumentDOM;
class DrumKit;
struct Settings;
class Random;
class InstrumentChannel;
class Instrument;
class DOMLoader
{
public:
DOMLoader(Settings& settings, Random& random);
bool loadDom(const std::string& basepath,
const DrumkitDOM& dom,
const std::vector<InstrumentDOM>& instrumentdoms,
DrumKit& drumkit);
private:
static InstrumentChannel* addOrGetChannel(Instrument& instrument,
const std::string& name);
Settings& settings;
Random& random;
};
|