reverted previous changes (behaviour with monophonic instruments)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@522 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2007-08-16 10:01:00 +00:00
parent 0b799fc3b1
commit b01d1a2b11
3 changed files with 17 additions and 14 deletions

View File

@@ -781,8 +781,8 @@ void instrumentTrack::playNote( notePlayHandle * _n, bool _try_parallelizing )
{
processInEvent( midiEvent( NOTE_OFF, 0,
_n->key(), 0 ), midiTime() );
_n->noteOff( ( *youngest_note )->offset()+m_instrument->desiredTransitionFrames() );
#if 0
//printf("%d\n",( *youngest_note )->offset()+m_instrument->desiredTransitionFrames());
//_n->noteOff( ( *youngest_note )->offset()+m_instrument->desiredTransitionFrames() );
if( ( *youngest_note )->offset() >
_n->offset() )
{
@@ -799,13 +799,19 @@ void instrumentTrack::playNote( notePlayHandle * _n, bool _try_parallelizing )
// in last period and have
// to clear parts of it
_n->noteOff();
/* engine::getMixer()->clearAudioBuffer( m_audioPort->firstBuffer(),
engine::getMixer()->clearAudioBuffer( m_audioPort->firstBuffer(),
engine::getMixer()->framesPerPeriod() -
( *youngest_note )->offset(),
( *youngest_note )->offset() );
return;*/
return;
}
#endif
}
// we do not play previously released notes
// anymore
else if( *youngest_note != _n &&
_n->released() )
{
return;
}
}
}