Esempio n. 1
0
        NoteLayout LayoutNote(PerceptualNote note)
        {
            PitchTransform transform;

            var key =
                keysignature.Key(note.Note.Tone, out transform);

            var halfline =
                staff.GetHalfLine(key);

            var x =
                ToVirtualPX(note.Duration.Start - duration.Start);

            var width =
                ToVirtualPX(note.Note.Duration.Length);

            return
                (new NoteLayout(
                     note,
                     halfline,
                     x,
                     width,
                     key,
                     transform
                     ));
        }
Esempio n. 2
0
 public NoteLayout(
     PerceptualNote core,
     int halfline,
     float x,
     float width,
     DiatonicTone key,
     PitchTransform transform
     )
 {
     this.core      = core;
     this.halfline  = halfline;
     this.x         = x;
     this.width     = width;
     this.key       = key;
     this.transform = transform;
 }