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

syn::SquareOsc Class Reference

non bandlimited square generator. More...

#include <Generator.h>

List of all members.

Public Methods

 SquareOsc ()
float generate ()
 generate wave data... 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). More...

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

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


Detailed Description

non bandlimited square generator.

Todo:
: make this work

Definition at line 210 of file Generator.h.


Constructor & Destructor Documentation

syn::SquareOsc::SquareOsc ( ) [inline]
 

Definition at line 213 of file Generator.h.


Member Function Documentation

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

generate wave data...

Definition at line 220 of file Generator.h.

unsigned int syn::SquareOsc::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.

Definition at line 232 of file Generator.h.

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

set the osc frequency in hz (cycles per sec).

Definition at line 242 of file Generator.h.

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

set the sampling rate of the generated wave.

samples per sec.

Definition at line 254 of file Generator.h.

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

reset the waveform phase at 0.

Definition at line 265 of file Generator.h.

Referenced by SquareOsc().


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