Visualisation - Quefumas/gensound GitHub Wiki

Although this is not Gensound's primary goal, it is planned to provide basic visualisation functionality.

The features below require matplotlib.

Visualising Waveform with Audio.plot()

By calling Signal.realise(sample_rate), we obtain an Audio object, which supports the plot() function:

from gensound import Square, Triangle
w = Square(220, 0.1e3) + 0.3*Triangle(370, 0.1e3)
w.realise(44100).plot() # alien script