Spectrum:
Filter:
TuningLib/Classes (extension) | Tuning > TuningLib

Spectrum
ExtensionExtension

Holds the spectrum of a timbre

Description

Spectrum is a class for holding a spectral analysis of a given timbre.

Class Methods

.new

Create a new Spectrum

Arguments:

freqs

An Array of Frequencies

amps

An Array of the Amplitudes of those frequencies

Instance Methods

+

Add two Spectrums together. This might be a useful way to generate a scale that works with two timbres.

Arguments:

other

The other Spectrum

Returns:

A new spectrum