libpsynth 0.2.1
Public Types | Public Member Functions | Friends
psynth::synth::envelope_values< Sample > Class Template Reference

#include <multi_point_envelope.hpp>

List of all members.

Public Types

typedef envelope_point< Sample > point

Public Member Functions

 envelope_values ()
void set_asr (point a, point s, point r)
void set_adsr (point a, point d, point s, point r)
void set_factor (float factor)
float factor () const
void set_sustain (std::size_t sustain)
void set (const std::vector< point > &p, std::size_t sustain)
pointget (std::size_t index)
const pointget (std::size_t index) const
pointoperator[] (int index)
const pointoperator[] (int index) const
std::size_t size () const
void resize (std::size_t size)

Friends

class multi_point_envelope

Detailed Description

template<class Sample>
class psynth::synth::envelope_values< Sample >

Todo:
Maybe it is coller to have envelope_values to store certain Frames and not Samples as points for multi-channel envelopes.

However for convenience this should be better done when there is better arithmetic support for Frames.


Member Typedef Documentation

template<class Sample>
typedef envelope_point<Sample> psynth::synth::envelope_values< Sample >::point

Constructor & Destructor Documentation

template<class Sample>
psynth::synth::envelope_values< Sample >::envelope_values ( ) [inline]

Member Function Documentation

template<class Sample>
float psynth::synth::envelope_values< Sample >::factor ( ) const [inline]
template<class Sample>
const point& psynth::synth::envelope_values< Sample >::get ( std::size_t  index) const [inline]
template<class Sample>
point& psynth::synth::envelope_values< Sample >::get ( std::size_t  index) [inline]
template<class Sample>
point& psynth::synth::envelope_values< Sample >::operator[] ( int  index) [inline]
template<class Sample>
const point& psynth::synth::envelope_values< Sample >::operator[] ( int  index) const [inline]
template<class Sample>
void psynth::synth::envelope_values< Sample >::resize ( std::size_t  size) [inline]
template<class Sample>
void psynth::synth::envelope_values< Sample >::set ( const std::vector< point > &  p,
std::size_t  sustain 
) [inline]
template<class Sample>
void psynth::synth::envelope_values< Sample >::set_adsr ( point  a,
point  d,
point  s,
point  r 
)
template<class Sample>
void psynth::synth::envelope_values< Sample >::set_asr ( point  a,
point  s,
point  r 
)
template<class Sample>
void psynth::synth::envelope_values< Sample >::set_factor ( float  factor) [inline]
template<class Sample>
void psynth::synth::envelope_values< Sample >::set_sustain ( std::size_t  sustain) [inline]
template<class Sample>
std::size_t psynth::synth::envelope_values< Sample >::size ( ) const [inline]

Friends And Related Function Documentation

template<class Sample>
friend class multi_point_envelope [friend]

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