Document graph widget

This commit is contained in:
Johannes Lorenz
2019-04-22 11:05:59 +02:00
parent d537561ffc
commit 7ae4e85ffe
2 changed files with 35 additions and 8 deletions

View File

@@ -635,13 +635,14 @@ void graphModel::smoothNonCyclic()
emit samplesChanged(0, length()-1);
}
//makes a cyclic convolution.
void graphModel::convolve(const float *convolution, const int convolutionLength, const int centerOffset)
void graphModel::convolve(const float *convolution,
const int convolutionLength, const int centerOffset)
{
// store values in temporary array
QVector<float> temp = m_samples;
const int graphLength = length();
float sum;
// make a cyclic convolution
for ( int i = 0; i < graphLength; i++ )
{
sum = 0;