Skip to content

Commit 4d82cbd

Browse files
committed
fix: Standard pitch not honored in Note.to_hertz()
1 parent 3788a4b commit 4d82cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mingus/containers/note.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def to_hertz(self, standard_pitch=440):
190190
"""
191191
# int(Note("A")) == 57
192192
diff = self.__int__() - 57
193-
return 2 ** (diff / 12.0) * 440
193+
return 2 ** (diff / 12.0) * standard_pitch
194194

195195
def from_hertz(self, hertz, standard_pitch=440):
196196
"""Set the Note name and pitch, calculated from the hertz value.

0 commit comments

Comments
 (0)