Gamma  0.9.5
Generic Synthesis Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Seg< Tv, Si, Tp, Ts > Class Template Reference

Interpolation envelope segment. More...

#include <Envelope.h>

Inherits Ts.

List of all members.

Public Member Functions

 Seg (Tp len=0.5, Tv start=1, Tv end=0, Tp phase=0)
bool done () const
 Returns whether envelope is done.
Tv operator() ()
 Generate next value.
void operator= (Tv v)
 Set new end value. Start value is set to current value.
template<class G >
Tv operator() (G &g)
 Generates a new end point from a generator when the segment end is reached.
void freq (Tp v)
 Set frequency of envelope.
void period (Tp v)
 Set length in domain units.
void phase (Tp v)
 Set phase along segment.
void reset ()
 Reset envelope.

Detailed Description

template<class Tv = real, template< class > class Si = iplSeq::Linear, class Tp = real, class Ts = Synced>
class gam::Seg< Tv, Si, Tp, Ts >

Interpolation envelope segment.


Constructor & Destructor Documentation

Seg ( Tp  len = 0.5,
Tv  start = 1,
Tv  end = 0,
Tp  phase = 0 
)
Parameters:
[in]lenLength of segment in domain units
[in]startStart value
[in]endEnd value
[in]phaseStart phase along segment, in [0,1)

Member Function Documentation

Tv operator() ( G &  g)

Generates a new end point from a generator when the segment end is reached.

This is useful for creating pitched noise from a random number generator.


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