//============================================================================== // This timer periodically checks whether any of the filter's parameters have changed... void JuceDemoPluginAudioProcessorEditor::timerCallback() { JuceDemoPluginAudioProcessor* ourProcessor = getProcessor(); AudioPlayHead::CurrentPositionInfo newPos (ourProcessor->lastPosInfo); if (lastDisplayedPosition != newPos) displayPositionInfo (newPos); // bpmSlider.setValue (ourProcessor->gain, false); // delaySlider.setValue (ourProcessor->delay, false); }
//============================================================================== // This timer periodically checks whether any of the filter's parameters have changed... void JbcfilterAudioProcessorEditor::timerCallback() { JbcfilterAudioProcessor* ourProcessor = getProcessor(); AudioPlayHead::CurrentPositionInfo newPos (ourProcessor->lastPosInfo); if (lastDisplayedPosition != newPos) displayPositionInfo (newPos); delaySlider.setValue (ourProcessor->delay, dontSendNotification); delaySlider.setValue(ourProcessor->delay, dontSendNotification); }
//============================================================================== // This timer periodically checks whether any of the filter's parameters have changed... void PlugTestAudioProcessorEditor::timerCallback() { PlugTestAudioProcessor* ourProcessor = getProcessor(); AudioPlayHead::CurrentPositionInfo newPos(ourProcessor->lastPosInfo); if (lastDisplayedPosition != newPos) displayPositionInfo(newPos); gainSlider.setValue(ourProcessor->gain, dontSendNotification); freqSlider.setValue(ourProcessor->freq, dontSendNotification); distortionSlider.setValue(ourProcessor->distortion, dontSendNotification); }
//============================================================================== // This timer periodically checks whether any of the filter's parameters have changed... void TheAmpAudioProcessorEditor::timerCallback() { TheAmpAudioProcessor& ourProcessor = getProcessor(); AudioPlayHead::CurrentPositionInfo newPos (ourProcessor.lastPosInfo); if (lastDisplayedPosition != newPos) displayPositionInfo (newPos); //gainSlider.setValue (ourProcessor.gain->getValue(), dontSendNotification); //trebleSlider.setValue (ourProcessor.treble->getValue(), dontSendNotification); //middleSlider.setValue (ourProcessor.middle->getValue(), dontSendNotification); //bassSlider.setValue (ourProcessor.bass->getValue(), dontSendNotification); }
//[MiscUserCode] You can add your own definitions of your custom methods or any other code here... void AlgoCompoAudioProcessorEditor::timerCallback() { if (owner->time != lastDisplayedTime) { displayPositionInfo(); } if (owner->eventSequence.size() != lastDisplayedEvents) { String displayText; displayText.preallocateBytes (128); displayText << "Events: " << (int) owner->eventSequence.size(); numEventsLabel->setText(displayText, dontSendNotification); lastDisplayedEvents = owner->eventSequence.size(); } }
//============================================================================== // This timer periodically checks whether any of the filter's parameters have changed... void SignalProcessorAudioProcessorEditor::timerCallback() { SignalProcessorAudioProcessor& ourProcessor = getProcessor(); AudioPlayHead::CurrentPositionInfo newPos (ourProcessor.lastPosInfo); if (lastDisplayedPosition != newPos) displayPositionInfo (newPos); //To be set later, to update any parameter !!! averagingBufferSlider.setValue (ourProcessor.averagingBufferSize, dontSendNotification); inputSensitivitySlider.setValue (ourProcessor.inputSensitivity, dontSendNotification); fftAveragingWindowSlider.setValue (ourProcessor.fftAveragingWindow, dontSendNotification); float newBeatIntensity = ourProcessor.beatIntensity; if (lastDisplayedBeatIntensity != newBeatIntensity) { lastDisplayedBeatIntensity = newBeatIntensity; repaint(); } }