Gamma  0.9.5
Generic Synthesis Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Chirp< T > Struct Template Reference

Sine wave with frequency and amplitude driven by an exponentially decaying envelope. More...

#include <Effects.h>

List of all members.

Public Member Functions

 Chirp (T freq1=220, T freq2=0, T decay=0.2)
operator() ()
 Generate next sample.
void reset ()
 Reset envelope.

Public Attributes

Sine< T > osc
 Sine oscillator.
Decay< T > env
 Envelope.
freq1
 Start frequency.
freq2
 End frequency.

Detailed Description

template<class T = gam::real>
struct gam::Chirp< T >

Sine wave with frequency and amplitude driven by an exponentially decaying envelope.


Constructor & Destructor Documentation

Chirp ( freq1 = 220,
freq2 = 0,
decay = 0.2 
)
Parameters:
[in]freq1start frequency
[in]freq2end frequency
[in]decay60units to decay by 60 dB

The documentation for this struct was generated from the following file: