TransformNoteData(fStartBeat, fEndBeat) for transforms
This commit is contained in:
@@ -974,7 +974,7 @@ void NoteDataUtil::ConvertAdditionsToRegular( NoteData &in )
|
|||||||
in.SetTapNote(t,r,TAP_TAP);
|
in.SetTapNote(t,r,TAP_TAP);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NoteDataUtil::TransformNoteData( NoteData &nd, PlayerOptions &po, StepsType st )
|
void NoteDataUtil::TransformNoteData( NoteData &nd, const PlayerOptions &po, StepsType st, float fStartBeat, float fEndBeat )
|
||||||
{
|
{
|
||||||
if( !po.m_bHoldNotes )
|
if( !po.m_bHoldNotes )
|
||||||
RemoveHoldNotes( nd );
|
RemoveHoldNotes( nd );
|
||||||
@@ -993,12 +993,12 @@ void NoteDataUtil::TransformNoteData( NoteData &nd, PlayerOptions &po, StepsType
|
|||||||
switch( po.m_Transform )
|
switch( po.m_Transform )
|
||||||
{
|
{
|
||||||
case PlayerOptions::TRANSFORM_NONE: break;
|
case PlayerOptions::TRANSFORM_NONE: break;
|
||||||
case PlayerOptions::TRANSFORM_LITTLE: NoteDataUtil::Little(nd); break;
|
case PlayerOptions::TRANSFORM_LITTLE: NoteDataUtil::Little(nd, fStartBeat, fEndBeat); break;
|
||||||
case PlayerOptions::TRANSFORM_WIDE: NoteDataUtil::Wide(nd); break;
|
case PlayerOptions::TRANSFORM_WIDE: NoteDataUtil::Wide(nd, fStartBeat, fEndBeat); break;
|
||||||
case PlayerOptions::TRANSFORM_BIG: NoteDataUtil::Big(nd); break;
|
case PlayerOptions::TRANSFORM_BIG: NoteDataUtil::Big(nd, fStartBeat, fEndBeat); break;
|
||||||
case PlayerOptions::TRANSFORM_QUICK: NoteDataUtil::Quick(nd); break;
|
case PlayerOptions::TRANSFORM_QUICK: NoteDataUtil::Quick(nd, fStartBeat, fEndBeat); break;
|
||||||
case PlayerOptions::TRANSFORM_SKIPPY: NoteDataUtil::Skippy(nd); break;
|
case PlayerOptions::TRANSFORM_SKIPPY: NoteDataUtil::Skippy(nd, fStartBeat, fEndBeat); break;
|
||||||
case PlayerOptions::TRANSFORM_MINES: NoteDataUtil::Mines(nd); break;
|
case PlayerOptions::TRANSFORM_MINES: NoteDataUtil::Mines(nd, fStartBeat, fEndBeat); break;
|
||||||
default: ASSERT(0);
|
default: ASSERT(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ namespace NoteDataUtil
|
|||||||
// True if no notes in row that aren't true in the mask
|
// True if no notes in row that aren't true in the mask
|
||||||
bool RowPassesValidMask( NoteData &in, int row, const bool bValidMask[] );
|
bool RowPassesValidMask( NoteData &in, int row, const bool bValidMask[] );
|
||||||
|
|
||||||
void TransformNoteData( NoteData &nd, PlayerOptions &po, StepsType st );
|
void TransformNoteData( NoteData &nd, const PlayerOptions &po, StepsType st, float fStartBeat = -1, float fEndBeat = -1 );
|
||||||
|
|
||||||
void Scale( NoteData &nd, float fScale );
|
void Scale( NoteData &nd, float fScale );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user