Plaquette
Loading...
Searching...
No Matches
SineWave.h
1
/*
2
* SineWave.h
3
*
4
* (c) 2015 Sofian Audry :: info(@)sofianaudry(.)com
5
* (c) 2015 Thomas O Fredericks :: tof(@)t-o-f(.)info
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef SINE_WAVE_H_
22
#define SINE_WAVE_H_
23
24
#include "AbstractWave.h"
25
26
namespace
pq {
27
32
class
[[deprecated(
"Use Wave(SINE) instead."
)]]
SineWave
:
public
AbstractWave
{
33
public
:
38
SineWave
(
Engine
& engine = Engine::primary());
39
45
SineWave
(
float
period,
Engine
& engine = Engine::primary());
46
53
SineWave
(
float
period,
float
skew,
Engine
& engine = Engine::primary());
54
55
virtual
~SineWave
() {}
56
57
protected
:
58
// Returns value in [0, 1].
59
// virtual float _get(q0_32u_t t);
60
virtual
q0_32u_t _getFixed32(q0_32u_t t);
61
};
62
64
[[deprecated(
"Use Wave(SINE) instead."
)]]
65
typedef
SineWave
SineOsc
;
66
67
}
68
69
#endif
pq::AbstractWave
Triangle/sawtooth oscillator.
Definition
AbstractWave.h:33
pq::Engine
The main Plaquette static class containing all the units.
Definition
PqCore.h:60
pq::SineWave
Definition
SineWave.h:32
src
SineWave.h
Generated on Thu Nov 6 2025 12:47:55 for Plaquette by
1.9.8