src/cshellsynth/noise.h File Reference

#include <jack/jack.h>
#include <cshellsynth/jclient.h>
#include <cshellsynth/atomic-types.h>

Go to the source code of this file.

Data Structures

struct  cs_noise_t

Defines

#define cs_noise_destroy(cs_noise)   jclient_destroy((jclient_t *) (cs_noise))
#define CS_WHITE   1
#define CS_PINK   2
#define CS_RED   3

Functions

int cs_noise_init (cs_noise_t *self, const char *client_name, jack_options_t flags, char *server_name)
void cs_noise_set_kind (cs_noise_t *self, int kind)
void cs_noise_set_offset (cs_noise_t *self, float offset)
void cs_noise_set_amp (cs_noise_t *self, float amp)

Detailed Description

Noise Generator

Ruby version: Synths::Noise


Define Documentation

#define cs_noise_destroy ( cs_noise   )     jclient_destroy((jclient_t *) (cs_noise))

Destroy noise generator


Function Documentation

int cs_noise_init ( cs_noise_t self,
const char *  client_name,
jack_options_t  flags,
char *  server_name 
)

Initialize noise generator

void cs_noise_set_amp ( cs_noise_t self,
float  amp 
)
void cs_noise_set_kind ( cs_noise_t self,
int  kind 
)

Set which kind of noise to generate.

Ruby version: kind=

Ruby version of values is Synths::Noise::White, Synths::Noise::Pink, and Synths::Noise::Red

Parameters:
kind CS_WHITE, CS_PINK, or CS_RED. Red is currently unsupported.
void cs_noise_set_offset ( cs_noise_t self,
float  offset 
)
 All Data Structures Files Functions Variables Typedefs Enumerations Defines
Generated on Thu Sep 2 23:47:09 2010 for cshellsynth by  doxygen 1.6.3