cwMidi.h : midiToSciPitch() now has some default arguments.

This commit is contained in:
kevin 2023-04-30 21:19:15 -04:00
parent 8ae846ee05
commit 835f23800b

View File

@ -137,7 +137,7 @@ namespace cw
// buffer is returned. If label[] is given the it // buffer is returned. If label[] is given the it
// should have at least 5 (kMidiSciPitchCharCnt) char's (including the terminating zero). // 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. // 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. // 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. // The pitch character must be in the range 'A' to 'G'. Upper or lower case is valid.