| 529 | |
| 530 | |
| 531 | void 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 |
no test coverage detected