This is a Unity package for reading Moonscraper charts. None of this code is new - it was simply just carved out of the Moonscraper codebase and put together here as a Unity package.
Follow the instructions here: https://docs.unity3d.com/Manual/upm-ui-giturl.html
For the "Git URL", use: https://github.com/createdelic/MoonscraperChartLibrary.git
var fname = "C:\\notes.chart";
var song = ChartReader.ReadChart(fname);
var chart = song.GetChart(
Song.Instrument.Guitar,
Song.Difficulty.Expert);
Debug.Log("note_count=" + chart.note_count);
foreach (var note in chart.notes)
{
Debug.Log(
"tick=" + note.tick
+ " time=" + note.time
+ " fret=" + note.guitarFret);
}