Closed lglina closed 2 years ago
Thank you Lauren for your contribution! I have to test those changes on some Arduino boards, just to be sure.
A pleasure! Thanks for writing and sharing your libraries - I've used them in a couple of projects so far and they're really useful :)
Melody doesn't compile under PlatformIO for the Arduino Nano Every.
A declaration/definition of the Arduino
String
type is notinclude
ed inMelody.h
andSequenceParser.h
, and the include ofWString.h
inStreamer.h
doesn't seem to work, likely because includingWString.h
is deprecated (see https://github.com/arduino/ArduinoCore-API/blob/master/api/deprecated/WString.h)This PR includes
Arduino.h
where required, which provides a definition ofString
.Similar to dualB/Musician/pull/3, for neatness/correctness, this PR also ensures that all member variables are initialised to sensible default values at construction time, regardless of the validity of caller arguments (i.e. in
Melody
, ensuring_tempo
and_base_duration
are always initialised even iftempo == 0
).