ofxPDSP
FMOperator.h
1 
2 // FMOperator.h
3 // ofxPDSP
4 // Nicola Pisanti, MIT License, 2016
5 
6 #ifndef PDSP_MODULE_FMOPERATOR_H_INCLUDED
7 #define PDSP_MODULE_FMOPERATOR_H_INCLUDED
8 
9 #include "../../DSP/pdspCore.h"
10 
11 #include "../../DSP/oscillators/fm/SineFB.h"
12 #include "../../DSP/oscillators/phasors/PMPhasor.h"
13 #include "../../DSP/utility/PitchToFreq.h"
14 
15 
16 
17 namespace pdsp{
18 
23 class FMOperator : public Patchable {
24 
25 public:
26 
27  FMOperator();
28  FMOperator(const FMOperator &Other);
29  FMOperator& operator=(const FMOperator &Other);
30 
31 
35  Patchable& in_fm();
36 
41 
46 
50  Patchable& in_fb();
51 
55  Patchable& in_sync();
56 
61 
65  Patchable& out_sync();
66 
70  float meter_pitch() const;
71 
72 private:
73  void patch();
74 
75  SineFB sine;
76  PitchToFreq p2f;
77  Amp ratioMult;
78  PMPhasor phasor;
79 
80 };
81 
82 } //END NAMESPACE
83 
84 
85 #endif // PDSP_MODULE_FMOPERATOR_H_INCLUDED
Patchable & in_sync()
Sets "sync" as selected input and returns this module ready to be patched. This is the operator oscil...
Definition: FMOperator.cpp:59
FM operator based on a wavetable sine.
Definition: FMOperator.h:23
Patchable & in_fb()
Sets "fb" as selected input and returns this module ready to be patched. This is the operator FM-feed...
Definition: FMOperator.cpp:39
Patchable & in_fm()
Sets "fm" as selected input and returns this module ready to be patched. This is the default input...
Definition: FMOperator.cpp:47
Patchable & in_ratio()
Sets "ratio" as selected input and returns this module ready to be patched. This is the operator rati...
Definition: FMOperator.cpp:43
float meter_pitch() const
meters the oscillator pitch. This method is thread-safe.
Definition: FMOperator.cpp:30
Abstract class for implementing Units and Modules.
Definition: BasicNodes.h:82
Multiply in("signal") for in("mod").
Definition: Amp.h:23
Converts pitch values to frequency values.
Definition: PitchToFreq.h:19
Patchable & in_pitch()
Sets "pitch" as selected input and returns this module ready to be patched. This is the operator pitc...
Definition: FMOperator.cpp:35
Thread-safe value control with smoothing.
Definition: SequencerBridge.h:11
Patchable & out_signal()
Sets "signal" as selected output and returns this Unit ready to be patched. This is the default outpu...
Definition: FMOperator.cpp:51
Patchable & out_sync()
Sets "sync" as selected output and returns this Unit ready to be patched. This is the operator oscill...
Definition: FMOperator.cpp:55
Wavetable sine oscillator with self-fm.
Definition: SineFB.h:22
Fully featured phazor with phase modulation and sync inputs.
Definition: PMPhasor.h:22