I want to create \"heart rate monitor\" effect from a 2D array in numpy and want the tone to reflect the values in the array.
If you are using Jupyter, the best option is:
from IPython.display import Audio Audio(numpy.sin(numpy.linspace(0, 3000, 20000)), rate=20000)