コード例 #1
0
//==============================================================================
// 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);
}
コード例 #2
0
ファイル: PluginEditor.cpp プロジェクト: jmoyers14/csc344
//==============================================================================
// 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);
}
コード例 #3
0
ファイル: PluginEditor.cpp プロジェクト: e-foley/CSC344
//==============================================================================
// 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);
}
コード例 #4
0
ファイル: PluginEditor.cpp プロジェクト: thois/theAmp
//==============================================================================
// 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);
}
コード例 #5
0
//[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();
    }
}
コード例 #6
0
//==============================================================================
// 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();
    }
}