Browse Source

tags/2021-05-28
jules 17 years ago
parent
commit
24cd229ec7
2 changed files with 4 additions and 1 deletions
  1. +2
    -0
      src/juce_appframework/audio/processors/juce_AudioProcessor.cpp
  2. +2
    -1
      src/juce_appframework/gui/components/special/juce_MidiKeyboardComponent.cpp

+ 2
- 0
src/juce_appframework/audio/processors/juce_AudioProcessor.cpp View File

@@ -131,6 +131,7 @@ void AudioProcessor::beginParameterChangeGesture (int parameterIndex)
// This means you've called beginParameterChangeGesture twice in succession without a matching
// call to endParameterChangeGesture. That might be fine in most hosts, but better to avoid doing it.
jassert (! changingParams [parameterIndex]);
changingParams.setBit (parameterIndex);
#endif
for (int i = listeners.size(); --i >= 0;)
@@ -153,6 +154,7 @@ void AudioProcessor::endParameterChangeGesture (int parameterIndex)
// endParameterChangeGesture. That might be fine in most hosts, but better to keep the
// calls matched correctly.
jassert (changingParams [parameterIndex]);
changingParams.clearBit (parameterIndex);
#endif
for (int i = listeners.size(); --i >= 0;)


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

@@ -699,7 +699,8 @@ void MidiKeyboardComponent::resetAnyKeysInUse()
void MidiKeyboardComponent::updateNoteUnderMouse (int x, int y)
{
const int newNote = (mouseDragging || isMouseOver()) ? xyToNote (x, y) : -1;
const int newNote = (mouseDragging || isMouseOver())
? xyToNote (x, y) : -1;
if (noteUnderMouse != newNote)
{


Loading…
Cancel
Save