ofxPDSP
pdsp::BitNoise Class Reference

Stereo Digital noise generator with lots of control. More...

#include <BitNoise.h>

Inheritance diagram for pdsp::BitNoise:
pdsp::Patchable

Public Member Functions

 BitNoise (const BitNoise &Other)
 
BitNoiseoperator= (const BitNoise &Other)
 
Patchablein_pitch ()
 Sets "pitch" as selected input and returns this module ready to be patched. This is the default input. This is the noise oscillator pitch. Default value is -100.0f (it sounds mostly non-pitched).
 
Patchablein_decimation ()
 Sets "decimation" as selected input and returns this module ready to be patched. This is pitch frequency of the sample rate decimation. Default is 151 = 50175hz (when the frequency is higher than the sample rate there is no decimation).
 
Patchablein_bits ()
 Sets "bits" as selected input and returns this module ready to be patched. The bits of the noise output, default is 12bits.
 
Patchablein_trig ()
 Sets "trig" as selected input and returns this module ready to be patched. Connect a "trig" output to this input to activate retriggering of the noise seed and cycle.
 
Patchablech (size_t index)
 Uses the selected channel as output for the patching operation. 0 is for the left channel (default output) and 1 is for the right channel. Index values outside of range are remapped to 0 or 1. More...
 
Patchablech_noise (size_t index)
 Uses the selected channel as output for the patching operation. 0 is for the left channel (default output) and 1 is for the right channel. This is the noise output before passing in the decimator and bitcruncher. Index values outside of range are remapped to 0 or 1. More...
 
- Public Member Functions inherited from pdsp::Patchable
void resetInputToDefault ()
 resets the selected input to the default.
 
void resetOutputToDefault ()
 resets the selected output to the default.
 
Patchablein (const char *tag)
 sets the selected input to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. More...
 
Patchableout (const char *tag)
 sets the selected output to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. More...
 
void disconnectIn ()
 disconnects all the outputs connected to the selected input, then resets the selected input to the default.
 
void disconnectOut ()
 disconnects all the inputs connected to the selected output, then resets the selected output to the default.
 
void disconnectAll ()
 disconnects all the inputs and outputs to their connected outputs and inputs. Also resets the selected input and output to the default.
 
InputNodegetSelectedInput ()
 returns the selected input, you can patch a Patchable or OutputNode to it with the >> operator.
 
OutputNodegetSelectedOutput ()
 returns the selected output, you can patch it to another Patchable or InputNode with the >> operator.
 
std::vector< std::string > getInputsList ()
 returns a vector of the valid input tags
 
std::vector< std::string > getOutputsList ()
 returns a vector of the valid input tags
 

Additional Inherited Members

- Protected Member Functions inherited from pdsp::Patchable
void addOutput (const char *tag, OutputNode &output)
 method to add outputs when constructing a Unit More...
 
void addInput (const char *tag, InputNode &input)
 method to add inputs when constructing a Unit More...
 
void addModuleOutput (const char *tag, Patchable &unit)
 method to add outputs when constructing a module More...
 
void addModuleInput (const char *tag, Patchable &unit)
 method to add outputs when constructing a module More...
 

Detailed Description

Stereo Digital noise generator with lots of control.

Member Function Documentation

◆ ch()

pdsp::Patchable & pdsp::BitNoise::ch ( size_t  index)

Uses the selected channel as output for the patching operation. 0 is for the left channel (default output) and 1 is for the right channel. Index values outside of range are remapped to 0 or 1.

Parameters
[in]indexchannel index

◆ ch_noise()

pdsp::Patchable & pdsp::BitNoise::ch_noise ( size_t  index)

Uses the selected channel as output for the patching operation. 0 is for the left channel (default output) and 1 is for the right channel. This is the noise output before passing in the decimator and bitcruncher. Index values outside of range are remapped to 0 or 1.

Parameters
[in]indexchannel index

The documentation for this class was generated from the following files: