add TimingData::GetStopAtRow
This commit is contained in:
@@ -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. */
|
/* Multiply the BPM in the range [fStartBeat,fEndBeat) by fFactor. */
|
||||||
void TimingData::MultiplyBPMInBeatRange( int iStartIndex, int iEndIndex, float fFactor )
|
void TimingData::MultiplyBPMInBeatRange( int iStartIndex, int iEndIndex, float fFactor )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ public:
|
|||||||
void SetBPMAtBeat( float fBeat, float fBPM ) { SetBPMAtRow( BeatToNoteRow(fBeat), fBPM ); }
|
void SetBPMAtBeat( float fBeat, float fBPM ) { SetBPMAtRow( BeatToNoteRow(fBeat), fBPM ); }
|
||||||
void SetStopAtRow( int iNoteRow, float fSeconds );
|
void SetStopAtRow( int iNoteRow, float fSeconds );
|
||||||
void SetStopAtBeat( float fBeat, float fSeconds ) { SetStopAtRow( BeatToNoteRow(fBeat), 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 MultiplyBPMInBeatRange( int iStartIndex, int iEndIndex, float fFactor );
|
||||||
void AddBPMSegment( const BPMSegment &seg );
|
void AddBPMSegment( const BPMSegment &seg );
|
||||||
void AddStopSegment( const StopSegment &seg );
|
void AddStopSegment( const StopSegment &seg );
|
||||||
|
|||||||
Reference in New Issue
Block a user