|
libpsynth 0.2.1
|
Simplistic evenlope implementation with only two points. More...
#include <simple_envelope.hpp>


Public Types | |
| typedef Range | range |
| typedef range::value_type | value_type |
| typedef sound::sample_type < range >::type | sample_type |
Public Member Functions | |
| simple_envelope () | |
| simple_envelope (float rise_dt, float fall_dt) | |
| void | set_deltas (float rise_dt, float fall_dt) |
| void | set (sample_type value) |
| value_type | update () |
| Updates the envelope for one sample. | |
| value_type | update (std::size_t sample) |
| Updates the envelope for several samples. | |
| void | update (const range &samples) |
| Fills a buffer with samples from the envelope. | |
| template<class Range2 > | |
| void | update (const Range2 &samples) |
| void | press () |
| Start the envelope effect. | |
| void | release () |
| Start finishing the envelope. | |
| bool | finished () |
| Returns wether the envelope has finished. | |
Simplistic evenlope implementation with only two points.
| typedef Range psynth::synth::simple_envelope< Range >::range |
Reimplemented from psynth::synth::envelope< Range >.
| typedef sound::sample_type<range>::type psynth::synth::simple_envelope< Range >::sample_type |
| typedef range::value_type psynth::synth::simple_envelope< Range >::value_type |
Reimplemented from psynth::synth::envelope< Range >.
| psynth::synth::simple_envelope< Range >::simple_envelope | ( | ) | [inline] |
| psynth::synth::simple_envelope< Range >::simple_envelope | ( | float | rise_dt, |
| float | fall_dt | ||
| ) | [inline] |
| bool psynth::synth::simple_envelope< Range >::finished | ( | ) | [inline, virtual] |
Returns wether the envelope has finished.
true if the envelope has finished and false otherwise. Implements psynth::synth::envelope< Range >.
| void psynth::synth::simple_envelope< Range >::press | ( | ) | [inline, virtual] |
Start the envelope effect.
Implements psynth::synth::envelope< Range >.
| void psynth::synth::simple_envelope< Range >::release | ( | ) | [inline, virtual] |
Start finishing the envelope.
Implements psynth::synth::envelope< Range >.
| void psynth::synth::simple_envelope< Range >::set | ( | sample_type | value | ) | [inline] |
| void psynth::synth::simple_envelope< Range >::set_deltas | ( | float | rise_dt, |
| float | fall_dt | ||
| ) | [inline] |
| void psynth::synth::simple_envelope< Range >::update | ( | const range & | samples | ) | [inline, virtual] |
Fills a buffer with samples from the envelope.
| samples | The buffer to fill. |
| n_samples | The number of samples to fill. |
Implements psynth::synth::envelope< Range >.
| value_type psynth::synth::simple_envelope< Range >::update | ( | std::size_t | samples | ) | [inline, virtual] |
Updates the envelope for several samples.
| samples | the number of samples to advance. |
Implements psynth::synth::envelope< Range >.
| value_type psynth::synth::simple_envelope< Range >::update | ( | ) | [inline, virtual] |
Updates the envelope for one sample.
Implements psynth::synth::envelope< Range >.
| void psynth::synth::simple_envelope< Range >::update | ( | const Range2 & | samples | ) | [inline] |
1.7.4