-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
34 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,30 @@ | ||
#include "Defines.h" | ||
#include <os/Debug.h> | ||
#include <obj/DataUtl.h> | ||
|
||
TrackType ControllerTypeToTrackType(ControllerType controllerType, bool alt) { | ||
switch (controllerType) { | ||
case kControllerDrum: | ||
return kTrackDrum; | ||
case kControllerVocals: | ||
return kTrackVocals; | ||
case kControllerGuitar: | ||
return alt ? kTrackBass : kTrackGuitar; | ||
case kControllerRealGuitar: | ||
return alt ? kTrackRealBass : kTrackRealGuitar; | ||
case kControllerKeys: | ||
return alt ? kTrackRealKeys : kTrackKeys; | ||
default: | ||
return kTrackNone; | ||
} | ||
} | ||
|
||
TrackType ScoreTypeToTrackType(ScoreType scoreType) { | ||
TrackType trackType; | ||
switch (scoreType) { | ||
case kScoreDrum: | ||
trackType = kTrackDrum; | ||
break; | ||
case kScoreBass: | ||
trackType = kTrackBass; | ||
break; | ||
case kScoreGuitar: | ||
trackType = kTrackGuitar; | ||
break; | ||
case kScoreVocals: | ||
trackType = kTrackVocals; | ||
break; | ||
case kScoreHarmony: | ||
trackType = kTrackVocals; | ||
break; | ||
case kScoreKeys: | ||
trackType = kTrackKeys; | ||
case 0: | ||
break; | ||
case kScoreRealDrum: | ||
trackType = kTrackDrum; | ||
break; | ||
case kScoreRealGuitar: | ||
trackType = kTrackRealGuitar; | ||
break; | ||
case kScoreRealBass: | ||
trackType = kTrackRealBass; | ||
break; | ||
case kScoreRealKeys: | ||
trackType = kTrackRealKeys; | ||
break; | ||
case kScoreBand: | ||
trackType = kTrackNone; | ||
break; | ||
default: | ||
TheDebug.Fail(MakeString("no TrackType for this ScoreType!")); | ||
trackType = kTrackNone; | ||
} | ||
return trackType; | ||
} | ||
|
||
ControllerType TrackTypeToControllerType(TrackType trackType) { | ||
switch (trackType) { | ||
case kTrackDrum: | ||
case 0: | ||
return kControllerDrum; | ||
case kTrackGuitar: | ||
case kTrackBass: | ||
case 1: | ||
case 2: | ||
return kControllerGuitar; | ||
case kTrackVocals: | ||
case 3: | ||
return kControllerVocals; | ||
case kTrackKeys: | ||
case kTrackRealKeys: | ||
return kControllerKeys; | ||
case kTrackRealGuitar: | ||
case kTrackRealBass: | ||
return kControllerRealGuitar; | ||
default: | ||
case 4: | ||
case 5: | ||
return kControllerNone; | ||
case 6: | ||
case 8: | ||
return (ControllerType)4; | ||
default: | ||
return (ControllerType)5; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#include "system/utl/LogFile.h" | ||
#include "NetLog.h" | ||
|
||
static LogFile NetLog = LogFile("netlog-%05d.txt"); | ||
LogFile NetLog = LogFile("netlog-%05d.txt"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "system/utl/LogFile.h" | ||
|
||
extern LogFile NetLog; |