| 1838 | |
| 1839 | |
| 1840 | void PianoRoll::pauseTestNotes( bool pause ) |
| 1841 | { |
| 1842 | for (Note *note : m_pattern->notes()) |
| 1843 | { |
| 1844 | if( note->isPlaying() ) |
| 1845 | { |
| 1846 | if( pause ) |
| 1847 | { |
| 1848 | // stop note |
| 1849 | m_pattern->instrumentTrack()->pianoModel()->handleKeyRelease( note->key() ); |
| 1850 | } |
| 1851 | else |
| 1852 | { |
| 1853 | // start note |
| 1854 | note->setIsPlaying( false ); |
| 1855 | testPlayNote( note ); |
| 1856 | } |
| 1857 | } |
| 1858 | } |
| 1859 | } |
| 1860 | |
| 1861 | |
| 1862 |
nothing calls this directly
no test coverage detected