![]() |
Klang C++
Language Reference (draft)
|
#include <klang.h>
Inheritance diagram for klang::Envelope:Classes | |
| struct | Follower |
| Envelope follower (Peak / RMS) More... | |
| struct | Linear |
| Linear envelope ramp (default) More... | |
| struct | Loop |
| Envelope loop. More... | |
| struct | Point |
| Envelope point (x,y) More... | |
| struct | Ramp |
| Abstract envelope ramp type. More... | |
Public Types | |
| enum | Stage { Sustain , Release , Off } |
| Envelope stage. More... | |
| enum | Mode { Time , Rate } |
| Envelope mode. More... | |
Public Member Functions | |
| Envelope () | |
| Envelope (const Points &points) | |
| Envelope (std::initializer_list< Point > points) | |
| Envelope (const Envelope &in) | |
| virtual | ~Envelope () |
| bool | operator== (Stage stage) const |
| bool | operator!= (Stage stage) const |
| operator float () const | |
| Envelope & | operator= (std::initializer_list< Point > points) |
| void | set (const std::vector< Point > &points) |
| void | set (const Points &point) |
| void | sequence () |
| void | setLoop (int startPoint, int endPoint) |
| signal | at (param time) const |
| void | resetLoop () |
| void | setStage (Stage stage) |
| const Stage | getStage () const |
| float | getLength () const |
| virtual void | release (float time, float level=0.f) |
| bool | finished () const |
| void | initialise () |
| void | resize (float length) |
| void | setTarget (const Point &point, float time=0.0) |
| signal & | operator++ (int) |
| void | process () override |
| const Point & | operator[] (int point) const |
| void | set (Ramp *ramp) |
| void | setMode (Mode mode) |
| Mode | mode () const |
| Output< signal > & | operator() (params... p) |
| operator const signal & () override | |
| operator const signal & () const override | |
| virtual const signal & | output () const |
| TYPE & | operator>> (TYPE &destination) |
| signal | operator+ (TYPE &other) |
| signal | operator* (TYPE &other) |
| signal | operator- (TYPE &other) |
| signal | operator/ (TYPE &other) |
Public Attributes | |
| signal | out |
Protected Attributes | |
| void(Envelope::* | setTargetFunction )(const Point &point, float time) = &Envelope::setTargetTime |
| std::vector< Point > | points |
| Loop | loop |
| int | point |
| float | time |
| float | timeInc |
| Stage | stage |
| std::shared_ptr< Ramp > | ramp |
|
inline |
|
inline |
|
inlinevirtual |
Definition at line 2815 of file klang.h.
References klang::Envelope::Point::Point(), klang::signal::operator-(), points, klang::Envelope::Point::x, and klang::Envelope::Point::y.
|
inline |
|
inline |
|
inline |
Definition at line 2841 of file klang.h.
References stage.
Referenced by finished(), and klang::ADSR::operator==().
|
inline |
Definition at line 2860 of file klang.h.
References loop, point, points, ramp, klang::Envelope::Loop::reset(), setTarget(), klang::Envelope::Ramp::setValue(), stage, Sustain, timeInc, klang::Envelope::Point::x, and klang::Envelope::Point::y.
Referenced by resize(), sequence(), klang::ADSR::set(), set(), set(), and set().
|
inline |
Definition at line 2955 of file klang.h.
References Rate, setTargetFunction, setTargetTime(), and Time.
Referenced by operator++().
|
inlineoverridevirtualinherited |
|
inlineoverridevirtualinherited |
Reimplemented from klang::Generic::Output< signal >.
Definition at line 1415 of file klang.h.
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 2898 of file klang.h.
References klang::Envelope::Loop::end, klang::Envelope::Loop::isActive(), klang::Envelope::Ramp::isActive(), loop, mode(), Off, klang::Envelope::Ramp::operator++(), point, points, ramp, Rate, Release, setTarget(), klang::Envelope::Ramp::setValue(), stage, klang::Envelope::Loop::start, Sustain, time, timeInc, klang::Envelope::Point::x, and klang::Envelope::Point::y.
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inline |
|
inlinevirtualinherited |
|
inlineoverridevirtual |
|
inlinevirtual |
Reimplemented in klang::ADSR.
Definition at line 2847 of file klang.h.
References klang::Envelope::Point::Point(), Release, setTarget(), and stage.
Referenced by klang::ADSR::release().
|
inline |
Definition at line 2831 of file klang.h.
References loop, point, points, klang::Envelope::Loop::reset(), setTarget(), stage, Sustain, and klang::Envelope::Point::x.
|
inline |
Definition at line 2877 of file klang.h.
References getLength(), initialise(), points, and klang::Envelope::Point::x.
|
inline |
Definition at line 2798 of file klang.h.
References initialise(), points, and klang::Envelope::Point::x.
|
inline |
Definition at line 2785 of file klang.h.
References initialise(), and points.
Referenced by Envelope(), and Envelope().
|
inline |
Definition at line 2779 of file klang.h.
References initialise(), and points.
Referenced by Envelope(), Envelope(), and operator=().
|
inline |
Definition at line 2943 of file klang.h.
References initialise(), and ramp.
|
inline |
Definition at line 2809 of file klang.h.
References loop, points, and klang::Envelope::Loop::set().
Referenced by klang::ADSR::set().
|
inline |
Definition at line 2948 of file klang.h.
References setTargetFunction, setTargetRate(), setTargetTime(), and Time.
|
inline |
|
inline |
Definition at line 2893 of file klang.h.
References setTargetFunction.
Referenced by initialise(), operator++(), release(), and resetLoop().
|
inlineprotected |
Definition at line 2967 of file klang.h.
References ramp, klang::Envelope::Ramp::setRate(), klang::Envelope::Ramp::setTarget(), klang::Envelope::Ramp::setValue(), time, klang::Envelope::Point::x, and klang::Envelope::Point::y.
Referenced by setMode().
|
inlineprotected |
Definition at line 2961 of file klang.h.
References klang::Generic::operator/(), ramp, klang::Envelope::Ramp::setRate(), klang::Envelope::Ramp::setTarget(), time, klang::Envelope::Point::x, and klang::Envelope::Point::y.
|
protected |
Definition at line 2978 of file klang.h.
Referenced by initialise(), operator++(), resetLoop(), and setLoop().
|
inherited |
|
protected |
Definition at line 2980 of file klang.h.
Referenced by initialise(), operator++(), and resetLoop().
|
protected |
Definition at line 2977 of file klang.h.
Referenced by Envelope(), at(), getLength(), initialise(), operator++(), operator[](), resetLoop(), resize(), sequence(), klang::ADSR::set(), set(), set(), and setLoop().
|
protected |
Definition at line 2984 of file klang.h.
Referenced by Envelope(), Envelope(), Envelope(), Envelope(), initialise(), operator++(), process(), set(), setTargetRate(), and setTargetTime().
|
protected |
Definition at line 2959 of file klang.h.
Referenced by mode(), setMode(), and setTarget().
|
protected |
Definition at line 2982 of file klang.h.
Referenced by getStage(), initialise(), operator!=(), operator++(), operator==(), release(), resetLoop(), and setStage().
|
protected |
Definition at line 2981 of file klang.h.
Referenced by operator++(), setTargetRate(), and setTargetTime().
|
protected |
Definition at line 2981 of file klang.h.
Referenced by initialise(), and operator++().