Ardour
9.0-pre0-427-gd2a3450e2f
iec2ppmdsp.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2012 Fons Adriaensen <fons@linuxaudio.org>
3
* Copyright (C) 2013-2014 Paul Davis <paul@linuxaudiosystems.com>
4
* Copyright (C) 2013-2019 Robin Gareus <robin@gareus.org>
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License along
17
* with this program; if not, write to the Free Software Foundation, Inc.,
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
*/
20
21
#ifndef __IEC2PPMDSP_H
22
#define __IEC2PPMDSP_H
23
24
#include "
ardour/libardour_visibility.h
"
25
26
class
LIBARDOUR_API
Iec2ppmdsp
27
{
28
public
:
29
30
Iec2ppmdsp
(
void
);
31
~Iec2ppmdsp
(
void
);
32
33
void
process
(
float
const
*p,
int
n);
34
float
read
(
void
);
35
void
reset
();
36
37
static
void
init
(
float
fsamp);
38
39
private
:
40
41
float
_z1
;
// filter state
42
float
_z2
;
// filter state
43
float
_m
;
// max value since last read()
44
bool
_res
;
// flag to reset m
45
46
static
float
_w1
;
// attack filter coefficient
47
static
float
_w2
;
// attack filter coefficient
48
static
float
_w3
;
// release filter coefficient
49
static
float
_g
;
// gain factor
50
};
51
52
53
#endif
Iec2ppmdsp
Definition:
iec2ppmdsp.h:27
Iec2ppmdsp::reset
void reset()
Iec2ppmdsp::read
float read(void)
Iec2ppmdsp::_z1
float _z1
Definition:
iec2ppmdsp.h:41
Iec2ppmdsp::_w3
static float _w3
Definition:
iec2ppmdsp.h:48
Iec2ppmdsp::~Iec2ppmdsp
~Iec2ppmdsp(void)
Iec2ppmdsp::_g
static float _g
Definition:
iec2ppmdsp.h:49
Iec2ppmdsp::_w1
static float _w1
Definition:
iec2ppmdsp.h:46
Iec2ppmdsp::_res
bool _res
Definition:
iec2ppmdsp.h:44
Iec2ppmdsp::init
static void init(float fsamp)
Iec2ppmdsp::_w2
static float _w2
Definition:
iec2ppmdsp.h:47
Iec2ppmdsp::process
void process(float const *p, int n)
Iec2ppmdsp::_m
float _m
Definition:
iec2ppmdsp.h:43
Iec2ppmdsp::Iec2ppmdsp
Iec2ppmdsp(void)
Iec2ppmdsp::_z2
float _z2
Definition:
iec2ppmdsp.h:42
libardour_visibility.h
LIBARDOUR_API
#define LIBARDOUR_API
Definition:
libardour_visibility.h:38
libs
ardour
ardour
iec2ppmdsp.h
Generated on Mon Nov 11 2024 08:49:01 for Ardour by
1.9.1