-
Notifications
You must be signed in to change notification settings - Fork 0
/
OB6Patch.h
30 lines (20 loc) · 847 Bytes
/
OB6Patch.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
/*
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 OB6Patch : public Patch, public StoredPatchNameCapability, public DefaultNameCapability {
public:
OB6Patch(int dataTypeID, Synth::PatchData const &patchData, MidiProgramNumber programNo);
virtual std::string name() const override;
virtual MidiProgramNumber patchNumber() const override;
// StoredPatchNameCapability - even if the OB6 does not show patch names, it stores them!
virtual void setName(std::string const &name) override;
virtual bool isDefaultName(std::string const &patchName) const override;
private:
MidiProgramNumber place_;
};
}