MCPcopy Create free account
hub / github.com/bspaans/python-mingus / augment

Function augment

mingus/core/notes.py:145–157  ·  view source on GitHub ↗

Augment a given note. Examples: >>> augment('C') 'C#' >>> augment('Cb') 'C'

(note)

Source from the content-addressed store, hash-verified

143
144
145def augment(note):
146 """Augment a given note.
147
148 Examples:
149 >>> augment('C')
150 'C#'
151 >>> augment('Cb')
152 'C'
153 """
154 if note[-1] != "b":
155 return note + "#"
156 else:
157 return note[:-1]
158
159
160def diminish(note):

Callers 4

ascendingMethod · 0.90
ascendingMethod · 0.90
ascendingMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected