Browse Source

tags/2021-05-28
jules 17 years ago
parent
commit
d4e2bf2232
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/juce_appframework/gui/components/special/juce_MidiKeyboardComponent.cpp

+ 2
- 2
src/juce_appframework/gui/components/special/juce_MidiKeyboardComponent.cpp View File

@@ -280,7 +280,7 @@ int MidiKeyboardComponent::remappedXYToNote (int x, int y) const
{
if (y < blackNoteLength)
{
for (int octaveStart = 12 * (rangeStart / 12); octaveStart < rangeEnd; octaveStart += 12)
for (int octaveStart = 12 * (rangeStart / 12); octaveStart <= rangeEnd; octaveStart += 12)
{
for (int i = 0; i < 5; ++i)
{
@@ -299,7 +299,7 @@ int MidiKeyboardComponent::remappedXYToNote (int x, int y) const
}
}
for (int octaveStart = 12 * (rangeStart / 12); octaveStart < rangeEnd; octaveStart += 12)
for (int octaveStart = 12 * (rangeStart / 12); octaveStart <= rangeEnd; octaveStart += 12)
{
for (int i = 0; i < 7; ++i)
{


Loading…
Cancel
Save