SquareTable(order=10, size=8192)
Square waveform generator.
Generates square waveforms made up of fixed number of harmonics.
Parent class : PyoTableObject
Parameters:
order : int, optional Number of harmonics square waveform is made of. The waveform will contains `order` odd harmonics. Defaults to 10. size : int, optional Table size in samples. Defaults to 8192.
Methods:
setOrder(x) : Change the `order` attribute and redraw the waveform. setSize(size) : Change the size of the table. This will erase the previously drawn waveform.
Attributes:
order : int, optional Number of harmonics square waveform is made of. size : int, optional Table size in samples.
Examples:
>>> s = Server().boot() >>> s.start() >>> t = SquareTable() >>> a = Osc(table=t, freq=200, mul=.5).out()
Methods details:
SquareTable.setOrder(x): Change the `order` attribute and redraw the waveform. Parameters: x : int New number of harmonics SquareTable.setSize(size): Change the size of the table. This will erase the previously drawn waveform. Parameters: size : int New table size in samples.