add TimingData::GetStopAtRow

This commit is contained in:
Glenn Maynard
2005-12-19 00:07:34 +00:00
parent 06e8da57f8
commit 01e8e57ad1
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -114,6 +114,17 @@ void TimingData::SetStopAtRow( int iRow, float fSeconds )
}
}
float TimingData::GetStopAtRow( int iNoteRow ) const
{
for( unsigned i=0; i<m_StopSegments.size(); i++ )
{
if( m_StopSegments[i].m_iStartRow == iNoteRow )
return m_StopSegments[i].m_fStopSeconds;
}
return 0;
}
/* Multiply the BPM in the range [fStartBeat,fEndBeat) by fFactor. */
void TimingData::MultiplyBPMInBeatRange( int iStartIndex, int iEndIndex, float fFactor )
{
+1
View File
@@ -53,6 +53,7 @@ public:
void SetBPMAtBeat( float fBeat, float fBPM ) { SetBPMAtRow( BeatToNoteRow(fBeat), fBPM ); }
void SetStopAtRow( int iNoteRow, float fSeconds );
void SetStopAtBeat( float fBeat, float fSeconds ) { SetStopAtRow( BeatToNoteRow(fBeat), fSeconds ); }
float GetStopAtRow( int iNoteRow ) const;
void MultiplyBPMInBeatRange( int iStartIndex, int iEndIndex, float fFactor );
void AddBPMSegment( const BPMSegment &seg );
void AddStopSegment( const StopSegment &seg );