more record-accompany fixes

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@2051 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2009-02-19 13:56:57 +00:00
parent 923f400ed0
commit c4884db2fb

View File

@@ -3089,10 +3089,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;
}
}
}