ofxPDSP
HighCut.h
1 
2 // HighCut.h
3 // ofxPDSP
4 // Nicola Pisanti, MIT License, 2016-2018
5 
6 #ifndef PDSP_MODULE_HIGHCUT_H_INCLUDED
7 #define PDSP_MODULE_HIGHCUT_H_INCLUDED
8 
9 #include "../../DSP/pdspCore.h"
10 #include "../../DSP/filters/OnePole.h"
11 
12 
13 namespace pdsp{
14 
19 class HighCut : public Patchable {
20 
21 
25 class Submodule : public Patchable{
26 public:
27  Submodule();
28 private:
29  PatchNode freq;
30  OnePole lpA;
31  OnePole lpB;
32 };
39 public:
40  HighCut(){ patch(); };
41  HighCut(const HighCut& other){ patch(); };
42  HighCut& operator=(const HighCut& other){ return *this; };
43  ~HighCut(){ channels(0); };
44 
49 
54 
58  Patchable& in_freq();
59 
64  void channels( size_t size );
65 
70  Patchable& ch( size_t index );
71 
75  [[deprecated("operator[] deprecated, use the ch( int index ) method instead")]]
76  Patchable& operator[]( size_t index );
77 
78  [[deprecated("in_0() deprecated, use the ch( int index ) method instead")]]
79  Patchable& in_0();
80 
81  [[deprecated("in_1() deprecated, use the ch( int index ) method instead")]]
82  Patchable& in_1();
83 
84  [[deprecated("out_0() deprecated, use the ch( int index ) method instead")]]
85  Patchable& out_0();
86 
87  [[deprecated("out_1() deprecated, use the ch( int index ) method instead")]]
88  Patchable& out_1();
95 private:
96  void patch ();
97 
98  PatchNode freq;
99 
100  std::vector<Submodule*> submodules;
101 
102 };
103 
104 } // pdsp namespace end
105 
106 
107 #endif // PDSP_MODULE_HIGHCUT_H_INCLUDED
Patchable & ch(size_t index)
Uses the selected channel as input/output for the patching operation.
Definition: HighCut.cpp:46
Patchable & in_freq()
Sets "freq" as selected input and returns this module ready to be patched. This is the frequency at w...
Definition: HighCut.cpp:57
Abstract class for implementing Units and Modules.
Definition: BasicNodes.h:82
Patchable & in_signal()
Sets "signal" as selected input and returns this module ready to be patched. This is the default inpu...
Definition: HighCut.cpp:53
Patchable & out_signal()
Sets "signal" as selected output and returns this module ready to be patched. This is the default out...
Definition: HighCut.cpp:61
Thread-safe value control with smoothing.
Definition: SequencerBridge.h:11
void channels(size_t size)
Allocate a number of channels for processing different inputs. This is automatically called if you qu...
Definition: HighCut.cpp:27
A Unit with no dsp inside, it just pass it&#39;s input to the output. Patching float to this Unit is thre...
Definition: PatchNode.h:41
12 dB High Cut (aka Low-Pass filter). Non-resonant. Multichannel.
Definition: HighCut.h:19
1 pole high/low pass filter
Definition: OnePole.h:18