karaoke prototype (disabled)

This commit is contained in:
Chris Danford
2008-03-12 23:17:39 +00:00
parent ecbe89179e
commit 5e87c2e81a
82 changed files with 13322 additions and 31 deletions
+27
View File
@@ -3,6 +3,11 @@
#include "Foreach.h"
#include "GameState.h"
#include "RageLog.h"
/* XXX
#include "PitchDetectionTest.h"
*/
#include "RadarValues.h"
#include "Steps.h"
PlayerState::PlayerState()
{
@@ -22,6 +27,8 @@ void PlayerState::Reset()
m_fLastHopoNoteMusicSeconds = -1;
m_iLastHopoNoteCol = -1;
m_fUpcomingMidiNote = -1;
m_PlayerController = PC_HUMAN;
m_iCpuSkill = 5;
@@ -91,6 +98,26 @@ void PlayerState::Update( float fDelta )
if( m_fSecondsUntilAttacksPhasedOut > 0 )
m_fSecondsUntilAttacksPhasedOut = max( 0, m_fSecondsUntilAttacksPhasedOut - fDelta );
/* XXX
m_fWrappedMidiNote = -1;
if( m_fUpcomingMidiNote != -1 )
{
m_fWrappedMidiNote = PitchDetectionTest::WrapToNearestOctave( PitchDetectionTest::s_ms.fMidiNote, m_fUpcomingMidiNote );
}
else
{
Steps *pSteps = GAMESTATE->m_pCurSteps[m_PlayerNumber];
if( pSteps )
{
const RadarValues &rv = pSteps->GetRadarValues(PLAYER_1);
float fMinMidiNote = rv.m_Values.v.fMinMidiNote;
float fMaxMidiNote = rv.m_Values.v.fMaxMidiNote;
if( fMinMidiNote != -1 && fMaxMidiNote != -1 )
m_fWrappedMidiNote = PitchDetectionTest::WrapToNearestOctave( PitchDetectionTest::s_ms.fMidiNote, (fMinMidiNote+fMaxMidiNote)/2 );
}
}
*/
}
void PlayerState::ResetToDefaultPlayerOptions( ModsLevel l )