cwMidi.h : Wrapped midi_to_hz() macro in parenthesis.
This commit is contained in:
parent
daa4e2355c
commit
c89f2cced3
2
cwMidi.h
2
cwMidi.h
@ -162,7 +162,7 @@ namespace cw
|
|||||||
uint8_t sciPitchToMidi( const char* sciPitchStr );
|
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)))
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user