From c89f2cced36931510f8377142c79ae18fa093196 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 13 Jul 2024 11:56:38 -0400 Subject: [PATCH] cwMidi.h : Wrapped midi_to_hz() macro in parenthesis. --- cwMidi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cwMidi.h b/cwMidi.h index 73887c4..adbe3ec 100644 --- a/cwMidi.h +++ b/cwMidi.h @@ -162,7 +162,7 @@ namespace cw uint8_t sciPitchToMidi( const char* sciPitchStr ); -#define midi_to_hz( midi_pitch ) (13.75 * std::pow(2,(-9.0/12.0))) * std::pow(2.0,(midi_pitch / 12.0)) +#define midi_to_hz( midi_pitch ) ((13.75 * std::pow(2,(-9.0/12.0))) * std::pow(2.0,(midi_pitch / 12.0))) }