VCV Rack API
v2
Loading...
Searching...
No Matches
Param.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <common.hpp>
3
#include <
math.hpp
>
4
5
6
namespace
rack
{
7
namespace
engine {
8
9
10
struct
Param
{
12
float
value
= 0.f;
13
14
float
getValue
() {
15
return
value
;
16
}
17
18
void
setValue
(
float
value
) {
19
this->value =
value
;
20
}
21
};
22
23
24
}
// namespace engine
25
}
// namespace rack
math.hpp
rack
Root namespace for the Rack API.
Definition
AudioDisplay.hpp:9
rack::engine::Param
Definition
Param.hpp:10
rack::engine::Param::value
float value
Unstable API.
Definition
Param.hpp:12
rack::engine::Param::setValue
void setValue(float value)
Definition
Param.hpp:18
rack::engine::Param::getValue
float getValue()
Definition
Param.hpp:14
include
engine
Param.hpp
Generated by
1.12.0