Skip to content

Instantly share code, notes, and snippets.

@nunenuh
Created May 14, 2018 23:26
Show Gist options
  • Save nunenuh/f4b2603e807db57d55489f5bc0ee4cdf to your computer and use it in GitHub Desktop.
Save nunenuh/f4b2603e807db57d55489f5bc0ee4cdf to your computer and use it in GitHub Desktop.
Play Tone with specific frequency in python
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