Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

syn::PinkNoiseOsc Class Reference

white noise generator. More...

#include <Generator.h>

List of all members.

Public Methods

 PinkNoiseOsc ()
float generate ()
 generate wave data... More...

void reset ()
 reset the waveform phase at 0. More...

unsigned int samplesPerOsc ()
 get the number of samples for a single oscillation. More...

void setFreq (float freqHz)
 set the osc frequency in hz (cycles per sec) NOTE: unused in all noise functions... More...

void setSampRate (float samplingRateHz)
 set the sampling rate of the generated wave. More...


Detailed Description

white noise generator.

Definition at line 356 of file Generator.h.


Constructor & Destructor Documentation

syn::PinkNoiseOsc::PinkNoiseOsc ( ) [inline]
 

Definition at line 359 of file Generator.h.


Member Function Documentation

float syn::PinkNoiseOsc::generate ( ) [inline]
 

generate wave data...

Definition at line 368 of file Generator.h.

void syn::PinkNoiseOsc::reset ( ) [inline]
 

reset the waveform phase at 0.

Definition at line 407 of file Generator.h.

Referenced by PinkNoiseOsc().

unsigned int syn::PinkNoiseOsc::samplesPerOsc ( ) [inline]
 

get the number of samples for a single oscillation.

this tells you how many samples before the osc repeats. useful for filling a wavetable so that it can repeat without pops. NOTE: for noise, this number is arbitrarilly chosen.

Definition at line 418 of file Generator.h.

void syn::PinkNoiseOsc::setFreq ( float freqHz ) [inline]
 

set the osc frequency in hz (cycles per sec) NOTE: unused in all noise functions...

Definition at line 427 of file Generator.h.

void syn::PinkNoiseOsc::setSampRate ( float samplingRateHz ) [inline]
 

set the sampling rate of the generated wave.

samples per sec. NOTE: unused in all noise functions...

Definition at line 433 of file Generator.h.


The documentation for this class was generated from the following file:
Generated at Mon Apr 15 09:28:04 2002 for subsynth by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001