From 835f23800bb5b007af30f6af80ff5d8bd6dcc23c Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 30 Apr 2023 21:19:15 -0400 Subject: [PATCH] cwMidi.h : midiToSciPitch() now has some default arguments. --- cwMidi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cwMidi.h b/cwMidi.h index 9e41826..9bbcabb 100644 --- a/cwMidi.h +++ b/cwMidi.h @@ -137,7 +137,7 @@ namespace cw // buffer is returned. If label[] is given the it // should have at least 5 (kMidiSciPitchCharCnt) char's (including the terminating zero). // If 'pitch' is outside of the range 0-127 then a blank string is returned. - const char* midiToSciPitch( uint8_t pitch, char* label, unsigned labelCharCnt ); + const char* midiToSciPitch( uint8_t pitch, char* label=nullptr, unsigned labelCharCnt=0 ); // Convert a scientific pitch to MIDI pitch. acc == 1 == sharp, acc == -1 == flat. // The pitch character must be in the range 'A' to 'G'. Upper or lower case is valid.