Beispiel #1
0
        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);
        }
Beispiel #2
0
        /// <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()}");
        }