-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRefaceDXPatch.h
35 lines (23 loc) · 942 Bytes
/
RefaceDXPatch.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
/*
Copyright (c) 2020 Christof Ruch. All rights reserved.
Dual licensed: Distributed under Affero GPL license by default, an MIT license is available for purchase
*/
#pragma once
#include "Patch.h"
#include "StoredPatchNameCapability.h"
namespace midikraft {
class RefaceDXPatch : public Patch, public StoredPatchNameCapability, public DefaultNameCapability {
public:
typedef struct { std::vector<uint8> common; std::vector<uint8> op[4]; int count; } TVoiceData;
RefaceDXPatch(Synth::PatchData const &voiceData, MidiProgramNumber place);
virtual std::string name() const override;
// StoredPatchNameCapability
virtual void setName(std::string const &name) override;
// DefaultNameCapability
virtual bool isDefaultName(std::string const &patchName) const override;
virtual MidiProgramNumber patchNumber() const override;
private:
friend class RefaceDX;
MidiProgramNumber originalProgramNumber_;
};
}