public TestScores(ScoreBuilder scoreBuilder) { ScoreBuilder = scoreBuilder; SimpleTestPhraseScore = ScoreBuilder.FromMelodicPhrase(SimpleTestPhrase); EightNotePhraseScore = ScoreBuilder.FromMelodicPhrase(EighthNotePhrase); var chordPhrase = ChordsPhrase.Select(chords => (chords, Duration.Quarter)); ChordPhraseScore = ScoreBuilder.FromChordsPhrase(chordPhrase); Scores = new Dictionary <string, IReadOnlyDictionary <Beat, BeatGroup> > { { "simple-test-phrase", SimpleTestPhraseScore }, { "eight-note-phrase", EightNotePhraseScore }, { "diatonic-chord-phrase", ChordPhraseScore } }; }
void Update() { var score = ScoreBuilder.FromMelodicPhrase(/*DrillQuiz.LowestTreebleStaffPitch, */ DrillQuiz.TestPhrase); var layout = Layout.CreateLayout(score); MusicDrawing = MusicDrawingBuilder.BuildDrawing(layout); RaiseMusicDrawingChanged(); }