more record-accompany fixes (stable backport)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/branches/lmms/stable-0.4@2052 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2009-02-19 13:57:22 +00:00
parent 6b875a9181
commit 264ad268ba

View File

@@ -3092,10 +3092,18 @@ void pianoRoll::startRecordNote( const note & _n )
engine::getSong()->playMode() ==
song::Mode_PlayPattern ) )
{
midiTime sub;
if( engine::getSong()->playMode() == song::Mode_PlaySong )
{
sub = m_pattern->startPosition();
}
note n( 1, engine::getSong()->getPlayPos(
engine::getSong()->playMode() ),
engine::getSong()->playMode() ) - sub,
_n.key(), _n.getVolume(), _n.getPanning() );
m_recordingNotes << n;
if( n.pos() >= 0 )
{
m_recordingNotes << n;
}
}
}