cwMidi.h : Wrapped midi_to_hz() macro in parenthesis.

This commit is contained in:
kevin 2024-07-13 11:56:38 -04:00
parent daa4e2355c
commit c89f2cced3

View File

@ -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)))
}