예제 #1
0
파일: Atom.cs 프로젝트: kurena-777/NFugue
        public Atom(string voice, string layer, string instrument, Note note)
        {
            var context = new StaccatoParserContext(null);

            IVLSubparser.PopulateContext(context);
            var subparser = new IVLSubparser();

            CreateAtom(subparser.GetValue(voice.ToUpper(), context),
                       subparser.GetValue(layer.ToUpper(), context),
                       (Instrument)subparser.GetValue(instrument.ToUpper(), context),
                       new Note(note));
        }
예제 #2
0
        public StaccatoParser()
        {
            Context = new StaccatoParserContext(this);

            NoteSubparser.PopulateContext(Context);
            TempoSubparser.PopulateContext(Context);
            IVLSubparser.PopulateContext(Context);

            InitializeSubparsers();
            InitializePreprocessors();
            InitializeFunctionManager();
        }