- evaluate MidiClock

git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@269 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2015-03-20 16:35:58 +00:00
parent 13adfc4ddd
commit 210833df74
18 changed files with 1826 additions and 1640 deletions
+13 -2
View File
@@ -30,7 +30,7 @@
//==============================================================================
ButtonLED::ButtonLED (const String& name)
: Button (L"Button LED"),
: Button (name),
cachedImage_led_23_red_png (0),
cachedImage_led_23_red1_png (0),
triggeredOnMouseDown(0),
@@ -50,7 +50,6 @@ ButtonLED::ButtonLED (const String& name)
//[Constructor] You can add your own custom stuff here..
setName(name);
//[/Constructor]
}
@@ -197,6 +196,18 @@ void ButtonLED::paintButton (Graphics& g, bool /*isMouseOverButton*/, bool /*isB
false);
}
}
void ButtonLED::flash(uint32_t duration_ms)
{
setToggleState(true, juce::NotificationType::dontSendNotification);
startTimer((uint32_t)duration_ms);
}
void ButtonLED::timerCallback()
{
setToggleState(false, juce::NotificationType::dontSendNotification);
}
//[/MiscUserCode]