コード例 #1
0
        public static JpLyric WithoutProgressPoint()
        {
            LyricCreator creator       = new LyricCreator();
            var          karaokeObject = creator.Create <JpLyric>("終わるまでは終わらないよ");
            LyricEditor  editor        = new LyricEditor(karaokeObject);

            editor.AddFurigana(0, new FuriganaText
            {
                Text = "お"
            });
            editor.AddFurigana(6, new FuriganaText
            {
                Text = "お"
            });

            return(karaokeObject);
        }
コード例 #2
0
        /// <summary>
        ///     use this in convertor
        /// </summary>
        /// <param name="startTime"></param>
        /// <param name="duration"></param>
        /// <returns></returns>
        public static JpLyric GenerateWithStartAndDuration(double startTime, double duration)
        {
            LyricCreator creator       = new LyricCreator();
            var          karaokeObject = creator.Create <JpLyric>("終わるまでは終わらないよ");
            LyricEditor  editor        = new LyricEditor(karaokeObject);

            editor.AddFurigana(0, new FuriganaText
            {
                Text = "お"
            });
            editor.AddFurigana(6, new FuriganaText
            {
                Text = "お"
            });
            karaokeObject.StartTime = startTime;
            editor.AddTimeline(0, new TimeLine(duration / 5)
            {
                Tone = new Tone(3)
            });
            editor.AddTimeline(9, new TimeLine(duration / 4)
            {
                Tone = new Tone(-3)
            });
            editor.AddTimeline(11, new TimeLine(duration)
            {
                Tone = new Tone(0, true)
            });
            editor.AddRomaji(0, new RomajiText("o"));
            editor.AddRomaji(1, new RomajiText("wa"));
            editor.AddRomaji(2, new RomajiText("ru"));
            editor.AddRomaji(3, new RomajiText("ma"));
            editor.AddRomaji(4, new RomajiText("de"));
            editor.AddRomaji(5, new RomajiText("wa"));
            editor.AddRomaji(6, new RomajiText("o"));
            editor.AddRomaji(7, new RomajiText("wa"));
            editor.AddRomaji(8, new RomajiText("ra"));
            editor.AddRomaji(9, new RomajiText("na"));
            editor.AddRomaji(10, new RomajiText("i"));
            editor.AddRomaji(11, new RomajiText("yo"));

            return(karaokeObject);
        }
コード例 #3
0
        /// <summary>
        ///     generate normal demo 001
        /// </summary>
        /// <returns></returns>
        public static JpLyric GenerateDemo001()
        {
            LyricCreator creator       = new LyricCreator();
            var          karaokeObject = creator.Create <JpLyric>("終わるまでは終わらないよ");
            LyricEditor  editor        = new LyricEditor(karaokeObject);

            editor.AddFurigana(0, new FuriganaText
            {
                Text = "お"
            });
            editor.AddFurigana(6, new FuriganaText
            {
                Text = "お"
            });
            editor.AddTimeline(0, new TimeLine(0));
            editor.AddTimeline(1, new TimeLine(500));
            editor.AddTimeline(5, new TimeLine(1000));
            editor.AddTimeline(11, new TimeLine(1500));

            return(karaokeObject);
        }