MCPcopy Create free account
hub / github.com/LMMS/lmms / setWaveToTriangle

Method setWaveToTriangle

src/gui/widgets/Graph.cpp:531–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

529
530
531void graphModel::setWaveToTriangle()
532{
533 for( int i = 0; i < length(); i++ )
534 {
535 m_samples[i] = Oscillator::triangleSample(
536 i / static_cast<float>( length() ) );
537 }
538
539 emit samplesChanged( 0, length() - 1 );
540};
541
542
543

Callers 3

triWaveClickedMethod · 0.80
triangleWaveClickedMethod · 0.80
triangleWaveClickedMethod · 0.80

Calls 2

triangleSampleFunction · 0.85
lengthFunction · 0.50

Tested by

no test coverage detected