- prepared Midiclock sync of voices

- buttonLed has flash() has brightness

git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@716 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2020-08-06 12:09:37 +00:00
parent eecd6c5005
commit 840b7a3427
8 changed files with 144 additions and 62 deletions
+3 -3
View File
@@ -5111,9 +5111,9 @@ void JaySynthAudioProcessorEditor::actionListenerCallback (const String &message
case JaySynthActionListener::JAYSYNTH_CHANGED_MIDICLOCK:
{
uint32_t deltaTime_ms;
deltaTime_ms = spa.getValue("value", "-1").getIntValue();
m_btn_midiClockLed->flash(100);
uint32_t deltaTime_ms = spa.getValue("deltatime", "-1").getIntValue();
uint32_t brightness = spa.getValue("brightness", "-1").getIntValue();
m_btn_midiClockLed->flash(brightness*50, brightness);
uint32_t bpm = (uint32_t)(60*1000.0/deltaTime_ms + 0.5);
m_labelDebug->setText(String("BPM = ") + String(bpm), juce::NotificationType::dontSendNotification);
}