ofxPDSP
TableOscillator.h
1 
2 // TableOscillator.h
3 // ofxPDSP
4 // Nicola Pisanti, MIT License, 2016
5 
6 #ifndef PDSP_MODULE_TABLEOSCILLATOR_H_INCLUDED
7 #define PDSP_MODULE_TABLEOSCILLATOR_H_INCLUDED
8 
9 #include "../../DSP/pdspCore.h"
10 
11 #include "../../DSP/oscillators/wavetable/WaveTableOsc.h"
12 #include "../../DSP/oscillators/phasors/LFOPhasor.h"
13 #include "../../DSP/utility/PitchToFreq.h"
14 
15 
16 
17 namespace pdsp{
18 
23 class TableOscillator : public Patchable {
24 
25 public:
26 
28  TableOscillator(const TableOscillator &Other);
29  TableOscillator& operator=(const TableOscillator &Other);
30 
35  void setTable(WaveTable& waveTable);
36 
41 
46 
47 
48 
53 
54 
58  float meter_pitch() const;
59 
60 private:
61  void patch();
62 
63  WaveTableOsc wto;
64  PitchToFreq p2f;
65  LFOPhasor phasor;
66 
67 };
68 
69 } //END NAMESPACE
70 
71 
72 #endif // PDSP_MODULE_TABLEOSCILLATOR_H_INCLUDED
Patchable & out_signal()
Sets "signal" as selected output and returns this Unit ready to be patched. This is the default outpu...
Definition: TableOscillator.cpp:39
float meter_pitch() const
meters the oscillator pitch. This method is thread-safe.
Definition: TableOscillator.cpp:26
Patchable & in_pitch()
Sets "pitch" as selected input and returns this module ready to be patched. This is the default input...
Definition: TableOscillator.cpp:31
Simple phazor for LFOs.
Definition: LFOPhasor.h:22
void setTable(WaveTable &waveTable)
sets the Wavetable.
Definition: TableOscillator.cpp:22
Abstract class for implementing Units and Modules.
Definition: BasicNodes.h:82
Converts pitch values to frequency values.
Definition: PitchToFreq.h:19
Wavetable oscillator.
Definition: WaveTableOsc.h:18
Utility class for storing and loading buffers of waveforms.
Definition: WaveTable.h:15
Thread-safe value control with smoothing.
Definition: SequencerBridge.h:11
Patchable & in_table()
Sets "table" as selected input and returns this module ready to be patched. This is the index of the ...
Definition: TableOscillator.cpp:35
pdsp::WaveTable based oscillator
Definition: TableOscillator.h:23