Пример #1
0
    public void setBPM(int newBPM)
    {
        songBPM = newBPM;
        bpmSet  = true;

        theBass.setBPM(songBPM);
        theDrums.setBPM(songBPM);
        theVocals.setBPM(songBPM);
        theInstruments.setBPM(songBPM);
    }
 private void doneMethod()
 {
     try
     {
         foreach (track t in tracks)
         {
             if (t != null)
             {
                 if (t.getSecond().Contains(name))
                 {
                     if (customName == "")
                     {
                         customName = name;
                     }
                     if (bpm == 0)
                     {
                         want = true;
                     }
                     track theTrack = new track(customName, t.getSecond());
                     theTrack.setBPM(bpm);
                     theTrack.setDefBPM(bpm);
                     theTrack.setKey(key);
                     theTrack.setType(type);
                     theTrack.wantCalc = want;
                     menu.theSong.setInstruments(theTrack);
                     break;
                 }
             }
         }
     }
     catch
     {
         var toast = Toast.MakeText(Application.Context, "Could not import file", ToastLength.Short);
         toast.Show();
     }
     finally
     {
         Finish();
     }
 }