Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8d12dd8

Browse files
committed
Audio
1 parent cc4917c commit 8d12dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ from itertools import chain, repeat
15761576
F = 44100
15771577
S1 = '59J,57j,,59J,54j,,50J,54j,,47J,,,'
15781578
S2 = '59J,61j,,62J,61j,,62j,,59j,,61J,59j,,61j,,57j,,59J,57j,,59j,,55j,,59J,,,'
1579-
sin_f = lambda frame_no, hz: math.sin(frame_no * 2 * math.pi * hz / F)
1579+
sin_f = lambda i, hz: math.sin(i * 2 * math.pi * hz / F)
15801580
get_wave = lambda hz, seconds: (sin_f(i, hz) for i in range(int(seconds * F)))
15811581
get_pause = lambda seconds: repeat(0, int(seconds * F))
15821582
get_hz = lambda note: round(16.352 * 2 ** (int(note[:2])/12))

0 commit comments

Comments
 (0)