Class Song
- Namespace
- ChartTools
- Assembly
- ChartTools.dll
Song playable in Clone Hero
public class Song
- Inheritance
-
Song
- Inherited Members
- Extension Methods
Properties
Formatting
Rules defined in song.ini that affect how the song data file is read and written
public FormattingRules Formatting { get; set; }
Property Value
Remarks
Property summaries provided by Nathan Hurst.
GlobalEvents
List of events common to all instruments
public List<GlobalEvent>? GlobalEvents { get; set; }
Property Value
Instruments
Set of all instruments
public InstrumentSet Instruments { get; set; }
Property Value
Metadata
Set of information about the song not unrelated to instruments, syncing or events
public Metadata? Metadata { get; set; }
Property Value
SyncTrack
Set of markers that define the time signature and tempo
public SyncTrack? SyncTrack { get; set; }
Property Value
UnknownChartSections
public ChartSection? UnknownChartSections { get; set; }
Property Value
Vocals
public Vocals? Vocals { get; set; }
Property Value
Methods
FromDirectory(string, ReadingConfiguration?)
Reads a Song from a directory.
public static Song FromDirectory(string directory, ReadingConfiguration? config = null)
Parameters
directory
stringPath of the directory to read from
config
ReadingConfigurationOptional read config
Returns
FromDirectoryAsync(string, ReadingConfiguration?, CancellationToken)
Reads a Song from a directory asynchronously.
public static Task<Song> FromDirectoryAsync(string directory, ReadingConfiguration? config = null, CancellationToken cancellationToken = default)
Parameters
directory
stringPath of the directory to read from
config
ReadingConfigurationOptional read config
cancellationToken
CancellationTokenToken used for cancellation
Returns
Remarks
Uses multi-threading to parse song components.
FromFile(string, ReadingConfiguration?, FormattingRules?)
Reads of a Song from a file.
public static Song FromFile(string path, ReadingConfiguration? config = null, FormattingRules? formatting = null)
Parameters
path
stringPath of the file to write to
config
ReadingConfigurationOptional write config
formatting
FormattingRulesExpected formatting
Returns
FromFileAsync(string, ChartReadingConfiguration?, FormattingRules?, CancellationToken)
Reads of a Song from a file asynchronously.
public static Task<Song> FromFileAsync(string path, ChartReadingConfiguration? config = null, FormattingRules? formatting = null, CancellationToken cancellationToken = default)
Parameters
path
stringPath of the file to write to
config
ChartReadingConfigurationOptional write config
formatting
FormattingRulesExpected formatting
cancellationToken
CancellationTokenToken used for cancellation
Returns
Remarks
Uses multi-threading to parse song components.
ToFile(string, WritingConfiguration?, FormattingRules?)
Writes the Song to a file.
public void ToFile(string path, WritingConfiguration? config = null, FormattingRules? formatting = null)
Parameters
path
stringPath of the file to write to
config
WritingConfigurationOptional write config
formatting
FormattingRulesFormatting to apply
ToFileAsync(string, WritingConfiguration?, FormattingRules?, CancellationToken)
Writes the Song to a file asynchronously.
public Task ToFileAsync(string path, WritingConfiguration? config = null, FormattingRules? formatting = null, CancellationToken cancellationToken = default)
Parameters
path
stringPath of the file to write to
config
WritingConfigurationOptional write config
formatting
FormattingRulesFormatting to apply
cancellationToken
CancellationTokenToken used for cancellation
Returns
Remarks
Uses multi-threading to serialize song components.