예제 #1
0
 public void Visit(Clef clef) // TODO
 {
     if (psamClefTypeConversionDictionary.ContainsKey(clef.Type))
     {
         incipitViewer.AddMusicalSymbol(new PSAMControlLibrary.Clef(psamClefTypeConversionDictionary[clef.Type], 2)); //hardcoded -> fix
     }
     else
     {
         throw new Exception(); // Clef is supposed to exist
     }
     amountEights++;
 }
예제 #2
0
        public ScoreVisitor(Staff staff, IncipitViewerWPF incipitViewer, StackPanel scoreStackPanel, double width)
        {
            this.staff           = staff;
            this.incipitViewer   = incipitViewer;
            this.scoreStackPanel = scoreStackPanel;
            this.width           = width;

            amountEights      = 0;
            maxAmountOfEights = (45d / 683 * 45d) * (width / 45d); //config, no more than 45 on a bar

            currentClef      = new Clef();
            currentClef.Type = ClefType.G; // default
        }