lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
ValueBuffer.h
Go to the documentation of this file.
1
/*
2
* ValueBuffer.h - a container class for passing buffers of model values around
3
*
4
* Copyright (c) 2014 Vesa Kivimäki <contact/dot/diizy/at/nbl/dot/fi>
5
* Copyright (c) 2008-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
6
*
7
* This file is part of LMMS - https://lmms.io
8
*
9
* This program is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU General Public
11
* License as published by the Free Software Foundation; either
12
* version 2 of the License, or (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public
20
* License along with this program (see COPYING); if not, write to the
21
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22
* Boston, MA 02110-1301 USA.
23
*
24
*/
25
26
#ifndef LMMS_VALUE_BUFFER_H
27
#define LMMS_VALUE_BUFFER_H
28
29
#include <vector>
30
31
#include "lmms_export.h"
32
33
namespace
lmms
34
{
35
36
37
class
LMMS_EXPORT
ValueBuffer
:
public
std::vector<float>
38
{
39
public
:
40
ValueBuffer
() =
default
;
41
ValueBuffer
(
int
length
);
42
43
void
fill
(
float
value
);
44
45
float
value
(
int
offset )
const
;
46
47
const
float
*
values
()
const
;
48
float
*
values
();
49
50
int
length
()
const
;
51
52
void
interpolate
(
float
start,
float
end);
53
};
54
55
56
}
// namespace lmms
57
58
#endif
// LMMS_VALUE_BUFFER_H
lmms::ValueBuffer::fill
void fill(float value)
Definition
ValueBuffer.cpp:14
lmms::ValueBuffer::values
const float * values() const
Definition
ValueBuffer.cpp:24
lmms::ValueBuffer::interpolate
void interpolate(float start, float end)
Definition
ValueBuffer.cpp:39
lmms::ValueBuffer::value
float value(int offset) const
Definition
ValueBuffer.cpp:19
lmms::ValueBuffer::ValueBuffer
ValueBuffer()=default
lmms::ValueBuffer::length
int length() const
Definition
ValueBuffer.cpp:34
lmms
Definition
RemotePluginBase.cpp:34
Generated on
for lmms by
1.18.0