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

Method pauseTestNotes

src/gui/editors/PianoRoll.cpp:1840–1859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1838
1839
1840void 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

Callers

nothing calls this directly

Calls 5

handleKeyReleaseMethod · 0.80
instrumentTrackMethod · 0.80
keyMethod · 0.80
setIsPlayingMethod · 0.80
isPlayingMethod · 0.45

Tested by

no test coverage detected