public TabSection(TabFile tabFile, SongSection section) : base(tabFile, section.StartTime) { Name = section.Name; Start = section.StartTime; End = section.EndTime; }
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); } }
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); } }