cwMidi.h : Added midi_to_hz().
This commit is contained in:
parent
3552f9a272
commit
a8210e40b8
4
cwMidi.h
4
cwMidi.h
@ -161,6 +161,10 @@ namespace cw
|
|||||||
// of this range will be returned as kInvalidMidiPitch.
|
// of this range will be returned as kInvalidMidiPitch.
|
||||||
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))
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user