Reference > sub
Wave
Spectrum
sub
is a function associated with the Wave
class that lets you subtract one wave from another.
wave1.sub(wave2)
creates a new wave whose entries are the point-wise difference of the waves wave1
and wave2
. Note that wave1
and wave2
must be the same length for the sum to be properly defined.
You can find the code for sub
in the synthesine library.