From a80999144ebd3575150c4b5c520fb732653fcfe2 Mon Sep 17 00:00:00 2001
From: Reinhold Kainhofer <reinhold@kainhofer.com>
Date: Wed, 21 Jul 2010 01:03:17 +0200
Subject: [PATCH] MusicXML: Handle beam elements without number attribute

---
 python/musicxml.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/python/musicxml.py b/python/musicxml.py
index 0400cce253..76e33ceb7b 100644
--- a/python/musicxml.py
+++ b/python/musicxml.py
@@ -997,7 +997,10 @@ class Beam (Music_xml_spanner):
     def get_type (self):
 	return self.get_text ()
     def is_primary (self):
-        return self.number == "1"
+        if hasattr (self, 'number'):
+            return self.number == "1"
+        else:
+            return True
 
 class Wavy_line (Music_xml_spanner):
     pass
-- 
2.39.5