Skip to content

Commit

Permalink
rework types and default values
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre D'Hooge committed Mar 18, 2024
1 parent 3cf71e0 commit d63c78a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions music21/articulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,12 +580,12 @@ class PullOff(spanner.Spanner, TechnicalIndication):
pass

class FretBend(FretIndication):
bendAlter: interval.IntervalBase
preBend: bool = False
release: t.Optional[float]
withBar: t.Optional[bool]
bendAlter: interval.IntervalBase | None
preBend: bool
release: float | None
withBar: bool | None

def __init__(self, number=0, preBend=False, release=None, withBar=None, **keywords):
def __init__(self, number=0, bendAlter=None, preBend=False, release=None, withBar=None, **keywords):
'''
bend indication for fretted instruments
Expand All @@ -597,7 +597,7 @@ def __init__(self, number=0, preBend=False, release=None, withBar=None, **keywor
withBar indicates if the bend is done using a whammy bar movement
'''
super().__init__(**keywords)
self.bendAlter = interval.ChromaticInterval(number)
self.bendAlter = bendAlter
self.preBend = preBend
self.release = release
self.withBar = withBar
Expand Down

0 comments on commit d63c78a

Please sign in to comment.