Klang C++
Language Reference (draft)
|
Abstract envelope ramp type. More...
#include <klang.h>
Public Member Functions | |
Ramp (float value=1.f) | |
Ramp (float start, float target, float time) | |
virtual | ~Ramp () |
bool | isActive () const |
virtual void | setTarget (float target) |
virtual void | setValue (float value) |
virtual void | setRate (float rate) |
virtual void | setTime (float time) |
virtual signal | operator++ (int)=0 |
void | process () override |
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 | |
float | target |
float | rate |
bool | active = false |
signal | out |
|
inline |
|
inline |
Definition at line 2629 of file klang.h.
References setTarget(), setTime(), and setValue().
|
inlinevirtual |
|
inline |
Definition at line 2638 of file klang.h.
References active.
Referenced by klang::Envelope::operator++().
|
inlineoverridevirtualinherited |
|
inlineoverridevirtualinherited |
Reimplemented from klang::Generic::Output< signal >.
Definition at line 1415 of file klang.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
pure virtual |
Implemented in klang::Envelope::Linear.
Referenced by klang::Envelope::operator++().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
|
inlineoverridevirtual |
Implements klang::Generic::Output< signal >.
Definition at line 2664 of file klang.h.
|
inlinevirtual |
Definition at line 2656 of file klang.h.
References rate.
Referenced by klang::Envelope::setTargetRate(), and klang::Envelope::setTargetTime().
|
inlinevirtual |
Definition at line 2643 of file klang.h.
References active, and target.
Referenced by Ramp(), klang::Envelope::setTargetRate(), and klang::Envelope::setTargetTime().
|
inlinevirtual |
|
inlinevirtual |
Definition at line 2649 of file klang.h.
References active, and target.
Referenced by Ramp(), Ramp(), klang::Envelope::initialise(), klang::Envelope::operator++(), and klang::Envelope::setTargetRate().
bool klang::Envelope::Ramp::active = false |
Definition at line 2620 of file klang.h.
Referenced by isActive(), klang::Envelope::Linear::operator++(), setTarget(), and setValue().
|
inherited |
float klang::Envelope::Ramp::rate |
Definition at line 2619 of file klang.h.
Referenced by klang::Envelope::Linear::operator++(), setRate(), and setTime().
float klang::Envelope::Ramp::target |
Definition at line 2618 of file klang.h.
Referenced by klang::Envelope::Linear::operator++(), setTarget(), and setValue().