From 9294d4e7f66ac151adaee168ec07c8223e668d2d Mon Sep 17 00:00:00 2001 From: Daniel Francis Date: Fri, 20 Jul 2012 20:44:12 +0000 Subject: C clefs support --- diff --git a/clef.py b/clef.py index ec7c1d8..b54cf28 100644 --- a/clef.py +++ b/clef.py @@ -31,7 +31,9 @@ CLEF_G = 3 class Clef: clef_type = CLEF_G clefs = [rsvg.Handle(file=os.path.join(os.environ['SUGAR_BUNDLE_PATH'], - 'symbols/Cclef3.svg')), None, + 'symbols/Cclef3.svg')), + rsvg.Handle(file=os.path.join(os.environ['SUGAR_BUNDLE_PATH'], + 'symbols/Cclef4.svg')), rsvg.Handle(file=os.path.join(os.environ['SUGAR_BUNDLE_PATH'], 'symbols/Fclef.svg')), rsvg.Handle(file=os.path.join(os.environ['SUGAR_BUNDLE_PATH'], diff --git a/instruments/piano.py b/instruments/piano.py index 6895401..8bb975c 100644 --- a/instruments/piano.py +++ b/instruments/piano.py @@ -34,6 +34,6 @@ class Piano(Instrument): top_staff.clef = clef.Clef() bottom_staff = Staff() bottom_staff.clef = clef.Clef() - bottom_staff.clef.clef_type = clef.CLEF_C3 + bottom_staff.clef.clef_type = clef.CLEF_F self.staves.append(top_staff) self.staves.append(bottom_staff) diff --git a/symbols/Cclef4.svg b/symbols/Cclef4.svg new file mode 100644 index 0000000..80fb5cd --- /dev/null +++ b/symbols/Cclef4.svg @@ -0,0 +1,61 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + -- cgit v0.9.1