mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added method MidiMessage::isMidiNoteBlack()
This commit is contained in:
parent
e22e536626
commit
c67c180b07
3 changed files with 9 additions and 9 deletions
|
|
@ -941,6 +941,11 @@ double MidiMessage::getMidiNoteInHertz (int noteNumber, const double frequencyOf
|
|||
return frequencyOfA * pow (2.0, (noteNumber - 69) / 12.0);
|
||||
}
|
||||
|
||||
bool MidiMessage::isMidiNoteBlack (int noteNumber) noexcept
|
||||
{
|
||||
return ((1 << (noteNumber % 12)) & 0x054a) != 0;
|
||||
}
|
||||
|
||||
const char* MidiMessage::getGMInstrumentName (const int n)
|
||||
{
|
||||
static const char* names[] =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue