SofaPirate / Plaquette

Object-oriented Arduino library for creative physical computing
https://sofapirate.github.io/Plaquette/
GNU General Public License v3.0
15 stars 4 forks source link

Deprecate dutyCycle() in favor of width() for SquareOsc #111

Open sofian opened 8 months ago

sofian commented 8 months ago

Function width() for TriOsc would be also appropriate as a replacement of dutyCycle() for SquareOsc and would contribute to a better uniformity in the library. It would resonate perfectly well with the concept of "pulse-width" (as in pulse-width modulation / PWM).

The visual documentation should be updated as well.