public BeamItem(List <BeamMusicXML> beamsList, string voice, int position, StemItem stem) { this.stem = stem; this.voice = voice; beams = new Dictionary <int, BeamValueMusicXML>(); fractionPosition = position; foreach (var item in beamsList) { beams.Add(int.Parse(item.Number), item.Value); } }
private void InitStem() { //! in note type/duration is half/semibreve or shorter if ((int)noteType < 10) { stem = new StemItem(this); //! if note type/duration is quarter/crotchet or shorter if ((int)noteType < 9) { hasBeams = noteItem.Any(x => x.Beam != null); } } }