Example #1
0
 private void method_1(MIDILine class353_0)
 {
     this.songTitle = class353_0.method_2();
     foreach (AbstractNoteClass current in class353_0.method_0())
     {
         int num = Convert.ToInt32((double)current.method_0() * this.resolution);
         if (current is zzNote1)
         {
             zzNote1 @class = (zzNote1)current;
             if (!this.isEvents && @class.method_2() == zzNote1.Enum37.const_0)
             {
                 this.method_4(4, num, "section " + @class.method_1());
             }
         }
         else if (current is BpmNote1)
         {
             int num2 = ((BpmNote1)current).method_1();
             this.bpmInterpreter.bpmList.Add(num, Convert.ToInt32(Math.Floor(60000000.0 / (double)num2 * 1000.0)));
         }
         else if (current is zzNote338)
         {
             this.bpmInterpreter.TSList.Add(num, ((zzNote338)current).method_1());
         }
     }
 }
Example #2
0
 private void getNotes(MIDILine midiLine, int difficulty)
 {
     bool[] array = new bool[midiLine.method_0().Count];
     List<AbstractNoteClass> list = midiLine.method_0();
     for (int i = 0; i < list.Count; i++)
     {
         if (!array[i])
         {
             int num = Convert.ToInt32((double)list[i].method_0() * this.resolution);
             if (list[i] is MIDINote)
             {
                 MIDINote midiNote = (MIDINote)list[i];
                 if (midiNote.method_5())
                 {
                     int j = -1;
                     int 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((double)list[num2].method_0() * this.resolution);
                                 array[num2] = true;
                             }
                             else
                             {
                                 j = Convert.ToInt32((double)list[num2].method_0() * this.resolution);
                             }
                         }
                         num2++;
                     }
                     int num3 = Convert.ToInt32(j - num);
                     if (num3 <= 160)
                     {
                         num3 = 0;
                     }
                     this.method_3(difficulty, num, midiNote, num3);
                 }
             }
             else if (list[i] is zzNote1)
             {
                 zzNote1 class2 = (zzNote1)list[i];
                 List<string> list2 = this.method_5(difficulty - 4);
                 string text = class2.method_1();
                 if (text.StartsWith("["))
                 {
                     text = text.Substring(1, text.Length - 2);
                 }
                 if (list2.Contains(text) || text.Contains("section "))
                 {
                     this.method_4(difficulty, num, text);
                 }
             }
         }
     }
 }