|
libpsynth 0.2.1
|
Basic envelope interface. More...
#include <envelope.hpp>

Public Types | |
| typedef Range | range |
| typedef Range::value_type | value_type |
Public Member Functions | |
| virtual value_type | update ()=0 |
| Updates the envelope for one sample. | |
| virtual value_type | update (std::size_t samples)=0 |
| Updates the envelope for several samples. | |
| virtual void | update (const range &samples)=0 |
| Fills a buffer with samples from the envelope. | |
| virtual void | press ()=0 |
| Start the envelope effect. | |
| virtual void | release ()=0 |
| Start finishing the envelope. | |
| virtual bool | finished ()=0 |
| Returns wether the envelope has finished. | |
Basic envelope interface.
| typedef Range psynth::synth::envelope< Range >::range |
| typedef Range::value_type psynth::synth::envelope< Range >::value_type |
| virtual bool psynth::synth::envelope< Range >::finished | ( | ) | [pure virtual] |
Returns wether the envelope has finished.
true if the envelope has finished and false otherwise. Implemented in psynth::synth::multi_point_envelope< Range, ValuesPtr >, psynth::synth::simple_envelope< Range >, psynth::synth::multi_point_envelope< sample_range >, and psynth::synth::simple_envelope< sample_range >.
| virtual void psynth::synth::envelope< Range >::press | ( | ) | [pure virtual] |
Start the envelope effect.
Implemented in psynth::synth::multi_point_envelope< Range, ValuesPtr >, psynth::synth::simple_envelope< Range >, psynth::synth::multi_point_envelope< sample_range >, and psynth::synth::simple_envelope< sample_range >.
| virtual void psynth::synth::envelope< Range >::release | ( | ) | [pure virtual] |
Start finishing the envelope.
Implemented in psynth::synth::multi_point_envelope< Range, ValuesPtr >, psynth::synth::simple_envelope< Range >, psynth::synth::multi_point_envelope< sample_range >, and psynth::synth::simple_envelope< sample_range >.
| virtual value_type psynth::synth::envelope< Range >::update | ( | std::size_t | samples | ) | [pure virtual] |
Updates the envelope for several samples.
| samples | the number of samples to advance. |
Implemented in psynth::synth::multi_point_envelope< Range, ValuesPtr >, psynth::synth::simple_envelope< Range >, psynth::synth::multi_point_envelope< sample_range >, and psynth::synth::simple_envelope< sample_range >.
| virtual void psynth::synth::envelope< Range >::update | ( | const range & | samples | ) | [pure virtual] |
Fills a buffer with samples from the envelope.
| samples | The buffer to fill. |
| n_samples | The number of samples to fill. |
Implemented in psynth::synth::multi_point_envelope< Range, ValuesPtr >, psynth::synth::simple_envelope< Range >, psynth::synth::multi_point_envelope< sample_range >, and psynth::synth::simple_envelope< sample_range >.
| virtual value_type psynth::synth::envelope< Range >::update | ( | ) | [pure virtual] |
Updates the envelope for one sample.
Implemented in psynth::synth::multi_point_envelope< Range, ValuesPtr >, psynth::synth::simple_envelope< Range >, psynth::synth::multi_point_envelope< sample_range >, and psynth::synth::simple_envelope< sample_range >.
1.7.4