Example #1
0
 public static int BeatsToSamples(float tempo, float beats)
 {
     return(MusicUtil.SecondsToSamples(MusicUtil.BeatsToSeconds(tempo, beats)));
 }
Example #2
0
 public static double BarsToSeconds(float tempo, float bars)
 {
     return(MusicUtil.BeatsToSeconds(tempo, bars * 4f));
 }