public string GetLine() { int style = GetIntFromBitArray(new BitArray(new bool[] { Kiai, false, false, OmitFirstBarLine })); return(Math.Round(Offset) + "," + MpB.ToString(CultureInfo.InvariantCulture) + "," + Meter + "," + SampleSet + "," + SampleIndex + "," + Math.Round(Volume) + "," + Convert.ToInt32(Inherited) + "," + style); }
/// <summary> /// Generates the line from the selected <see cref="TimingPoint"/> /// </summary> /// <returns></returns> public string GetLine() { int style = MathHelper.GetIntFromBitArray(new BitArray(new[] { Kiai, false, false, OmitFirstBarLine })); return($"{(SaveWithFloatPrecision ? Offset.ToInvariant() : Offset.ToRoundInvariant())},{MpB.ToInvariant()},{Meter.TempoNumerator.ToInvariant()},{SampleSet.ToIntInvariant()},{SampleIndex.ToInvariant()},{(SaveWithFloatPrecision ? Volume.ToInvariant() : Volume.ToRoundInvariant())},{Convert.ToInt32(Uninherited).ToInvariant()},{style.ToInvariant()}"); }