-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPyTschirpAttribute.h
41 lines (29 loc) · 1020 Bytes
/
PyTschirpAttribute.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
/*
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"
#ifdef _MSC_VER
#pragma warning ( push )
#pragma warning ( disable: 4100 )
#endif
#include <pybind11/pybind11.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
class PyTschirpAttribute {
public:
PyTschirpAttribute(std::shared_ptr<midikraft::Patch> patch, std::string const ¶m);
PyTschirpAttribute(std::shared_ptr<midikraft::Patch> patch, std::string const ¶m, int targetLayerNo);
void set(int value);
void set(std::vector<int> data);
pybind11::object get() const;
std::string asText() const;
// Bindings not for python
std::shared_ptr <midikraft::SynthParameterDefinition> def();
private:
std::shared_ptr<midikraft::SynthParameterDefinition> defByName(std::string const &name) const;
std::shared_ptr<midikraft::Patch> patch_;
std::shared_ptr<midikraft::SynthParameterDefinition> def_;
};