HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
SawToothWaveOscillator.h
Go to the documentation of this file.
1#pragma once
2#include "HephAudioShared.h"
3#include "Oscillator.h"
4
7namespace HephAudio
8{
14 {
15 public:
18
24 SawToothWaveOscillator(uint32_t sampleRate);
25
27 SawToothWaveOscillator(double peakAmplitude, double frequency, uint32_t sampleRate, double phase_rad);
28
29 double operator[](size_t n) const override;
30 };
31}
#define HEPH_API
Definition HephShared.h:132
base class for oscillators.
Definition Oscillator.h:16
generates sawtooth wave signals.
Definition SawToothWaveOscillator.h:14
SawToothWaveOscillator(uint32_t sampleRate)
double operator[](size_t n) const override
SawToothWaveOscillator(double peakAmplitude, double frequency, uint32_t sampleRate, double phase_rad)