コード例 #1
0
            public void LyricEvent()
            {
                var ticks = 29470u;
                var lyric = "歌詞です";

                var x = new LyricEvent(ticks, lyric);
                var y = ReDeserialize(x);

                Assert.That(x.Ticks == y.Ticks);
                Assert.That(x.lyric == y.lyric);
            }
コード例 #2
0
ファイル: LyricEvent.cs プロジェクト: ChrisHerb/drywetmidi
        /// <summary>
        /// Determines whether the specified event is equal to the current one.
        /// </summary>
        /// <param name="lyricEvent">The event to compare with the current one.</param>
        /// <param name="respectDeltaTime">If true the <see cref="MidiEvent.DeltaTime"/> will be taken into an account
        /// while comparing events; if false - delta-times will be ignored.</param>
        /// <returns>true if the specified event is equal to the current one; otherwise, false.</returns>
        public bool Equals(LyricEvent lyricEvent, bool respectDeltaTime)
        {
            if (ReferenceEquals(null, lyricEvent))
            {
                return(false);
            }

            if (ReferenceEquals(this, lyricEvent))
            {
                return(true);
            }

            return(base.Equals(lyricEvent, respectDeltaTime));
        }
コード例 #3
0
ファイル: LyricEventLabel.cs プロジェクト: polyspirit/Midity
 public LyricEventLabel(LyricEvent lyricEvent) : base(lyricEvent)
 {
 }
コード例 #4
0
ファイル: LyricEvent.cs プロジェクト: ChrisHerb/drywetmidi
 /// <summary>
 /// Determines whether the specified event is equal to the current one.
 /// </summary>
 /// <param name="lyricEvent">The event to compare with the current one.</param>
 /// <returns>true if the specified event is equal to the current one; otherwise, false.</returns>
 public bool Equals(LyricEvent lyricEvent)
 {
     return(Equals(lyricEvent, true));
 }