libpsynth 0.2.1
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions
psynth::graph::node_noise Class Reference

#include <node_noise.hpp>

Inheritance diagram for psynth::graph::node_noise:
Inheritance graph
[legend]
Collaboration diagram for psynth::graph::node_noise:
Collaboration graph
[legend]

List of all members.

Public Types

enum  in_audio_socket_id { N_IN_A_SOCKETS }
enum  in_control_socket_id { IN_C_AMPLITUDE, IN_C_TRIGGER, N_IN_C_SOCKETS }
enum  type { NOISE_WHITE, NOISE_PINK, N_TYPES }
enum  param_id { PARAM_TYPE = node::N_COMMON_PARAMS, PARAM_AMPLITUDE, N_PARAM }

Public Member Functions

 node_noise (const audio_info &prop, int obj_type, const std::string &name, int n_audio_out, int n_control_out)
 ~node_noise ()

Static Public Attributes

static constexpr float DEFAULT_AMPL = 0.3f

Protected Member Functions

sample update_pink ()
sample update_white ()
void update_noise (sample *buf)

Member Enumeration Documentation

Enumerator:
N_IN_A_SOCKETS 
Enumerator:
IN_C_AMPLITUDE 
IN_C_TRIGGER 
N_IN_C_SOCKETS 
Enumerator:
PARAM_TYPE 
PARAM_AMPLITUDE 
N_PARAM 
Enumerator:
NOISE_WHITE 
NOISE_PINK 
N_TYPES 

Constructor & Destructor Documentation

psynth::graph::node_noise::node_noise ( const audio_info &  prop,
int  obj_type,
const std::string &  name,
int  n_audio_out,
int  n_control_out 
)
psynth::graph::node_noise::~node_noise ( )

Member Function Documentation

void psynth::graph::node_noise::update_noise ( sample *  buf) [protected]
sample psynth::graph::node_noise::update_pink ( ) [protected]
sample psynth::graph::node_noise::update_white ( ) [protected]

Member Data Documentation

constexpr float psynth::graph::node_noise::DEFAULT_AMPL = 0.3f [static]

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