-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathsamplerbank.h
More file actions
34 lines (27 loc) · 979 Bytes
/
samplerbank.h
File metadata and controls
34 lines (27 loc) · 979 Bytes
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
#pragma once
#include <QObject>
#include <memory>
#include "preferences/usersettings.h"
class ControlObject;
class ControlProxy;
class PlayerManager;
// TODO(Be): Replace saving/loading an XML file with saving/loading to the database.
// That should be part of a larger project to implement
// remix decks/sampler groups/whatever we end up calling them.
class SamplerBank : public QObject {
Q_OBJECT
public:
SamplerBank(UserSettingsPointer pConfig,
PlayerManager* pPlayerManager);
bool saveSamplerBankToPath(const QString& samplerBankPath);
bool loadSamplerBankFromPath(const QString& samplerBankPath);
private slots:
void slotSaveSamplerBank(double v);
void slotLoadSamplerBank(double v);
private:
UserSettingsPointer m_pConfig;
PlayerManager* m_pPlayerManager;
std::unique_ptr<ControlObject> m_pCOLoadBank;
std::unique_ptr<ControlObject> m_pCOSaveBank;
ControlProxy* m_pCONumSamplers;
};