ofxPDSP
Processor.h
1 
2 // Processor.h
3 // ofxPDSP
4 // Nicola Pisanti, MIT License, 2016
5 
6 #ifndef PDSP_CORE_PROCESSOR_H_INCLUDED
7 #define PDSP_CORE_PROCESSOR_H_INCLUDED
8 
9 #include "BasicNodes.h"
10 #include "PatchNode.h"
11 #include <vector>
12 
13 namespace pdsp{
14 
21 class Processor {
22 public:
23 
24  Processor( int channels );
25  Processor();
26 
32  void process(const int &bufferSize) noexcept;
33 
40  void processAndCopyOutput(float** bufferToFill, const int &channelsNum, const int &bufferSize) noexcept;
41 
48  void processAndCopyInterleaved(float* bufferToFill, const int &channelsNum, const int &bufferSize) noexcept;
49 
53  std::vector<PatchNode> channels;
54 
59  void resize( int channelsNum );
60 
65 };
66 
67 
68 }
69 
70 
71 
72 #endif // PROCESSOR_H_INCLUDED
void processAndCopyInterleaved(float *bufferToFill, const int &channelsNum, const int &bufferSize) noexcept
process all the DSP recursively and copies the result to an array of interleaved values ...
Definition: Processor.cpp:58
std::vector< PatchNode > channels
an array of channels. Patch your Units and modules to this channels thinking to them as your system f...
Definition: Processor.h:53
void processAndCopyOutput(float **bufferToFill, const int &channelsNum, const int &bufferSize) noexcept
process all the DSP recursively and copies them to an array of pointer to arrays (channels) ...
Definition: Processor.cpp:30
PatchNode blackhole
all the connectio patched to this will be processed but not outputted. Patch your Units and modules t...
Definition: Processor.h:64
void process(const int &bufferSize) noexcept
simply process the channes without copying them, useful if you want just to split the processing in m...
Definition: Processor.cpp:14
Thread-safe value control with smoothing.
Definition: SequencerBridge.h:11
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
void resize(int channelsNum)
change the number of output channels;
Definition: Processor.cpp:23
The bridge between pdsp and the audio callback.
Definition: Processor.h:21