|
LMMS
|
2 dimensional function plot More...
#include <Graph.h>
Public Slots | |
| void | setRange (float ymin, float ymax) |
| Set range of y values. | |
| void | setLength (int _size) |
| void | setSampleAt (int x, float val) |
| Update one sample. | |
| void | setSamples (const float *_value) |
| Update samples array. | |
| void | setWaveToSine () |
| void | setWaveToTriangle () |
| void | setWaveToSaw () |
| void | setWaveToSquare () |
| void | setWaveToNoise () |
| QString | setWaveToUser () |
| void | smooth () |
| void | smoothNonCyclic () |
| void | normalize () |
| void | invert () |
| void | shiftPhase (int _deg) |
| void | clear () |
| void | clearInvisible () |
Signals | |
| void | lengthChanged () |
| void | samplesChanged (int startPos, int endPos) |
| void | rangeChanged () |
| Signals inherited from lmms::Model | |
| void | dataChanged () |
| void | dataUnchanged () |
| void | propertiesChanged () |
Public Member Functions | |
| graphModel (float _min, float _max, int _size, Model *_parent, bool _default_constructed=false, float _step=0.0) | |
| Constructor. | |
| ~graphModel () override=default | |
| float | minValue () const |
| float | maxValue () const |
| int | length () const |
| const float * | samples () const |
| void | convolve (const float *convolution, const int convolutionLength, const int centerOffset) |
| Public Member Functions inherited from lmms::Model | |
| Model (Model *parent, QString displayName=QString(), bool defaultConstructed=false) | |
| ~Model () override=default | |
| bool | isDefaultConstructed () const |
| Model * | parentModel () const |
| virtual QString | displayName () const |
| virtual void | setDisplayName (const QString &displayName) |
| virtual QString | fullDisplayName () const |
Private Member Functions | |
| void | drawSampleAt (int x, float val) |
Private Attributes | |
| QVector< float > | m_samples |
| int | m_length |
| float | m_minValue |
| float | m_maxValue |
| float | m_step |
Friends | |
| class | gui::Graph |
2 dimensional function plot
Function plot graph with discrete x scale and continous y scale This makes it possible to display "#x" samples
| lmms::graphModel::graphModel | ( | float | _min, |
| float | _max, | ||
| int | _size, | ||
| Model * | _parent, | ||
| bool | _default_constructed = false, | ||
| float | _step = 0.0 ) |
Constructor.
| _min | Minimum y value to display |
| _max | Maximum y value to display |
| _size | Number of samples (e.g. x value) |
| _step | Step size on y axis where values snap to, or 0.0f for "no snapping" |
|
overridedefault |
|
slot |
|
slot |
| void lmms::graphModel::convolve | ( | const float * | convolution, |
| const int | convolutionLength, | ||
| const int | centerOffset ) |
Make cyclic convolution
| convolution | Samples to convolve with |
| convolutionLength | Number of samples to take for each sum |
| centerOffset | Offset for resulting values |
|
slot |
|
inline |
|
signal |
|
inline |
|
inline |
|
slot |
|
signal |
|
inline |
|
slot |
Set range of y values.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |