We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3788a4b commit 4d82cbdCopy full SHA for 4d82cbd
mingus/containers/note.py
@@ -190,7 +190,7 @@ def to_hertz(self, standard_pitch=440):
190
"""
191
# int(Note("A")) == 57
192
diff = self.__int__() - 57
193
- return 2 ** (diff / 12.0) * 440
+ return 2 ** (diff / 12.0) * standard_pitch
194
195
def from_hertz(self, hertz, standard_pitch=440):
196
"""Set the Note name and pitch, calculated from the hertz value.
0 commit comments