Пример #1
0
 public MmlDatum(enmMMLType type, List <object> args, LinePos linePos, int dat)
 {
     this.type    = type;
     this.args    = args;
     this.linePos = linePos;
     this.dat     = dat;
 }
Пример #2
0
 public outDatum(enmMMLType type, List <object> args, LinePos linePos, byte val)
 {
     this.type    = type;
     this.args    = args;
     this.linePos = linePos;
     this.val     = val;
 }
Пример #3
0
        public static bool CheckDummyCommand(enmMMLType typ)
        {
            if (typ == enmMMLType.Rest ||
                typ == enmMMLType.Tempo ||
                typ == enmMMLType.Length ||
                typ == enmMMLType.Octave ||
                typ == enmMMLType.OctaveDown ||
                typ == enmMMLType.OctaveUp ||
                typ == enmMMLType.Instrument ||
                typ == enmMMLType.Envelope ||
                typ == enmMMLType.Volume ||
                typ == enmMMLType.Note ||
                typ == enmMMLType.Pan ||
                typ == enmMMLType.LfoSwitch ||
                typ == enmMMLType.Detune ||
                typ == enmMMLType.KeyShift ||
                typ == enmMMLType.unknown ||
                typ == enmMMLType.Lyric ||
                typ == enmMMLType.Lfo
                )
            {
                return(true);
            }

            return(false);
        }
Пример #4
0
        public MmlDatum(int dat, enmMMLType type, LinePos linePos, params object[] args)
        {
            this.type = type;
            this.args = args != null?args.ToList() : null;

            this.linePos = linePos;
            this.dat     = dat;
        }
Пример #5
0
 public MmlDatum2(string code, int dat, enmMMLType type, LinePos linePos, params object[] args) : base(dat, type, linePos, args)
 {
     this.code = code;
 }
Пример #6
0
 public MmlDatum2(string code, enmMMLType type, List <object> args, LinePos linePos, int dat) : base(type, args, linePos, dat)
 {
     this.code = code;
 }