|
|
| AbstractField (Engine &engine) |
| virtual float | at (float proportion)=0 |
| | Returns value at given proportion in [0, 1].
|
| template<typename T> |
| void | populate (T *array, size_t size, bool wrap=false) |
| | Fills an array with values from this field.
|
|
virtual void | clearEvents () |
|
float | seconds () const |
| | Returns engine time in seconds.
|
|
uint32_t | milliSeconds () const |
| | Returns engine time in milliseconds.
|
|
uint64_t | microSeconds () const |
| | Returns engine time in microseconds.
|
|
unsigned long | nSteps () const |
| | Returns number of engine steps.
|
|
float | sampleRate () const |
| | Returns engine sample rate.
|
|
float | samplePeriod () const |
| | Returns enginesample period.
|
| virtual float | get () |
| | Returns value (typically between 0 and 1, may vary depending on class).
|
|
| operator float () |
| | Object can be used directly to access its value.
|
| virtual float | mapTo (float toLow, float toHigh) |
| | Maps value to new range.
|
| virtual float | put (float value) |
| | Pushes value into the unit.
|
|
| operator bool () |
| | Operator that allows usage in conditional expressions.
|
|
|
static bool | analogToDigital (float f) |
| | Converts analog (float) value to digital (bool) value.
|
|
static float | digitalToAnalog (bool b) |
| | Converts digital (bool) value to analog (float) value.
|
|
| virtual void | begin () |
|
virtual void | step () |
| virtual bool | eventTriggered (EventType eventType) |
| | Returns true iff an event of a certain type has been triggered.
|
|
virtual void | onEvent (EventCallback callback, EventType eventType) |
| | Registers event callback.
|
|
Engine * | engine () const |
| | Returns the engine that owns this unit.
|
◆ at()
| virtual float pq::AbstractField::at |
( |
float | proportion | ) |
|
|
pure virtual |
◆ begin()
| virtual void pq::Unit::begin |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ eventTriggered()
| virtual bool pq::Unit::eventTriggered |
( |
EventType | eventType | ) |
|
|
inlineprotectedvirtualinherited |
◆ get()
| virtual float pq::Flowable::get |
( |
| ) |
|
|
inlinevirtualinherited |
Returns value (typically between 0 and 1, may vary depending on class).
Reimplemented in pq::AbstractWave, pq::AnalogIn, pq::AnalogSource, pq::Chronometer, pq::DigitalUnit, pq::Monitor, pq::ParameterSlot< Obj >, pq::ParameterSlot< AbstractOscillator >, pq::ParameterSlot< AbstractTimer >, pq::ParameterSlot< AbstractWave >, pq::ParameterSlot< Ramp >, pq::PivotField, pq::Plotter, pq::Ramp, pq::RobustScaler, pq::TimeSliceField< COUNT >, pq::Value< T, Codec >, pq::Value< bool >, pq::Value< float >, and pq::Value< int >.
◆ mapTo()
| virtual float pq::Flowable::mapTo |
( |
float | toLow, |
|
|
float | toHigh ) |
|
inlinevirtualinherited |
◆ populate()
template<typename T>
| void pq::AbstractField::populate |
( |
T * | array, |
|
|
size_t | size, |
|
|
bool | wrap = false ) |
|
inline |
Fills an array with values from this field.
- Parameters
-
| array | the array to read into |
| size | the size of the array |
| wrap | if true, the array is considered to be a circular buffer that wraps around |
◆ put()
| virtual float pq::Flowable::put |
( |
float | value | ) |
|
|
inlinevirtualinherited |
Pushes value into the unit.
- Parameters
-
| value | the value sent to the unit |
- Returns
- the new value of the unit
Reimplemented in pq::AbstractServoOut, pq::AnalogOut, pq::Chronometer, pq::DigitalUnit, pq::MinMaxScaler, pq::Monitor, pq::Normalizer, pq::ParameterSlot< Obj >, pq::ParameterSlot< AbstractOscillator >, pq::ParameterSlot< AbstractTimer >, pq::ParameterSlot< AbstractWave >, pq::ParameterSlot< Ramp >, pq::PeakDetector, pq::PivotField, pq::Plotter, pq::Ramp, pq::RobustScaler, pq::Smoother, pq::StreamOut, pq::TimeSliceField< COUNT >, pq::Value< T, Codec >, pq::Value< bool >, pq::Value< float >, and pq::Value< int >.
The documentation for this class was generated from the following file: