Created
May 14, 2018 23:26
-
-
Save nunenuh/f4b2603e807db57d55489f5bc0ee4cdf to your computer and use it in GitHub Desktop.
Play Tone with specific frequency in python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pysine import sine | |
| import numpy as np | |
| listfr = [126, 144, 162, 171, 189, 216, 234, 252] | |
| freq = np.array(listfr) | |
| for f in freq: | |
| print(f) | |
| sine(frequency=f, duration=2.0) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment