示例#1
0
        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 }
            };
        }
示例#2
0
        void Update()
        {
            var score  = ScoreBuilder.FromMelodicPhrase(/*DrillQuiz.LowestTreebleStaffPitch, */ DrillQuiz.TestPhrase);
            var layout = Layout.CreateLayout(score);

            MusicDrawing = MusicDrawingBuilder.BuildDrawing(layout);
            RaiseMusicDrawingChanged();
        }