Skip to content

Commit 80039bc

Browse files
committed
tools.GetMidiNote() accepts double
#25
1 parent 5e68857 commit 80039bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Spectrogram/Tools.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static int GetPianoKey(double frequencyHz)
8383
return (int)Math.Round(pianoKey);
8484
}
8585

86-
public static int GetMidiNote(int frequencyHz)
86+
public static int GetMidiNote(double frequencyHz)
8787
{
8888
return GetPianoKey(frequencyHz) + 20;
8989
}

0 commit comments

Comments
 (0)