MCPcopy Create free account
hub / github.com/ipython/ipython / get_test_tone

Function get_test_tone

IPython/lib/tests/test_display.py:255–256  ·  view source on GitHub ↗
(scale=1)

Source from the content-addressed store, hash-verified

253
254@skipif_not_numpy
255def get_test_tone(scale=1):
256 return numpy.sin(2 * numpy.pi * 440 * numpy.linspace(0, 1, 44100)) * scale
257
258def read_wav(data):
259 with wave.open(BytesIO(data)) as wave_file:

Calls

no outgoing calls

Tested by

no test coverage detected