FastLED 3.9.15
|
Definition at line 44 of file wave_simulation.h.
#include <wave_simulation.h>
Public Member Functions | |
WaveSimulation1D (uint32_t length, SuperSample factor=SuperSample::SUPER_SAMPLE_NONE, float speed=0.16f, int dampening=6) | |
~WaveSimulation1D ()=default | |
int | getDampenening () const |
float | getf (size_t x) const |
int16_t | geti16 (size_t x) const |
bool | geti16All (size_t x, int16_t *curr, int16_t *prev, int16_t *diff) const |
int16_t | geti16Previous (size_t x) const |
int8_t | geti8 (size_t x) const |
uint32_t | getLength () const |
float | getSpeed () const |
uint8_t | getu8 (size_t x) const |
bool | has (size_t x) const |
void | init (uint32_t length, SuperSample factor, float speed, int dampening) |
WaveSimulation1D_Real & | real () |
void | setDampening (int damp) |
void | setEasingMode (U8EasingFunction mode) |
void | setExtraFrames (uint8_t extra) |
void | setf (size_t x, float value) |
void | setHalfDuplex (bool on) |
void | setSpeed (float speed) |
void | setSuperSample (SuperSample factor) |
void | update () |
Private Attributes | |
uint8_t | extraFrames = 0 |
U8EasingFunction | mU8Mode = WAVE_U8_MODE_LINEAR |
uint32_t | multiplier |
uint32_t | outerLength |
fl::scoped_ptr< WaveSimulation1D_Real > | sim |