private void method_1(MidiLine class3530) { _songTitle = class3530.method_2(); foreach (var current in class3530.method_0()) { var num = Convert.ToInt32(current.method_0() * _resolution); if (current is ZzNote1) { var @class = (ZzNote1)current; if (!_isEvents && @class.method_2() == ZzNote1.Enum37.Const0) { method_4(4, num, "section " + @class.method_1()); } } else if (current is BpmNote1) { var num2 = ((BpmNote1)current).method_1(); _bpmInterpreter.BpmList.Add(num, Convert.ToInt32(Math.Floor(60000000.0 / num2 * 1000.0))); } else if (current is ZzNote338) { _bpmInterpreter.TsList.Add(num, ((ZzNote338)current).method_1()); } } }
private void GetNotes(MidiLine midiLine, int difficulty) { var array = new bool[midiLine.method_0().Count]; var list = midiLine.method_0(); for (var i = 0; i < list.Count; i++) { if (!array[i]) { var num = Convert.ToInt32(list[i].method_0() * _resolution); if (list[i] is MidiNote) { var midiNote = (MidiNote)list[i]; if (midiNote.method_5()) { var j = -1; var num2 = i + 1; while (j < 0) { if (num2 == midiLine.method_0().Count) { break; } if (list[num2] is MidiNote && ((MidiNote)list[num2]).method_4() == midiNote.method_4()) { if (((MidiNote)list[num2]).method_5()) { j = Convert.ToInt32(list[num2].method_0() * _resolution); array[num2] = true; } else { j = Convert.ToInt32(list[num2].method_0() * _resolution); } } num2++; } var num3 = Convert.ToInt32(j - num); if (num3 <= 160) { num3 = 0; } method_3(difficulty, num, midiNote, num3); } } else if (list[i] is ZzNote1) { var class2 = (ZzNote1)list[i]; var list2 = method_5(difficulty - 4); var text = class2.method_1(); if (text.StartsWith("[")) { text = text.Substring(1, text.Length - 2); } if (list2.Contains(text) || text.Contains("section ")) { method_4(difficulty, num, text); } } } } }