Beispiel #1
0
        public UNote CreateNote()
        {
            UNote note = UNote.Create();

            note.pitch.AddPoint(new PitchPoint(-25, 0));
            note.pitch.AddPoint(new PitchPoint(25, 0));
            return(note);
        }
        public UstxSerializationTest(ITestOutputHelper output)
        {
            this.output = output;
            descriptor  = new UExpressionDescriptor("velocity", "vel", 0, 200, 100);

            note          = UNote.Create();
            note.position = 120;
            note.duration = 60;
            note.tone     = 42;
            note.lyric    = "あ";
            note.noteExpressions.Add(new UExpression(descriptor)
            {
                value = 99,
            });
            note.phonemeExpressions.Add(new UExpression(descriptor)
            {
                index = 0,
                value = 123,
            });
        }