Пример #1
0
        private void CreateVoiceGlyphs(Voice v)
        {
            foreach (var b in v.Beats)
            {
                // we create empty glyphs as alignment references and to get the
                // effect bar sized
                var container = new BeatContainerGlyph(b, GetOrCreateVoiceContainer(v), true);
                container.PreNotes = new BeatGlyphBase();
                container.OnNotes  = new BeatOnNoteGlyphBase();
                AddBeatGlyph(container);

                if (_info.ShouldCreateGlyph(this, b))
                {
                    CreateOrResizeGlyph(_info.SizingMode, b);
                }
            }
        }
Пример #2
0
        private void CreateVoiceGlyphs(Voice v)
        {
            for (int i = 0, j = v.Beats.Count; i < j; i++)
            {
                var b = v.Beats[i];
                // we create empty glyphs as alignment references and to get the
                // effect bar sized
                var container = new BeatContainerGlyph(b);
                container.PreNotes  = new BeatGlyphBase();
                container.OnNotes   = new BeatGlyphBase();
                container.PostNotes = new BeatGlyphBase();
                AddBeatGlyph(container);

                if (_info.ShouldCreateGlyph(this, b))
                {
                    CreateOrResizeGlyph(_info.SizingMode, b);
                }

                _lastBeat = b;
            }
        }