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
SquareWaveOscillator.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 SquareWaveOscillator(uint32_t sampleRate);
25
27 SquareWaveOscillator(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 square wave signals.
Definition SquareWaveOscillator.h:14
SquareWaveOscillator(double peakAmplitude, double frequency, uint32_t sampleRate, double phase_rad)
SquareWaveOscillator(uint32_t sampleRate)
double operator[](size_t n) const override