While working on https://github.com/phetsims/chipper/issues/1106 with @samreid, I noticed that fourier-making-waves is using a rich enumeration pattern where it's not necessary. In Waveform.js, it's sufficient to have a set of static instances -- the same pattern used in ph-scale.Solute.
While working on https://github.com/phetsims/chipper/issues/1106 with @samreid, I noticed that fourier-making-waves is using a rich enumeration pattern where it's not necessary. In Waveform.js, it's sufficient to have a set of static instances -- the same pattern used in ph-scale.Solute.