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); }
public static JpLyric GenerateDeomKaraokeLyric() { LyricCreator creator = new LyricCreator(); var karaokeObject = creator.Create <JpLyric>("カラオケ"); return(new JpLyric { TimeLines = karaokeObject.TimeLines, Furigana = new Dictionary <int, FuriganaText> { { 0, new FuriganaText { Text = "か" } }, { 1, new FuriganaText { Text = "ら" } }, { 2, new FuriganaText { Text = "お" } }, { 3, new FuriganaText { Text = "け" } } }, Romaji = new RomajiTextList { { 0, new RomajiText { Text = "ka" } }, { 1, new RomajiText { Text = "ra" } }, { 2, new RomajiText { Text = "o" } }, { 3, new RomajiText { Text = "ke" } } }, Translates = new LyricTranslateList { { TranslateCode.English, new LyricTranslate { Text = "Karaoke" } } } }); }
/// <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); }
/// <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); }