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?)
public static Song FromDirectory(string directory, ReadingConfiguration? config = null)
Parameters
directory
stringconfig
ReadingConfiguration
Returns
FromDirectoryAsync(string, ReadingConfiguration?, CancellationToken)
public static Task<Song> FromDirectoryAsync(string directory, ReadingConfiguration? config = null, CancellationToken cancellationToken = default)
Parameters
directory
stringconfig
ReadingConfigurationcancellationToken
CancellationToken
Returns
FromFile(string, ReadingConfiguration?, FormattingRules?)
Reads all elements of a Song from a file.
public static Song FromFile(string path, ReadingConfiguration? config = null, FormattingRules? formatting = null)
Parameters
path
stringPath of the file
config
ReadingConfigurationformatting
FormattingRulesRules defined in song.ini that affect how the song data file is read and written
Returns
FromFileAsync(string, ChartReadingConfiguration?, FormattingRules?, CancellationToken)
Reads all elements of a Song from a file asynchronously using multitasking.
public static Task<Song> FromFileAsync(string path, ChartReadingConfiguration? config = null, FormattingRules? formatting = null, CancellationToken cancellationToken = default)
Parameters
path
string- Path of the file
config
ChartReadingConfigurationformatting
FormattingRulesRules defined in song.ini that affect how the song data file is read and written cancellationToken
CancellationTokenToken to request cancellation
Returns
ToFile(string, WritingConfiguration?)
Writes the Song to a file.
public void ToFile(string path, WritingConfiguration? config = null)
Parameters
path
stringconfig
WritingConfiguration
Exceptions
- ArgumentException
- ArgumentNullException
- PathTooLongException
- DirectoryNotFoundException
- LineException
- UnauthorizedAccessException
- NotSupportedException
- SecurityException
ToFileAsync(string, WritingConfiguration?, CancellationToken)
public Task ToFileAsync(string path, WritingConfiguration? config = null, CancellationToken cancellationToken = default)
Parameters
path
stringconfig
WritingConfigurationcancellationToken
CancellationToken