|
LMMS
|
#include <analyzer.h>
Public Member Functions | |
| analyzer () | |
| void | process (float L, float R) |
| void | set_sample_rate (uint32_t sr) |
| bool | set_mode (int mode) |
| void | invalidate () |
| void | set_params (float resolution, float offset, int accuracy, int hold, int smoothing, int mode, int scale, int post, int speed, int windowing, int view, int freeze) |
| ~analyzer () | |
| bool | do_fft (int subindex, int points) const |
| void | draw (int subindex, float *data, int points, bool fftdone) const |
| bool | get_graph (int subindex, int phase, float *data, int points, cairo_iface *context, int *mode) const |
| bool | get_moving (int subindex, int &direction, float *data, int x, int y, int &offset, uint32_t &color) const |
| bool | get_gridline (int subindex, int phase, float &pos, bool &vertical, std::string &legend, cairo_iface *context) const |
| bool | get_layers (int generation, unsigned int &layers) const |
| virtual bool | get_graph (int index, int subindex, int phase, float *data, int points, cairo_iface *context, int *mode) const |
| virtual bool | get_gridline (int index, int subindex, int phase, float &pos, bool &vertical, std::string &legend, cairo_iface *context) const |
| virtual bool | get_layers (int index, int generation, unsigned int &layers) const |
| Public Member Functions inherited from calf_plugins::frequency_response_line_graph | |
| virtual float | freq_gain (int index, double freq) const |
| virtual std::string | get_crosshair_label (int x, int y, int sx, int sy, float q, int dB, int name, int note, int cents) const |
| Public Member Functions inherited from calf_plugins::line_graph_iface | |
| virtual bool | get_moving (int index, int subindex, int &direction, float *data, int x, int y, int &offset, uint32_t &color) const |
| virtual bool | get_dot (int index, int subindex, int phase, float &x, float &y, int &size, cairo_iface *context) const |
| virtual | ~line_graph_iface () |
| Standard destructor to make compiler happy. | |
Public Attributes | |
| uint32_t | srate |
| Public Attributes inherited from calf_plugins::frequency_response_line_graph | |
| bool | redraw_graph |
Protected Attributes | |
| int | fft_buffer_size |
| float * | fft_buffer |
| int * | spline_buffer |
| int | fpos |
| bool | sanitize |
| bool | recreate_plan |
| dsp::fft< float, MAX_FFT_ORDER > | fft |
| dsp::fft< float, MAX_FFT_ORDER >::complex | fft_temp [1<< MAX_FFT_ORDER] |
| float * | fft_inL |
| float * | fft_outL |
| float * | fft_inR |
| float * | fft_outR |
| float * | fft_smoothL |
| float * | fft_smoothR |
| float * | fft_deltaL |
| float * | fft_deltaR |
| float * | fft_holdL |
| float * | fft_holdR |
| float * | fft_freezeL |
| float * | fft_freezeR |
| int | lintrans |
| int | analyzer_phase_drawn |
Static Protected Attributes | |
| static const int | MAX_FFT_ORDER = 15 |
| static const int | max_fft_cache_size = 32768 |
| static const int | max_fft_buffer_size = max_fft_cache_size * 2 |
Private Attributes | |
| int | _accuracy |
| int | _acc |
| int | _scale |
| int | _post |
| int | _hold |
| int | _smooth |
| int | _speed |
| int | _windowing |
| int | _view |
| int | _freeze |
| int | _mode |
| float | _resolution |
| float | _offset |
| bool | _falling |
| int | _draw_upper |
| analyzer::analyzer | ( | ) |
| analyzer::~analyzer | ( | ) |
|
virtual |
Obtain subindex'th graph of parameter 'index'
| index | parameter/graph number (usually tied to particular plugin control port) |
| subindex | graph number (there may be multiple overlaid graphs for one parameter, eg. for monosynth 2x12dB filters) |
| phase | 0 if in cache phase or 1 if in realtime phase |
| data | buffer for normalized output values |
| points | number of points to fill |
| context | cairo context to adjust (for multicolour graphs etc.) |
| true | graph data was returned; subindex+1 graph may or may not be available |
| false | graph data was not returned; subindex+1 graph does not exist either |
Reimplemented from calf_plugins::frequency_response_line_graph.
| bool analyzer::get_graph | ( | int | subindex, |
| int | phase, | ||
| float * | data, | ||
| int | points, | ||
| cairo_iface * | context, | ||
| int * | mode ) const |
|
virtual |
Obtain subindex'th dot of parameter 'index'
| index | parameter/dot number (usually tied to particular plugin control port) |
| subindex | dot number (there may be multiple dots graphs for one parameter) |
| phase | 0 if in cache phase or 1 if in realtime phase |
Reimplemented from calf_plugins::frequency_response_line_graph.
| bool analyzer::get_gridline | ( | int | subindex, |
| int | phase, | ||
| float & | pos, | ||
| bool & | vertical, | ||
| std::string & | legend, | ||
| cairo_iface * | context ) const |
|
virtual |
Return which layers need to be redrawn in the next GTK drawing cycle
| index | Parameter/graph identifier (usually tied to particular plugin control port) |
| generation | The overall amount of drawing cycles since the last full refresh of all surfaces |
| layers | Bitmask defining the layers to be redrawn (see layers_flags above) |
| true | there's at least one layer to be redrawn; false nothing to draw in this cycle |
Reimplemented from calf_plugins::frequency_response_line_graph.
| bool analyzer::get_moving | ( | int | subindex, |
| int & | direction, | ||
| float * | data, | ||
| int | x, | ||
| int | y, | ||
| int & | offset, | ||
| uint32_t & | color ) const |
| void calf_plugins::analyzer::invalidate | ( | ) |
| void analyzer::process | ( | float | L, |
| float | R ) |
| bool calf_plugins::analyzer::set_mode | ( | int | mode | ) |
| void analyzer::set_params | ( | float | resolution, |
| float | offset, | ||
| int | accuracy, | ||
| int | hold, | ||
| int | smoothing, | ||
| int | mode, | ||
| int | scale, | ||
| int | post, | ||
| int | speed, | ||
| int | windowing, | ||
| int | view, | ||
| int | freeze ) |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
mutableprotected |
|
staticprotected |
|
protected |
|
mutableprotected |
|
protected |
| uint32_t calf_plugins::analyzer::srate |