added support for transition-frames for monophonic instruments

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@521 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2007-08-08 00:25:18 +00:00
parent 8cdcbfcc05
commit 0b799fc3b1
4 changed files with 225 additions and 72 deletions

View File

@@ -781,6 +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
if( ( *youngest_note )->offset() >
_n->offset() )
{
@@ -797,12 +799,13 @@ 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
}
}
}