C# Class Nanook.TheGhost.ProjectSong

Inheritance: ISettingsChange
Show file Open project: Nanook/TheGHOST Class Usage Examples

Private Properties

Property Type Description
ISettingsChange void
ProjectSong System
adjustBattleStarPower int[]
adjustFaceOff int[]
adjustFrets int[]
adjustNotes int[]
alignBattleStarPowerToFaceOff void
calculateMarkers void
clearAllQbItems void
clearQbItems void
convertBossNotesToFaceOff int[]
convertIntArrayToUIntArray uint[]
copy void
countNotes int
findNearestFret uint
fixText string
replaceNotesItems int
replaceQbItems void
replaceQbItems void
setDeathDrain void
setLength void
setMarkers void
setSustain int

Public Methods

Method Description
AutoImportDirectory ( string folderName, bool addCrowd ) : void

Import a directory, map the audio, parse the song.ini, set the notes file

AutoImportSongIni ( string fileName ) : int

Reads Artis and Title from song ini file

FinaliseSettings ( ) : void

Apply any padding to notes, audio, frets and generate practise markers

UpdateQbChanges ( ) : void

Private Methods

Method Description
ISettingsChange ( ) : void
ProjectSong ( Project project, SongQb songQb ) : System
adjustBattleStarPower ( int battleStarPower, int notes ) : int[]

Remove empty star power / battle power sections. Remove overlapping sections. Ensure note count is correct

adjustFaceOff ( int faceOff ) : int[]

Combine overlapping sections

adjustFrets ( int frets ) : int[]

Remove frets before notes start that are close together. Create frets from start to Notes. Add / Remove frets from end

adjustNotes ( int notes ) : int[]
alignBattleStarPowerToFaceOff ( int battleStarPower, int faceOff ) : void

Move the star power to fit in with the face off. We can't move the face off as there's only one, but each star power could be different

calculateMarkers ( int frets, QbItemArray arr, QbFile text ) : void
clearAllQbItems ( QbFile qbFile, List ghItems ) : void
clearQbItems ( QbItemArray a ) : void
convertBossNotesToFaceOff ( int notes, int faceOff ) : int[]

For boss battles, use the face off markers and remove notes that are not in the face off sections.

convertIntArrayToUIntArray ( int array ) : uint[]
copy ( Stream from, Stream to, long length ) : void
countNotes ( int notes, int offset, int length ) : int
findNearestFret ( uint offset, int frets ) : uint
fixText ( string text ) : string
replaceNotesItems ( ) : int
replaceQbItems ( QbItemArray a, int items, bool split ) : void
replaceQbItems ( QbItemArray a, int items, bool split, int splitBy ) : void
setDeathDrain ( QbItemArray ar, NotesMarker markers ) : void
setLength ( QbItemArray a, int msSongLength, int blockSize, int frets, bool bindToFret ) : void
setMarkers ( int frets, QbItemArray arr, QbFile text, NotesMarker markers ) : void
setSustain ( int susNote, int susLen, int nextNote, int halfOldSustainTrigger, int halfNewSustainTrigger, bool gh3Mode ) : int

Method Details

AutoImportDirectory() public method

Import a directory, map the audio, parse the song.ini, set the notes file
public AutoImportDirectory ( string folderName, bool addCrowd ) : void
folderName string
addCrowd bool
return void

AutoImportSongIni() public method

Reads Artis and Title from song ini file
public AutoImportSongIni ( string fileName ) : int
fileName string
return int

FinaliseSettings() public method

Apply any padding to notes, audio, frets and generate practise markers
public FinaliseSettings ( ) : void
return void

UpdateQbChanges() public method

public UpdateQbChanges ( ) : void
return void