コード例 #1
0
 public TabSection(TabFile tabFile, SongSection section)
     : base(tabFile, section.StartTime)
 {
     Name  = section.Name;
     Start = section.StartTime;
     End   = section.EndTime;
 }
コード例 #2
0
ファイル: SoloLeadTests.cs プロジェクト: solcz/NewWave
        public void SoloLeadTest()
        {
            var section = new SongSection(new SongInfo(TimeSignature.CommonTime, 4), SectionType.None, ChordProgressionGenerator.ChordProgression(n => n));
            var lead    = section.Lead;

            foreach (var note in lead)
            {
                Console.WriteLine(note);
            }
        }
コード例 #3
0
ファイル: SectionTests.cs プロジェクト: solcz/NewWave
        public void SectionTest()
        {
            var time    = TimeSignature.CommonTime;
            var section = new SongSection(new SongInfo(time, 4), SectionType.None, ChordProgressionGenerator.ChordProgression(n => n));

            var totalBeats = section.Measures * time.BeatCount;

            Console.WriteLine("Total beats: {0}", totalBeats);
            for (var beat = 0; beat < totalBeats; beat++)
            {
                var chordHere = section.Chords.FirstOrDefault(c => c.Item1 == beat);
                Console.WriteLine("{0} {1} - {2}", beat % time.BeatCount == 0 ? "-" : " ", beat, chordHere?.Item2);
            }
        }