ofxPDSP
DataOscillator.h
1 
2 // DataOscillator.h
3 // ofxPDSP
4 // Nicola Pisanti, MIT License, 2017
5 
6 #ifndef PDSP_MODULE_DATAOSCILLATOR_H_INCLUDED
7 #define PDSP_MODULE_DATAOSCILLATOR_H_INCLUDED
8 
9 #include "../../DSP/pdspCore.h"
10 
11 #include "../../DSP/oscillators/wavetable/DataOsc.h"
12 #include "../../DSP/oscillators/phasors/LFOPhasor.h"
13 #include "../../DSP/utility/PitchToFreq.h"
14 
15 namespace pdsp{
16 
21 class DataOscillator : public Patchable {
22 
23 public:
24 
26  DataOscillator(const DataOscillator &Other);
27  DataOscillator& operator=(const DataOscillator &Other);
28 
33  void setTable(DataTable& dataTable);
34 
39 
44 
48  float meter_pitch() const;
49 
50 private:
51  void patch();
52 
53  DataOsc wto;
54  PitchToFreq p2f;
55  LFOPhasor phasor;
56 
57 };
58 
59 } //END NAMESPACE
60 
61 
62 #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: DataOscillator.cpp:34
void setTable(DataTable &dataTable)
sets the Wavetable.
Definition: DataOscillator.cpp:21
Patchable & in_pitch()
Sets "pitch" as selected input and returns this module ready to be patched. This is the default input...
Definition: DataOscillator.cpp:30
Simple phazor for LFOs.
Definition: LFOPhasor.h:22
Data table oscillator.
Definition: DataOsc.h:19
Abstract class for implementing Units and Modules.
Definition: BasicNodes.h:82
float meter_pitch() const
meters the oscillator pitch. This method is thread-safe.
Definition: DataOscillator.cpp:25
Converts pitch values to frequency values.
Definition: PitchToFreq.h:19
DataTable based oscillator. Check out the pdsp::DataTable for more info.
Definition: DataOscillator.h:21
Thread-safe value control with smoothing.
Definition: SequencerBridge.h:11
Utility class for creating waveform from realtime data, thread safely.
Definition: DataTable.h:17