private FormSong(DirectoryInfo chartPath) { this.chart = new Chart(chartPath); bbm = new BeatBitMasker(); ss = ScoreSharer.StartInstance(); InitializeComponent(); labelName.Text = chartPath.Name; chart.Start(); }
public NotesPlayer(string filePath) { beatTimer = new Tick(BeatTimer_Elapsed); com = SharedSerialPort.StartInstance(); bbm = new BeatBitMasker(); sr = new StreamReader(filePath); float.TryParse(ReadLine(), out float bpmt); float.TryParse(ReadLine(), out float offsett); bpm = bpmt; offset = offsett; //timer: ogni beat beatTimer.Microseconds = (long)((60000.0f / bpm) / 4.0f * 1000.0f); }